|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.model.AbstractStateMachinesHelperDecorator
An abstract Decorator for the StateMachinesHelper.
| Method Summary | |
void |
addDeferrableEvent(Object state,
Object deferrableEvent)
Add a deferrable event to a state. |
void |
addSubvertex(Object handle,
Object subvertex)
Add a subvertex to a composite state. |
Object |
findNamespaceForEvent(Object trans,
Object model)
Find the correct namespace for an event. |
Object |
findOperationByName(Object trans,
String opname)
Finds the operation to which a CallEvent refers. |
Collection |
getAllPossibleStatemachines(Object model,
Object oSubmachineState)
Returns all statemachines that can be the statemachine the given submachinestate represents. |
Collection |
getAllPossibleSubvertices(Object oState)
Returns all states that can be recursively contained by the given State. |
Collection |
getAllSubStates(Object compState)
Returns all substates some composite state contains. |
protected StateMachinesHelper |
getComponent()
The component we are decorating. |
Object |
getDestination(Object trans)
Returns the destination of the given transition. |
Collection |
getOutgoingStates(Object ostatevertex)
Gets all statevertices that are a target to transitions outgoing from the given statevertex. |
String |
getPath(Object o)
Returns the path of a state vertex. |
Object |
getSource(Object trans)
Returns the source of the given transition. |
Object |
getStatebyName(String path,
Object container)
Returns a state contained into container. |
Object |
getStateMachine(Object handle)
Gets the statemachine that contains the given Object Traverses the state hierarchy of the statemachine untill the statemachine is reached. |
Object |
getTop(Object sm)
Get the "top" composite state of a statemachine. |
boolean |
isAddingStatemachineAllowed(Object context)
Returns true if a statemachine may be added to the given context. |
boolean |
isTopState(Object o)
Returns true is the given state is the top state. |
void |
removeDeferrableEvent(Object state,
Object deferrableEvent)
Remove a deferrable event from a state. |
void |
removeSubvertex(Object handle,
Object subvertex)
Remove a given subvertex from a given composite state. |
void |
setBound(Object handle,
int bound)
Sets the Bound of some SynchState. |
void |
setChangeExpression(Object handle,
Object value)
Sets the change-expression for a ChangeEvent. |
void |
setConcurrent(Object handle,
boolean concurrent)
Makes a Composite State concurrent. |
void |
setContainer(Object handle,
Object compositeState)
Set the container of a statevertex. |
void |
setContext(Object statemachine,
Object modelElement)
Set the Context of a statemachine. |
void |
setDoActivity(Object handle,
Object value)
Sets the do activity of a state. |
void |
setEffect(Object handle,
Object value)
Sets the effect of some transition. |
void |
setEntry(Object handle,
Object value)
Sets the entry action of some state. |
void |
setEventAsTrigger(Object transition,
Object event)
Couples a given event to the given transition as being trigger event. |
void |
setExit(Object handle,
Object value)
Sets the exit action of some state. |
void |
setExpression(Object handle,
Object value)
Set the Expression of a Guard or ChangeEvent. |
void |
setGuard(Object handle,
Object guard)
Sets the guard of a transition. |
void |
setInternalTransitions(Object handle,
Collection intTrans)
|
void |
setReferenceState(Object o,
String referenced)
Sets the Referenced State of a StubState. |
void |
setSource(Object handle,
Object state)
Sets the source state of some message. |
void |
setState(Object handle,
Object element)
Sets the state of an internal transition. |
void |
setStateMachine(Object handle,
Object stm)
Sets a state machine of some state or transition. |
void |
setStatemachineAsSubmachine(Object oSubmachineState,
Object oStatemachine)
Connects a given statemachine to a submachinestate as being the statemachine the submachinestate represents. |
void |
setSubvertices(Object handle,
Collection subvertices)
Set the collection of substates for a CompositeState. |
void |
setTrigger(Object handle,
Object event)
Sets the trigger event of a transition. |
void |
setWhen(Object handle,
Object value)
Sets the time-expression for a TimeEvent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
protected StateMachinesHelper getComponent()
public Object getSource(Object trans)
StateMachinesHelper
getSource in interface StateMachinesHelpertrans - the given transition
public Object getDestination(Object trans)
StateMachinesHelper
getDestination in interface StateMachinesHelpertrans - the given transition
public Object getStateMachine(Object handle)
StateMachinesHelperOnly if the given handle is null, then an exception is thrown.
getStateMachine in interface StateMachinesHelperhandle - The element for which we want to know the
statemachine
public void setEventAsTrigger(Object transition,
Object event)
StateMachinesHelper
setEventAsTrigger in interface StateMachinesHelpertransition - the given transitionevent - the given eventpublic boolean isAddingStatemachineAllowed(Object context)
StateMachinesHelper
isAddingStatemachineAllowed in interface StateMachinesHelpercontext - the given context
public boolean isTopState(Object o)
StateMachinesHelper
isTopState in interface StateMachinesHelpero - CompositeState
public Collection getAllPossibleStatemachines(Object model,
Object oSubmachineState)
StateMachinesHelper
getAllPossibleStatemachines in interface StateMachinesHelpermodel - the modeloSubmachineState - The submachinestate we are searching the
statemachines for.
public Collection getAllPossibleSubvertices(Object oState)
StateMachinesHelper
getAllPossibleSubvertices in interface StateMachinesHelperoState - the Composite state we are searching the states for,
public void setStatemachineAsSubmachine(Object oSubmachineState,
Object oStatemachine)
StateMachinesHelper
setStatemachineAsSubmachine in interface StateMachinesHelperoSubmachineState - The submachinestate for which we want to set the
property submachineoStatemachine - The statemachinepublic Object getTop(Object sm)
StateMachinesHelper
getTop in interface StateMachinesHelpersm - the given statemachine
public Collection getOutgoingStates(Object ostatevertex)
StateMachinesHelper
getOutgoingStates in interface StateMachinesHelperostatevertex - the given statevertex
public Object findOperationByName(Object trans,
String opname)
StateMachinesHelper
findOperationByName in interface StateMachinesHelpertrans - Object of type MTransitionopname - the name of the operation sought
public Collection getAllSubStates(Object compState)
StateMachinesHelper
getAllSubStates in interface StateMachinesHelpercompState - the given compositestate
public void removeSubvertex(Object handle,
Object subvertex)
StateMachinesHelper
removeSubvertex in interface StateMachinesHelperhandle - the composite statesubvertex - the StateVertex
public void addSubvertex(Object handle,
Object subvertex)
StateMachinesHelper
addSubvertex in interface StateMachinesHelperhandle - the CompositeStatesubvertex - the StateVertex
public void setBound(Object handle,
int bound)
StateMachinesHelper
setBound in interface StateMachinesHelperhandle - 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.
public void setConcurrent(Object handle,
boolean concurrent)
StateMachinesHelper
setConcurrent in interface StateMachinesHelperhandle - the CompositStateconcurrent - boolean
public void setContainer(Object handle,
Object compositeState)
StateMachinesHelper
setContainer in interface StateMachinesHelperhandle - is the stateVertexcompositeState - is the container. Can be null.
public void setDoActivity(Object handle,
Object value)
StateMachinesHelper
setDoActivity in interface StateMachinesHelperhandle - is the statevalue - the activity. Can be null.
public void setEffect(Object handle,
Object value)
StateMachinesHelper
setEffect in interface StateMachinesHelperhandle - is the transitionvalue - is the effect. Can be null.
public void setEntry(Object handle,
Object value)
StateMachinesHelper
setEntry in interface StateMachinesHelperhandle - is the statevalue - is the action. Can be null.
public void setExit(Object handle,
Object value)
StateMachinesHelper
setExit in interface StateMachinesHelperhandle - is the statevalue - is the action. Can be null.
public void setExpression(Object handle,
Object value)
StateMachinesHelper
setExpression in interface StateMachinesHelperhandle - Guard or ChangeEventvalue - BooleanExpression or null
public void setGuard(Object handle,
Object guard)
StateMachinesHelper
setGuard in interface StateMachinesHelperhandle - to the transitionguard - to be set. Can be null.
public void setInternalTransitions(Object handle,
Collection intTrans)
setInternalTransitions in interface StateMachinesHelperhandle - is the target.intTrans - is a collection of transitions.
public void setSource(Object handle,
Object state)
StateMachinesHelper
setSource in interface StateMachinesHelperhandle - the messagestate - the source state
public void setState(Object handle,
Object element)
StateMachinesHelper
setState in interface StateMachinesHelperhandle - the internal transitionelement - the state that contains this transition
public void setStateMachine(Object handle,
Object stm)
StateMachinesHelper
setStateMachine in interface StateMachinesHelperhandle - is the state or transitionstm - is the state machine
public void setSubvertices(Object handle,
Collection subvertices)
StateMachinesHelper
setSubvertices in interface StateMachinesHelperhandle - CompositeStatesubvertices - collection of sub-StateVertexes
public void setTrigger(Object handle,
Object event)
StateMachinesHelper
setTrigger in interface StateMachinesHelperhandle - is the transitionevent - is the trigger event or null
public void setWhen(Object handle,
Object value)
StateMachinesHelper
setWhen in interface StateMachinesHelperhandle - Object (TimeEvent)value - Object (TimeExpression)
public void setChangeExpression(Object handle,
Object value)
StateMachinesHelper
setChangeExpression in interface StateMachinesHelperhandle - Object (ChangeEvent)value - Object (BooleanExpression)public String getPath(Object o)
StateMachinesHelper
getPath in interface StateMachinesHelpero - the StateVertex
public Object getStatebyName(String path,
Object container)
StateMachinesHelper
getStatebyName in interface StateMachinesHelperpath - The whole pathname of the state we are looking for.container - of the state
public void setReferenceState(Object o,
String referenced)
StateMachinesHelper
setReferenceState in interface StateMachinesHelpero - Stub Statereferenced - state
public Object findNamespaceForEvent(Object trans,
Object model)
StateMachinesHelper
findNamespaceForEvent in interface StateMachinesHelpertrans - the transition of which the event is a triggermodel - the default is the model
public void addDeferrableEvent(Object state,
Object deferrableEvent)
StateMachinesHelper
addDeferrableEvent in interface StateMachinesHelperstate - The state.deferrableEvent - The deferrable event.
public void removeDeferrableEvent(Object state,
Object deferrableEvent)
StateMachinesHelper
removeDeferrableEvent in interface StateMachinesHelperstate - The state.deferrableEvent - The referrable event.
public void setContext(Object statemachine,
Object modelElement)
StateMachinesHelper
setContext in interface StateMachinesHelperstatemachine - The state machine.modelElement - The context.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |