org.echarts
Class StateMachine

java.lang.Object
  extended by org.echarts.Machine
      extended by org.echarts.StateMachine
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DynamicMachine, TransitionMachine

public abstract class StateMachine
extends Machine

Abstract class representing a common elements of machines with at least one state (and-machines, or-machines, and dynamic machines).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.echarts.Machine
ANY_CONFIG, BASIC_CONFIG, DEEP_HISTORY_CONFIG, DEFAULT_INITIAL_CONFIG, NEW_CONFIG, serialVersionUID, TERMINAL_CONFIG, VARIABLE_CONFIG
 
Constructor Summary
StateMachine(State[] states, java.lang.String machineName, Machine parentMachine, int machineIndex, MachineCode machineCode)
           
 
Method Summary
 boolean setMachineDebugging(boolean value)
          Set/clear debugging flag in this machine and recursively in all submachines.
 MachineMonitor setMachineMonitor(MachineMonitor monitor)
          Sets monitor in this machine and recursively in all submachines.
 boolean setMachineMonitoring(boolean value)
          Set/clear monitoring flag in this machine and recursively in all submachines.
 
Methods inherited from class org.echarts.Machine
clearSubmachineReference, getDefaultMachineDebugging, getDefaultMachineDebuggingGlobalStateOutput, getDefaultMachineMonitor, getDefaultMachineMonitorFilter, getDefaultMachineMonitoring, getMachineDebugging, getMachineDebuggingGlobalStateOutput, getMachineID, getMachineIndex, getMachineMonitor, getMachineMonitoring, getParentMachine, getRootMachine, getSystemDebugging, getSystemMonitoring, globalStateString, globalStateString, localStateString, localStateString, putEvent, setDebugging, setDefaultMachineDebugging, setDefaultMachineDebuggingGlobalStateOutput, setDefaultMachineMonitor, setDefaultMachineMonitorFilter, setDefaultMachineMonitoring, setMachineDebuggingGlobalStateOutput, setSystemDebugging, setSystemMonitoring, statePathString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateMachine

public StateMachine(State[] states,
                    java.lang.String machineName,
                    Machine parentMachine,
                    int machineIndex,
                    MachineCode machineCode)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setMachineMonitor

public final MachineMonitor setMachineMonitor(MachineMonitor monitor)
Sets monitor in this machine and recursively in all submachines. Overrides method in Machine class.

Overrides:
setMachineMonitor in class Machine

setMachineMonitoring

public final boolean setMachineMonitoring(boolean value)
Set/clear monitoring flag in this machine and recursively in all submachines. Overrides method in Machine class.

Overrides:
setMachineMonitoring in class Machine

setMachineDebugging

public final boolean setMachineDebugging(boolean value)
Set/clear debugging flag in this machine and recursively in all submachines. Overrides method in Machine class.

Overrides:
setMachineDebugging in class Machine