Package cruise.umple.compiler
Class Transition
java.lang.Object
cruise.umple.compiler.Transition
public class Transition
extends java.lang.Object
Specifies, within a state, what happens with a certain event (method call) occurs
Normally the state machine will go to a new state after executing various actions and
activities.
The guard is a boolean condition that may prevent triggering the transition
NEW CLASS****************************************
-
Constructor Summary
Constructors Constructor Description Transition(State aFromState, State aNextState)
-
Method Summary
Modifier and Type Method Description boolean
addOrMoveStateMachineTraceItemAt(StateMachineTraceItem aStateMachineTraceItem, int index)
boolean
addStateMachineTraceItem(StateMachineTraceItem aStateMachineTraceItem)
boolean
addStateMachineTraceItemAt(StateMachineTraceItem aStateMachineTraceItem, int index)
Transition
clone(State inFromState, State inNextState)
---------------------------------------------------------------------------- ---------------------------------Start-------------------------------------- ---------------------------------------------------------------------------- Please maintain this method if you're going to add new features to Transitions.static Transition
createPlaceholder(State nextState)
void
delete()
boolean
equals(java.lang.Object obj)
Action
getAction()
boolean
getAutoTransition()
Event
getEvent()
State
getFromState()
Guard
getGuard()
boolean
getIsInternal()
State
getNextState()
Position
getPosition()
Issue 519StateMachine
getSmToExit(StateMachine defaultToExit)
Issue 935 Helper Function - Determine the state machine to exit in a transitionStateMachineTraceItem
getStateMachineTraceItem(int index)
java.util.List<StateMachineTraceItem>
getStateMachineTraceItems()
boolean
hasAction()
boolean
hasEvent()
boolean
hasGuard()
int
hashCode()
boolean
hasStateMachineTraceItems()
int
indexOfStateMachineTraceItem(StateMachineTraceItem aStateMachineTraceItem)
boolean
isAutoTransition()
boolean
isEqualToTransition(Transition inTransition)
---------------------------------------------------------------------------- ---------------------------------Start-------------------------------------- ----------------------------------------------------------------------------boolean
isIsInternal()
boolean
isTransitionAndCross(State commonConcurrentParent)
Issue 140/935 - A helper function to determine if a transition is an and-cross transitionstatic int
minimumNumberOfStateMachineTraceItems()
int
numberOfStateMachineTraceItems()
boolean
removeStateMachineTraceItem(StateMachineTraceItem aStateMachineTraceItem)
boolean
setAction(Action aNewAction)
boolean
setAutoTransition(boolean aAutoTransition)
boolean
setEvent(Event aNewEvent)
boolean
setFromState(State aFromState)
boolean
setGuard(Guard aNewGuard)
boolean
setIsInternal(boolean aIsInternal)
boolean
setNextState(State aNextState)
boolean
setPosition(Position aPosition)
java.lang.String
toString()
-
Constructor Details
-
Method Details
-
setIsInternal
public boolean setIsInternal(boolean aIsInternal) -
setAutoTransition
public boolean setAutoTransition(boolean aAutoTransition) -
setPosition
-
getIsInternal
public boolean getIsInternal() -
getAutoTransition
public boolean getAutoTransition() -
getPosition
Issue 519 -
isIsInternal
public boolean isIsInternal() -
isAutoTransition
public boolean isAutoTransition() -
getEvent
-
hasEvent
public boolean hasEvent() -
getFromState
-
getNextState
-
getGuard
-
hasGuard
public boolean hasGuard() -
getAction
-
hasAction
public boolean hasAction() -
getStateMachineTraceItem
-
getStateMachineTraceItems
-
numberOfStateMachineTraceItems
public int numberOfStateMachineTraceItems() -
hasStateMachineTraceItems
public boolean hasStateMachineTraceItems() -
indexOfStateMachineTraceItem
-
setEvent
-
setFromState
-
setNextState
-
setGuard
-
setAction
-
minimumNumberOfStateMachineTraceItems
public static int minimumNumberOfStateMachineTraceItems() -
addStateMachineTraceItem
-
removeStateMachineTraceItem
-
addStateMachineTraceItemAt
-
addOrMoveStateMachineTraceItemAt
public boolean addOrMoveStateMachineTraceItemAt(StateMachineTraceItem aStateMachineTraceItem, int index) -
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
delete
public void delete() -
createPlaceholder
-
getSmToExit
Issue 935 Helper Function - Determine the state machine to exit in a transition -
isTransitionAndCross
Issue 140/935 - A helper function to determine if a transition is an and-cross transition -
clone
---------------------------------------------------------------------------- ---------------------------------Start-------------------------------------- ---------------------------------------------------------------------------- Please maintain this method if you're going to add new features to Transitions. This code manually creates a clone of a Transitions. -
isEqualToTransition
---------------------------------------------------------------------------- ---------------------------------Start-------------------------------------- ---------------------------------------------------------------------------- -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-