com.evelopers.unimod.runtime.interpretation
Class InterpretationModelStructure

java.lang.Object
  extended bycom.evelopers.unimod.runtime.interpretation.InterpretationModelStructure
All Implemented Interfaces:
ModelStructure

class InterpretationModelStructure
extends java.lang.Object
implements ModelStructure

Interpretation model structure implementation.


Constructor Summary
InterpretationModelStructure(Model model)
           
 
Method Summary
 StateMachineConfigManager getConfigManager(java.lang.String stateMachineName)
          Returns config manager for state machine with given name.
 StateMachinePath getRootPath()
          Returns path to the root state machine.
(package private)  StateMachine getStateMachine(java.lang.String stateMachine)
           
 StateMachineConfig getTopConfig(java.lang.String stateMachine)
          Initial config factory method.
 boolean isFinal(java.lang.String stateMachine, StateMachineConfig config)
          Determines whether active state defined by the given config is final for state machine with the given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpretationModelStructure

public InterpretationModelStructure(Model model)
Method Detail

getRootPath

public StateMachinePath getRootPath()
Description copied from interface: ModelStructure
Returns path to the root state machine.

Specified by:
getRootPath in interface ModelStructure
Returns:
path to the root state machine

getConfigManager

public StateMachineConfigManager getConfigManager(java.lang.String stateMachineName)
                                           throws EventProcessorException
Description copied from interface: ModelStructure
Returns config manager for state machine with given name.

Specified by:
getConfigManager in interface ModelStructure
Parameters:
stateMachineName - state machine String representation gotten with a help of CoreContract.encode(StateMachine)
Returns:
config manager for state machine
Throws:
EventProcessorException

getTopConfig

public StateMachineConfig getTopConfig(java.lang.String stateMachine)
Description copied from interface: ModelStructure
Initial config factory method.

Specified by:
getTopConfig in interface ModelStructure
Parameters:
stateMachine - state machine String representation gotten with a help of CoreContract.encode(StateMachine)
Returns:
config with active initial state of state machine

isFinal

public boolean isFinal(java.lang.String stateMachine,
                       StateMachineConfig config)
Description copied from interface: ModelStructure
Determines whether active state defined by the given config is final for state machine with the given name

Specified by:
isFinal in interface ModelStructure
Parameters:
stateMachine - state machine String representation gotten with a help of CoreContract.encode(StateMachine)
config - state machine config to test
Returns:
true iff given config is final for the given state machine

getStateMachine

StateMachine getStateMachine(java.lang.String stateMachine)