com.evelopers.unimod.runtime
Class StateMachinePath

java.lang.Object
  extended bycom.evelopers.unimod.runtime.StateMachinePath
All Implemented Interfaces:
java.io.Serializable

public class StateMachinePath
extends java.lang.Object
implements java.io.Serializable

Path to state machine. Used to identify StateMachineConfig between AbstractEventProcessor and StateMachineConfigManager.

See Also:
Serialized Form

Constructor Summary
StateMachinePath(StateMachinePath superConfigPath, java.lang.String includingState, java.lang.String stateMachine)
          Creates path leading to superMachine's submachine in superMachineActiveState.
StateMachinePath(java.lang.String stateMachine)
          Creates path leading to root state machine.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getIncludingState()
          Returns state of super state machine that includes pointed state machine
 java.lang.String getStateMachine()
          Returns name of pointed state machine
 StateMachinePath getSuperStateMachinePath()
          Returns path to super state machine
 int hashCode()
           
 boolean isRoot()
          Returns whether this path leads to root state machine.
 java.lang.String toString()
          Symmetric to #parse(String) method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateMachinePath

public StateMachinePath(java.lang.String stateMachine)
Creates path leading to root state machine.


StateMachinePath

public StateMachinePath(StateMachinePath superConfigPath,
                        java.lang.String includingState,
                        java.lang.String stateMachine)
Creates path leading to superMachine's submachine in superMachineActiveState.

Parameters:
superConfigPath - path to superMachine
includingState - state of super machine containing pointed state machine
Method Detail

getSuperStateMachinePath

public StateMachinePath getSuperStateMachinePath()
Returns path to super state machine

Returns:
path to super state machine

getIncludingState

public java.lang.String getIncludingState()
Returns state of super state machine that includes pointed state machine

Returns:
state of super state machine that includes pointed state machine

getStateMachine

public java.lang.String getStateMachine()
Returns name of pointed state machine

Returns:
name of pointed state machine

isRoot

public boolean isRoot()
Returns whether this path leads to root state machine.

Returns:
whether this path leads to root state machine

toString

public java.lang.String toString()
Symmetric to #parse(String) method


equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()