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

java.lang.Object
  extended bycom.evelopers.unimod.debug.protocol.position.Position
      extended bycom.evelopers.unimod.debug.protocol.position.SubmachinesExecutionPosition
All Implemented Interfaces:
java.io.Serializable

public class SubmachinesExecutionPosition
extends Position

Before or after execution of included state machine

See Also:
Serialized Form

Constructor Summary
SubmachinesExecutionPosition(StateMachineContext context, StateMachinePath path, Event event, java.lang.String state, java.lang.String subMachine, boolean before)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 ModelElement getContainer(Model m)
          Returns container element for position.
 Event getEvent()
           
 java.lang.String getState()
           
 java.lang.String getSubMachine()
           
 ModelElement getTarget(Model m)
          Returns target element of position.
 int hashCode()
           
 boolean isBefore()
           
 void setEvent(Event event)
           
 java.lang.String toString()
           
 
Methods inherited from class com.evelopers.unimod.debug.protocol.position.Position
getContext, getPath, getStateMachine, setContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubmachinesExecutionPosition

public SubmachinesExecutionPosition(StateMachineContext context,
                                    StateMachinePath path,
                                    Event event,
                                    java.lang.String state,
                                    java.lang.String subMachine,
                                    boolean before)
Method Detail

getEvent

public Event getEvent()

setEvent

public void setEvent(Event event)
Parameters:
event - The event to set.

getState

public java.lang.String getState()

getSubMachine

public java.lang.String getSubMachine()
Returns:
Returns the subMachine.

isBefore

public boolean isBefore()

getContainer

public ModelElement getContainer(Model m)
Description copied from class: Position
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.

Specified by:
getContainer in class Position
Parameters:
m -
Returns:

getTarget

public ModelElement getTarget(Model m)
Description copied from class: Position
Returns target element of position.

Specified by:
getTarget in class Position
Parameters:
m -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Position

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Position

toString

public java.lang.String toString()
Overrides:
toString in class Position