|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StateMachinesHelper
The interface for the helper for StateMachines.
Created from the old StateMachinesHelper.
| Method Summary | |
|---|---|
void |
addDeferrableEvent(java.lang.Object state,
java.lang.Object deferrableEvent)
Add a deferrable event to a state. |
void |
addSubvertex(java.lang.Object handle,
java.lang.Object subvertex)
Add a subvertex to a composite state. |
java.lang.Object |
findNamespaceForEvent(java.lang.Object trans,
java.lang.Object model)
Find the correct namespace for an event. |
java.lang.Object |
findOperationByName(java.lang.Object trans,
java.lang.String opname)
Finds the operation to which a CallEvent refers. |
java.util.Collection |
getAllPossibleStatemachines(java.lang.Object model,
java.lang.Object oSubmachineState)
Returns all statemachines that can be the statemachine the given submachinestate represents. |
java.util.Collection |
getAllPossibleSubvertices(java.lang.Object oState)
Returns all states that can be recursively contained by the given State. |
java.util.Collection |
getAllSubStates(java.lang.Object compState)
Returns all substates some composite state contains. |
java.lang.Object |
getDestination(java.lang.Object trans)
Returns the destination of the given transition. |
java.util.Collection |
getOutgoingStates(java.lang.Object ostatevertex)
Gets all statevertices that are a target to transitions outgoing from the given statevertex. |
java.lang.String |
getPath(java.lang.Object o)
Returns the path of a state vertex. |
java.lang.Object |
getSource(java.lang.Object trans)
Returns the source of the given transition. |
java.lang.Object |
getStatebyName(java.lang.String path,
java.lang.Object container)
Returns a state contained into container. |
java.lang.Object |
getStateMachine(java.lang.Object handle)
Gets the statemachine that contains the given Object Traverses the state hierarchy of the statemachine untill the statemachine is reached. |
java.lang.Object |
getTop(java.lang.Object sm)
Get the "top" composite state of a statemachine. |
boolean |
isAddingStatemachineAllowed(java.lang.Object context)
Returns true if a statemachine may be added to the given context. |
boolean |
isTopState(java.lang.Object o)
Returns true is the given state is the top state. |
void |
removeDeferrableEvent(java.lang.Object state,
java.lang.Object deferrableEvent)
Remove a deferrable event from a state. |
void |
removeSubvertex(java.lang.Object handle,
java.lang.Object subvertex)
Remove a given subvertex from a given composite state. |
void |
setBound(java.lang.Object handle,
int bound)
Sets the Bound of some SynchState. |
void |
setChangeExpression(java.lang.Object handle,
java.lang.Object value)
Sets the change-expression for a ChangeEvent. |
void |
setConcurrent(java.lang.Object handle,
boolean concurrent)
Makes a Composite State concurrent. |
void |
setContainer(java.lang.Object handle,
java.lang.Object compositeState)
Set the container of a statevertex. |
void |
setContext(java.lang.Object statemachine,
java.lang.Object modelElement)
Set the Context of a statemachine. |
void |
setDoActivity(java.lang.Object handle,
java.lang.Object value)
Sets the do activity of a state. |
void |
setEffect(java.lang.Object handle,
java.lang.Object value)
Sets the effect of some transition. |
void |
setEntry(java.lang.Object handle,
java.lang.Object value)
Sets the entry action of some state. |
void |
setEventAsTrigger(java.lang.Object transition,
java.lang.Object event)
Couples a given event to the given transition as being trigger event. |
void |
setExit(java.lang.Object handle,
java.lang.Object value)
Sets the exit action of some state. |
void |
setExpression(java.lang.Object handle,
java.lang.Object value)
Set the Expression of a Guard or ChangeEvent. |
void |
setGuard(java.lang.Object handle,
java.lang.Object guard)
Sets the guard of a transition. |
void |
setInternalTransitions(java.lang.Object handle,
java.util.Collection intTrans)
|
void |
setReferenceState(java.lang.Object o,
java.lang.String referenced)
Sets the Referenced State of a StubState. |
void |
setSource(java.lang.Object handle,
java.lang.Object state)
Sets the source state of some message. |
void |
setState(java.lang.Object handle,
java.lang.Object element)
Sets the state of an internal transition. |
void |
setStateMachine(java.lang.Object handle,
java.lang.Object stm)
Sets a state machine of some state or transition. |
void |
setStatemachineAsSubmachine(java.lang.Object oSubmachineState,
java.lang.Object oStatemachine)
Connects a given statemachine to a submachinestate as being the statemachine the submachinestate represents. |
void |
setSubvertices(java.lang.Object handle,
java.util.Collection subvertices)
Set the collection of substates for a CompositeState. |
void |
setTrigger(java.lang.Object handle,
java.lang.Object event)
Sets the trigger event of a transition. |
void |
setWhen(java.lang.Object handle,
java.lang.Object value)
Sets the time-expression for a TimeEvent. |
| Method Detail |
|---|
java.lang.Object getSource(java.lang.Object trans)
trans - the given transition
java.lang.Object getDestination(java.lang.Object trans)
trans - the given transition
java.lang.Object getStateMachine(java.lang.Object handle)
Only if the given handle is null, then an exception is thrown.
handle - The element for which we want to know the
statemachine
void setEventAsTrigger(java.lang.Object transition,
java.lang.Object event)
transition - the given transitionevent - the given eventboolean isAddingStatemachineAllowed(java.lang.Object context)
context - the given context
boolean isTopState(java.lang.Object o)
o - CompositeState
java.util.Collection getAllPossibleStatemachines(java.lang.Object model,
java.lang.Object oSubmachineState)
model - the modeloSubmachineState - The submachinestate we are searching the
statemachines for.
java.util.Collection getAllPossibleSubvertices(java.lang.Object oState)
TODO: getAllPossibleSubvertices(Object) and
getAllSubStates(Object) are duplicates as implemented for MDR.
It isn't clear from the Javadoc or usage whether they should do different
things or this just happened because no one noticed we already had
another method.
oState - the Composite state we are searching the states for,
void setStatemachineAsSubmachine(java.lang.Object oSubmachineState,
java.lang.Object oStatemachine)
oSubmachineState - The submachinestate for which we want to set the
property submachineoStatemachine - The statemachinejava.lang.Object getTop(java.lang.Object sm)
sm - the given statemachine
java.util.Collection getOutgoingStates(java.lang.Object ostatevertex)
ostatevertex - the given statevertex
java.lang.Object findOperationByName(java.lang.Object trans,
java.lang.String opname)
trans - Object of type MTransitionopname - the name of the operation sought
java.util.Collection getAllSubStates(java.lang.Object compState)
TODO: getAllPossibleSubvertices(Object) and
getAllSubStates(Object) are duplicates as implemented for MDR.
It isn't clear from the Javadoc or usage whether they should do different
things or this just happened because no one noticed we already had
another method.
compState - the given compositestate
void removeSubvertex(java.lang.Object handle,
java.lang.Object subvertex)
handle - the composite statesubvertex - the StateVertex
void addSubvertex(java.lang.Object handle,
java.lang.Object subvertex)
handle - the CompositeStatesubvertex - the StateVertex
void setBound(java.lang.Object handle,
int bound)
handle - Synch Statebound - A positive integer or the value "unlimited" specifying
the maximal count of the SynchState. The count is the
difference between the number of times the incoming
and outgoing transitions of the synch state are fired.
void setConcurrent(java.lang.Object handle,
boolean concurrent)
handle - the CompositStateconcurrent - boolean
void setContainer(java.lang.Object handle,
java.lang.Object compositeState)
handle - is the stateVertexcompositeState - is the container. Can be null.
void setDoActivity(java.lang.Object handle,
java.lang.Object value)
handle - is the statevalue - the activity. Can be null.
void setEffect(java.lang.Object handle,
java.lang.Object value)
handle - is the transitionvalue - is the effect. Can be null.
void setEntry(java.lang.Object handle,
java.lang.Object value)
handle - is the statevalue - is the action. Can be null.
void setExit(java.lang.Object handle,
java.lang.Object value)
handle - is the statevalue - is the action. Can be null.
void setExpression(java.lang.Object handle,
java.lang.Object value)
handle - Guard or ChangeEventvalue - BooleanExpression or null
void setGuard(java.lang.Object handle,
java.lang.Object guard)
handle - to the transitionguard - to be set. Can be null.
void setInternalTransitions(java.lang.Object handle,
java.util.Collection intTrans)
handle - is the target.intTrans - is a collection of transitions.
void setSource(java.lang.Object handle,
java.lang.Object state)
handle - the messagestate - the source state
void setState(java.lang.Object handle,
java.lang.Object element)
handle - the internal transitionelement - the state that contains this transition
void setStateMachine(java.lang.Object handle,
java.lang.Object stm)
handle - is the state or transitionstm - is the state machine
void setSubvertices(java.lang.Object handle,
java.util.Collection subvertices)
handle - CompositeStatesubvertices - collection of sub-StateVertexes
void setTrigger(java.lang.Object handle,
java.lang.Object event)
handle - is the transitionevent - is the trigger event or null
void setWhen(java.lang.Object handle,
java.lang.Object value)
handle - Object (TimeEvent)value - Object (TimeExpression)
void setChangeExpression(java.lang.Object handle,
java.lang.Object value)
handle - Object (ChangeEvent)value - Object (BooleanExpression)java.lang.String getPath(java.lang.Object o)
o - the StateVertex
java.lang.Object getStatebyName(java.lang.String path,
java.lang.Object container)
path - The whole pathname of the state we are looking for.container - of the state
void setReferenceState(java.lang.Object o,
java.lang.String referenced)
o - Stub Statereferenced - state
java.lang.Object findNamespaceForEvent(java.lang.Object trans,
java.lang.Object model)
trans - the transition of which the event is a triggermodel - the default is the model
void setContext(java.lang.Object statemachine,
java.lang.Object modelElement)
statemachine - The state machine.modelElement - The context.
void addDeferrableEvent(java.lang.Object state,
java.lang.Object deferrableEvent)
state - The state.deferrableEvent - The deferrable event.
void removeDeferrableEvent(java.lang.Object state,
java.lang.Object deferrableEvent)
state - The state.deferrableEvent - The referrable event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |