|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.Machine
public abstract class Machine
Field Summary | |
---|---|
static AnyPseudostateConfiguration |
ANY_CONFIG
|
static BasicStateConfiguration |
BASIC_CONFIG
|
static DeepHistoryPseudostateConfiguration |
DEEP_HISTORY_CONFIG
|
static DefaultInitialPseudostateConfiguration |
DEFAULT_INITIAL_CONFIG
|
static NewPseudostateConfiguration |
NEW_CONFIG
|
static long |
serialVersionUID
|
static TerminalPseudostateConfiguration |
TERMINAL_CONFIG
|
static VariableStateConfiguration |
VARIABLE_CONFIG
|
Constructor Summary | |
---|---|
Machine(java.lang.String machineName,
Machine parentMachine,
int machineIndex,
MachineCode machineCode)
|
Method Summary | |
---|---|
protected abstract void |
clearSubmachineReference(int index)
Invoked by destroySubmachine() to clear variable in user machine that references the submachine with the specified index e.g. |
static boolean |
getDefaultMachineDebugging()
|
static boolean |
getDefaultMachineDebuggingGlobalStateOutput()
|
static MachineMonitor |
getDefaultMachineMonitor()
|
static MachineMonitorEventFilter |
getDefaultMachineMonitorFilter()
|
static boolean |
getDefaultMachineMonitoring()
|
boolean |
getMachineDebugging()
|
boolean |
getMachineDebuggingGlobalStateOutput()
|
java.lang.String |
getMachineID()
Returns string representation of this machine's ID. |
int |
getMachineIndex()
Returns this machine's index in the context of its parent machine. |
MachineMonitor |
getMachineMonitor()
|
boolean |
getMachineMonitoring()
|
Machine |
getParentMachine()
Returns reference to this machine's parent machine, or null if this machine is the root machine. |
Machine |
getRootMachine()
Returns reference to this machine's root machine. |
static boolean |
getSystemDebugging()
|
static boolean |
getSystemMonitoring()
|
abstract java.lang.String |
globalStateString()
Returns formatted image of machine's global state. |
abstract java.lang.String |
globalStateString(StateConfiguration config,
TransitionMachine firedMachine)
Returns formated image of machine's global state that has changed as a result of firing transition with specified relative target state configuration. |
abstract java.lang.String |
localStateString()
Returns formatted image of machine's local state. |
abstract java.lang.String |
localStateString(StateConfiguration config,
TransitionMachine firedMachine)
Returns formated image of machine's local state that has changed as a result of firing transition with specified relative target state configuration. |
void |
putEvent(MachineMonitorEvent event)
Put an event into the machine's monitor if machine monitoring and system monitoring enabled. |
static void |
setDebugging(boolean value)
Short-hand for calling setDefaultMachineDebugging(), setDefaultMachineMonitoring(), setSystemDebugging(), and setSystemMonitoring(). |
static boolean |
setDefaultMachineDebugging(boolean newValue)
Set default debugging flag used for newly created machine instances. |
static boolean |
setDefaultMachineDebuggingGlobalStateOutput(boolean newValue)
Set optional state output debugging flag used for root machine. |
static MachineMonitor |
setDefaultMachineMonitor(MachineMonitor newValue)
Set default monitor value used for newly created machine instances. |
static MachineMonitorEventFilter |
setDefaultMachineMonitorFilter(MachineMonitorEventFilter newValue)
Set default monitor filter value used for newly created machine instances. |
static boolean |
setDefaultMachineMonitoring(boolean newValue)
Set/clear default monitoring flag used for newly created machine instances. |
boolean |
setMachineDebugging(boolean value)
Set/clear debug flag for this machine and any of its submachines. |
boolean |
setMachineDebuggingGlobalStateOutput(boolean value)
Set/clear global state output debug flag for root machine. |
MachineMonitor |
setMachineMonitor(MachineMonitor monitor)
Sets monitor for this machine and all submachines. |
boolean |
setMachineMonitoring(boolean value)
Set/clear monitoring flag for this machine and any of its submachines. |
static boolean |
setSystemDebugging(boolean newValue)
Set default debugging flag used for all machine instances. |
static boolean |
setSystemMonitoring(boolean newValue)
Set/clear monitoring flag for all machine instances. |
java.lang.String |
statePathString()
Returns this machine's state path string. |
java.lang.String |
toString()
Returns formatted image of machine's global state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
public static final DeepHistoryPseudostateConfiguration DEEP_HISTORY_CONFIG
public static final DefaultInitialPseudostateConfiguration DEFAULT_INITIAL_CONFIG
public static final TerminalPseudostateConfiguration TERMINAL_CONFIG
public static final VariableStateConfiguration VARIABLE_CONFIG
public static final NewPseudostateConfiguration NEW_CONFIG
public static final AnyPseudostateConfiguration ANY_CONFIG
public static final BasicStateConfiguration BASIC_CONFIG
Constructor Detail |
---|
public Machine(java.lang.String machineName, Machine parentMachine, int machineIndex, MachineCode machineCode) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public static final boolean setSystemMonitoring(boolean newValue)
public static final boolean getSystemMonitoring()
public static final boolean setDefaultMachineMonitoring(boolean newValue)
public static final boolean getDefaultMachineMonitoring()
public static final MachineMonitor setDefaultMachineMonitor(MachineMonitor newValue)
public static final MachineMonitor getDefaultMachineMonitor()
public static final MachineMonitorEventFilter setDefaultMachineMonitorFilter(MachineMonitorEventFilter newValue)
public static final MachineMonitorEventFilter getDefaultMachineMonitorFilter()
public static final boolean setSystemDebugging(boolean newValue)
public static final boolean getSystemDebugging()
public static final boolean setDefaultMachineDebugging(boolean newValue)
public static final boolean getDefaultMachineDebugging()
public static final void setDebugging(boolean value)
public static final boolean setDefaultMachineDebuggingGlobalStateOutput(boolean newValue)
public static final boolean getDefaultMachineDebuggingGlobalStateOutput()
public MachineMonitor setMachineMonitor(MachineMonitor monitor)
public MachineMonitor getMachineMonitor()
public boolean setMachineMonitoring(boolean value)
public final boolean getMachineMonitoring()
public boolean setMachineDebugging(boolean value)
public final boolean getMachineDebugging()
public boolean setMachineDebuggingGlobalStateOutput(boolean value)
public final boolean getMachineDebuggingGlobalStateOutput()
public void putEvent(MachineMonitorEvent event) throws java.lang.Exception
java.lang.Exception
protected abstract void clearSubmachineReference(int index)
public final Machine getParentMachine()
public final Machine getRootMachine()
public final java.lang.String getMachineID()
public final int getMachineIndex()
public java.lang.String statePathString()
public abstract java.lang.String globalStateString(StateConfiguration config, TransitionMachine firedMachine) throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String globalStateString()
public abstract java.lang.String localStateString(StateConfiguration config, TransitionMachine firedMachine) throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String localStateString()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |