Andy, welcome aboard! Tell us about yourself. I'm probably the only one right now who really knows everything that is in the code and how it works. So ask me anything. One thing you can look at is the viewer.gif file in http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol/src/org/jmol/_documents/
It's a bit out of date, but it shows the basics of how the different classes are related. Primarily, Viewer is the key player here, and all the "managers" work with it. In answer to your specific question, the script goes into a queue and is processed within the ScriptManager class. When its turn comes up, it is sent to Viewer.evalStringWaitStatus, where it is then sent to Eval for processing. Eval passes the script to Compiler for compiling and some syntax error checking, after which it takes the form of a set of commands, each of which consists of a Token[] array. There are some replacements that go on late in the game, and the result is a Token array called "statement". This is the currently processing command in token form. The main loop in Eval is the method instructionDispatchLoop. If you are interested in contributing, that's great. We can set up a branch for you, and you can play all you want, letting us know if you are having success or problems. If something looks good, we'll merge it into 11.5, which is the trunk for current development. I recommend not doing major code refactoring or modifications without first checking with this list to see if it would make merging too difficult. What sort of ideas are you thinking of in terms of contributions? Bob Andrew Turner wrote: >Hi, > >I am new to developing Jmol and have a few ideas as to what I could >contribute. I have been to the Jmol wiki and checked out the Jmol source >into eclipse. > >My question is this, is there anywhere that provides a overview of how >the Jmol package fits together. I have had a look through the source for >a few hours and feel I am no closer to understanding which bits do what. > >For example, if I type 'write COORD "file.xyz"' in the scripting dialog >of the application, where does the final file writing actually get done. >I can trace the command to Viewer.evalStringQuiet but start to get lost >pretty soon after that. > >If anyone has anything useful I would be glad to see it. > >Regards > >Andy > > -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
