cvm.ucm.interpreter
Class UCM_Interpreter_Adapter

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

public class UCM_Interpreter_Adapter
extends java.lang.Object

Adapter class as in the microkernel architecture pattern. It makes the parse script requests to the UCM_Interepreter_Mk class.

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 executeNext()
          This method singals the Microkernel to continue and execute the next command.
static UCM_Interpreter_Adapter 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_Interpreter_Adapter Instance()
This is the Instance implementation of Singleton Design Pattern.

Returns:
An instance of UCM_Interpreter_Adapter

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 -

executeNext

public void executeNext()
This method singals the Microkernel to continue and execute the next command.