cct.cprocessor
Class CommandProcessor

java.lang.Object
  extended by cct.cprocessor.CommandProcessor

public class CommandProcessor
extends java.lang.Object


Field Summary
(package private)  java.lang.Object commandArguments
           
(package private)  java.lang.Object commandObject
           
(package private)  java.util.ArrayList<java.lang.Object[]> compiledCommands
           
(package private)  Commands currentCommand
           
(package private)  MolProcessorInterface molProcessor
           
 
Constructor Summary
CommandProcessor(MolProcessorInterface mp)
           
 
Method Summary
(package private)  void executeAddCommand(AddCommandObjects command_object, java.lang.Object args)
           
(package private)  void executeCenterCommand(java.lang.Object command_object, java.lang.Object args)
           
(package private)  void executeEraseCommand(EraseCommandObject command_object, java.lang.Object args)
           
(package private)  void executeRenderCommand(RenderCommandObject command_object, java.lang.Object args)
           
 void executeScript()
           
 void executeScript(java.util.ArrayList<java.lang.Object[]> compiled_commands)
           
(package private)  AddCommandObjects getAddCommandObject(java.lang.String command)
           
(package private)  Commands getCommand(java.lang.String command)
           
(package private)  EraseCommandObject getEraseCommandObject(java.lang.String command)
           
(package private)  RenderCommandObject getRenderCommandObject(java.lang.String command)
           
static void main(java.lang.String[] args)
           
(package private)  void parseAddAtomArg(java.util.StringTokenizer st)
           
(package private)  void parseAddBondArg(java.util.StringTokenizer st)
           
(package private)  void parseAddCommand(java.util.StringTokenizer st)
           
(package private)  void parseCommand(Commands command, java.util.StringTokenizer st)
           
(package private)  void parseEraseAtomsArg(java.util.StringTokenizer st)
           
(package private)  void parseEraseCommand(java.util.StringTokenizer st)
           
(package private)  void parseRenderCommand(java.util.StringTokenizer st)
           
 void parseScript(java.lang.String filename, int fileType)
           
(package private)  void parseSelectAtomArg(java.util.StringTokenizer st)
           
(package private)  void parseSelectCommand(java.util.StringTokenizer st)
           
(package private)  void parseSleepCommand(java.util.StringTokenizer st)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compiledCommands

java.util.ArrayList<java.lang.Object[]> compiledCommands

molProcessor

MolProcessorInterface molProcessor

currentCommand

Commands currentCommand

commandObject

java.lang.Object commandObject

commandArguments

java.lang.Object commandArguments
Constructor Detail

CommandProcessor

public CommandProcessor(MolProcessorInterface mp)
Method Detail

main

public static void main(java.lang.String[] args)

executeScript

public void executeScript()
                   throws java.lang.Exception
Throws:
java.lang.Exception

executeScript

public void executeScript(java.util.ArrayList<java.lang.Object[]> compiled_commands)
                   throws java.lang.Exception
Throws:
java.lang.Exception

executeAddCommand

void executeAddCommand(AddCommandObjects command_object,
                       java.lang.Object args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

executeEraseCommand

void executeEraseCommand(EraseCommandObject command_object,
                         java.lang.Object args)
                   throws java.lang.Exception
Throws:
java.lang.Exception

executeCenterCommand

void executeCenterCommand(java.lang.Object command_object,
                          java.lang.Object args)
                    throws java.lang.Exception
Throws:
java.lang.Exception

executeRenderCommand

void executeRenderCommand(RenderCommandObject command_object,
                          java.lang.Object args)
                    throws java.lang.Exception
Throws:
java.lang.Exception

parseScript

public void parseScript(java.lang.String filename,
                        int fileType)
                 throws java.lang.Exception
Throws:
java.lang.Exception

parseCommand

void parseCommand(Commands command,
                  java.util.StringTokenizer st)
            throws java.lang.Exception
Throws:
java.lang.Exception

parseAddCommand

void parseAddCommand(java.util.StringTokenizer st)
               throws java.lang.Exception
Throws:
java.lang.Exception

parseAddAtomArg

void parseAddAtomArg(java.util.StringTokenizer st)
               throws java.lang.Exception
Throws:
java.lang.Exception

parseAddBondArg

void parseAddBondArg(java.util.StringTokenizer st)
               throws java.lang.Exception
Throws:
java.lang.Exception

parseSelectCommand

void parseSelectCommand(java.util.StringTokenizer st)
                  throws java.lang.Exception
Throws:
java.lang.Exception

parseSelectAtomArg

void parseSelectAtomArg(java.util.StringTokenizer st)
                  throws java.lang.Exception
Throws:
java.lang.Exception

parseEraseCommand

void parseEraseCommand(java.util.StringTokenizer st)
                 throws java.lang.Exception
Throws:
java.lang.Exception

parseEraseAtomsArg

void parseEraseAtomsArg(java.util.StringTokenizer st)
                  throws java.lang.Exception
Throws:
java.lang.Exception

parseSleepCommand

void parseSleepCommand(java.util.StringTokenizer st)
                 throws java.lang.Exception
Throws:
java.lang.Exception

parseRenderCommand

void parseRenderCommand(java.util.StringTokenizer st)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getCommand

Commands getCommand(java.lang.String command)
              throws java.lang.Exception
Throws:
java.lang.Exception

getAddCommandObject

AddCommandObjects getAddCommandObject(java.lang.String command)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getEraseCommandObject

EraseCommandObject getEraseCommandObject(java.lang.String command)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getRenderCommandObject

RenderCommandObject getRenderCommandObject(java.lang.String command)
                                     throws java.lang.Exception
Throws:
java.lang.Exception