com.evelopers.unimod.debug.protocol.position
Class Position

java.lang.Object
  extended bycom.evelopers.unimod.debug.protocol.position.Position
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActionExecutionPosition, ComeToStatePosition, CompositeTargetStatePosition, EventProcessingPosition, FinalStatePosition, SubmachinesExecutionPosition, TransitionSelectionPosition

public abstract class Position
extends java.lang.Object
implements java.io.Serializable

Indicates position in algorythm of event processing

See Also:
Serialized Form

Constructor Summary
Position(StateMachineContext context, StateMachinePath path)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
abstract  ModelElement getContainer(Model m)
          Returns container element for position.
 StateMachineContext getContext()
           
 StateMachinePath getPath()
           
 StateMachine getStateMachine(Model m)
           
abstract  ModelElement getTarget(Model m)
          Returns target element of position.
 int hashCode()
           
 void setContext(StateMachineContext context)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Position

public Position(StateMachineContext context,
                StateMachinePath path)
Method Detail

getPath

public StateMachinePath getPath()

getContext

public StateMachineContext getContext()
Returns:
Returns the context.

setContext

public void setContext(StateMachineContext context)
Parameters:
context - The context to set.

toString

public java.lang.String toString()

hashCode

public int hashCode()

getContainer

public abstract ModelElement getContainer(Model m)
Returns container element for position. For example, if position is execution of input action on transition, it will return transition that holds guard with input action. Returns State or Transition only.

Parameters:
m -
Returns:

getTarget

public abstract ModelElement getTarget(Model m)
Returns target element of position.

Parameters:
m -
Returns:

getStateMachine

public StateMachine getStateMachine(Model m)

equals

public boolean equals(java.lang.Object o)