cvm.ucm.interpreter
Class UCM_Interepreter_Mk

java.lang.Object
  extended by cvm.ucm.interpreter.UCM_Interepreter_Mk

public class UCM_Interepreter_Mk
extends java.lang.Object

This is the microkernel as in the architecture pattern. This class control the parsing of scripts, the loading of macros, and the queuing and execution of commands.

Author:
Frank Hernandez

Method Summary
 void attachNCB()
          Attaches the NCB instance to the CM_Interepreter_Mk.
 void attachSynthesisEngine(SEManager thisSE)
          Attaches the SynthesisEngine intance to the CM_Interepreter_Mk.
 void executeNextCommand()
          This method excecutes the next command in line.
static UCM_Interepreter_Mk Instance()
          This is the Instance implementation of Singleton Design Pattern.
 void parseScript(java.lang.String script)
          This method parses and executes a control scipt received from the SynthesisEngine.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseScript

public void parseScript(java.lang.String script)
This method parses and executes a control scipt received from the SynthesisEngine.

Parameters:
script -
Throws:
org.codehaus.janino.CompileException
org.codehaus.janino.Parser.ParseException
org.codehaus.janino.Scanner.ScanException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

Instance

public static UCM_Interepreter_Mk Instance()
This is the Instance implementation of Singleton Design Pattern.

Returns:
An instance of UCM_Interepreter_Mk

attachNCB

public void attachNCB()
Attaches the NCB instance to the CM_Interepreter_Mk.


attachSynthesisEngine

public void attachSynthesisEngine(SEManager thisSE)
Attaches the SynthesisEngine intance to the CM_Interepreter_Mk.

Parameters:
thisSE -

executeNextCommand

public void executeNextCommand()
This method excecutes the next command in line. Used for steping command Macro execution.

See Also:
MacroCommand