|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.model.uml.AbstractUmlModelFactory
org.argouml.model.uml.StateMachinesFactoryImpl
Factory to create UML classes for the UML BehaviorialElements::StateMachines package.
MEvent and MStateVertex do not have create methods since they are abstract classes in the NSUML model.
TODO: Change visibility to package after reflection problem solved.
| Field Summary | |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
| Constructor Summary | |
(package private) |
StateMachinesFactoryImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
| Method Summary | |
Object |
buildCallEvent(Object model)
Builds a callevent whose namespace (and therefore the ownership) is the rootmodel. |
Object |
buildCallEvent(Object trans,
String name,
Object model)
Create a initialized instance of a CallEvent with a name as a trigger for a Transition. |
Object |
buildChangeEvent(Object model)
Builds a changeevent whose namespace (and therefore the ownership) is the rootmodel. |
Object |
buildChangeEvent(String s,
Object model)
Builds a changeevent whose namespace (and therefore the ownership) is the rootmodel. |
Object |
buildCompositeState(Object compositeState)
Builds a compositestate initalized as a non-concurrent composite state. |
Object |
buildCompositeStateOnStateMachine(Object statemachine)
Builds a compositestate as top for some statemachine. |
Object |
buildFinalState(Object compositeState)
Builds a finalstate. |
Object |
buildGuard(Object transition)
Builds a guard condition with a given transition. |
Object |
buildInternalTransition(Object state)
Builds an internal transition for a given state. |
Object |
buildPseudoState(Object compositeState)
Builds a pseudostate initialized as a choice pseudostate. |
Object |
buildSignalEvent(Object model)
Builds a signalevent whose namespace (and therefore the ownership) is the rootmodel. |
Object |
buildSignalEvent(String name,
Object model)
Builds a named signalevent whose namespace (and therefore the ownership) is the rootmodel. |
Object |
buildSimpleState(Object compositeState)
Builds a simplestate. |
Object |
buildStateMachine(Object oContext)
Builds a state machine owned by the given context. |
Object |
buildStubState(Object compositeState)
Builds a stubstate initalized with an empty referenced state. |
Object |
buildSubmachineState(Object compositeState)
Builds a submachinestate. |
Object |
buildSynchState(Object compositeState)
Builds a synchstate initalized with bound 0. |
Object |
buildTimeEvent(Object model)
Builds a timeevent whose namespace (and therefore the ownership) is the rootmodel. |
Object |
buildTimeEvent(String s,
Object model)
Builds a timeevent whose namespace (and therefore the ownership) is the rootmodel. |
Object |
buildTransition(Object source,
Object target)
Build a transition between a source state and a target state. |
Object |
buildTransition(Object owningState,
Object source,
Object dest)
Builds a complete transition including all associations (composite state the transition belongs to, source the transition is coming from, destination the transition is going to). |
Object |
createCallEvent()
Create an empty but initialized instance of a UML CallEvent. |
Object |
createChangeEvent()
Create an empty but initialized instance of a UML ChangeEvent. |
Object |
createCompositeState()
Create an empty but initialized instance of a UML CompositeState. |
Object |
createFinalState()
Create an empty but initialized instance of a UML FinalState. |
Object |
createGuard()
Create an empty but initialized instance of a UML Guard. |
Object |
createPseudostate()
Create an empty but initialized instance of a UML Pseudostate. |
Object |
createSignalEvent()
Create an empty but initialized instance of a UML SignalEvent. |
Object |
createSimpleState()
Create an empty but initialized instance of a UML SimpleState. |
Object |
createState()
Create an empty but initialized instance of a UML State. |
Object |
createStateMachine()
Create an empty but initialized instance of a UML StateMachine. |
Object |
createStubState()
Create an empty but initialized instance of a UML StubState. |
Object |
createSubmachineState()
Create an empty but initialized instance of a UML SubmachineState. |
Object |
createSynchState()
Create an empty but initialized instance of a UML SynchState. |
Object |
createTimeEvent()
Create an empty but initialized instance of a UML TimeEvent. |
Object |
createTransition()
Create an empty but initialized instance of a UML Transition. |
(package private) void |
deleteCallEvent(Object elem)
|
(package private) void |
deleteChangeEvent(Object elem)
|
(package private) void |
deleteCompositeState(Object elem)
Deletes any associated subVertices. |
(package private) void |
deleteEvent(Object elem)
|
(package private) void |
deleteFinalState(Object elem)
|
(package private) void |
deleteGuard(Object elem)
|
(package private) void |
deletePseudostate(Object elem)
|
(package private) void |
deleteSignalEvent(Object elem)
|
(package private) void |
deleteSimpleState(Object elem)
|
(package private) void |
deleteState(Object elem)
|
(package private) void |
deleteStateMachine(Object elem)
deletes its top state, which is a composite state (state vertex). |
(package private) void |
deleteStateVertex(Object elem)
Deletes the outgoing and incoming transitions of a statevertex. |
(package private) void |
deleteStubState(Object elem)
|
(package private) void |
deleteSubmachineState(Object elem)
|
(package private) void |
deleteSynchState(Object elem)
|
(package private) void |
deleteTimeEvent(Object elem)
|
(package private) void |
deleteTransition(Object elem)
|
| Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory |
addListenersToModelElement, initialize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private NSUMLModelImplementation nsmodel
| Constructor Detail |
StateMachinesFactoryImpl(NSUMLModelImplementation implementation)
implementation - To get other helpers and factories.| Method Detail |
public Object createCallEvent()
createCallEvent in interface org.argouml.model.StateMachinesFactorypublic Object createChangeEvent()
createChangeEvent in interface org.argouml.model.StateMachinesFactorypublic Object createCompositeState()
createCompositeState in interface org.argouml.model.StateMachinesFactorypublic Object createFinalState()
createFinalState in interface org.argouml.model.StateMachinesFactorypublic Object createGuard()
createGuard in interface org.argouml.model.StateMachinesFactorypublic Object createPseudostate()
createPseudostate in interface org.argouml.model.StateMachinesFactorypublic Object createSignalEvent()
createSignalEvent in interface org.argouml.model.StateMachinesFactorypublic Object createSimpleState()
createSimpleState in interface org.argouml.model.StateMachinesFactorypublic Object createState()
createState in interface org.argouml.model.StateMachinesFactorypublic Object createStateMachine()
createStateMachine in interface org.argouml.model.StateMachinesFactorypublic Object createStubState()
createStubState in interface org.argouml.model.StateMachinesFactorypublic Object createSubmachineState()
createSubmachineState in interface org.argouml.model.StateMachinesFactorypublic Object createSynchState()
createSynchState in interface org.argouml.model.StateMachinesFactorypublic Object createTimeEvent()
createTimeEvent in interface org.argouml.model.StateMachinesFactorypublic Object createTransition()
createTransition in interface org.argouml.model.StateMachinesFactorypublic Object buildCompositeStateOnStateMachine(Object statemachine)
buildCompositeStateOnStateMachine in interface org.argouml.model.StateMachinesFactorystatemachine - the given statemachine
buildCompositeState(Object)public Object buildStateMachine(Object oContext)
buildStateMachine in interface org.argouml.model.StateMachinesFactoryoContext - the given context
public Object buildTransition(Object owningState,
Object source,
Object dest)
buildTransition in interface org.argouml.model.StateMachinesFactoryowningState - the composite state that owns the transitionsource - the source of the transition (a StateVertex)dest - the destination of the transition (a StateVertex)
public Object buildPseudoState(Object compositeState)
buildPseudoState in interface org.argouml.model.StateMachinesFactorycompositeState - the parent
public Object buildSynchState(Object compositeState)
buildSynchState in interface org.argouml.model.StateMachinesFactorycompositeState - the given compositestate
public Object buildStubState(Object compositeState)
buildStubState in interface org.argouml.model.StateMachinesFactorycompositeState - the given composite state
public Object buildCompositeState(Object compositeState)
buildCompositeState in interface org.argouml.model.StateMachinesFactorycompositeState - the given compositestate
buildCompositeStateOnStateMachine(Object)public Object buildSimpleState(Object compositeState)
buildSimpleState in interface org.argouml.model.StateMachinesFactorycompositeState - the given compositestate
public Object buildFinalState(Object compositeState)
buildFinalState in interface org.argouml.model.StateMachinesFactorycompositeState - the given compositestate
public Object buildSubmachineState(Object compositeState)
buildSubmachineState in interface org.argouml.model.StateMachinesFactorycompositeState - the given compositestate
public Object buildInternalTransition(Object state)
buildInternalTransition in interface org.argouml.model.StateMachinesFactorystate - The state the internal transition should belong to
public Object buildTransition(Object source,
Object target)
buildTransition in interface org.argouml.model.StateMachinesFactorysource - The source statetarget - The target state
public Object buildCallEvent(Object model)
buildCallEvent in interface org.argouml.model.StateMachinesFactorymodel - the model
public Object buildCallEvent(Object trans,
String name,
Object model)
buildCallEvent in interface org.argouml.model.StateMachinesFactorytrans - Object MTransition for which the CallEvent is a triggername - String with the trigger name - should not include "()"model - the model
public Object buildSignalEvent(Object model)
buildSignalEvent in interface org.argouml.model.StateMachinesFactorymodel - the model
public Object buildSignalEvent(String name,
Object model)
buildSignalEvent in interface org.argouml.model.StateMachinesFactorymodel - the modelname - String the name of the SignalEvent
public Object buildTimeEvent(Object model)
buildTimeEvent in interface org.argouml.model.StateMachinesFactorymodel - the Model
public Object buildTimeEvent(String s,
Object model)
buildTimeEvent in interface org.argouml.model.StateMachinesFactorys - String for creating the TimeExpressionmodel - the model
public Object buildChangeEvent(Object model)
buildChangeEvent in interface org.argouml.model.StateMachinesFactorymodel - the model
public Object buildChangeEvent(String s,
Object model)
buildChangeEvent in interface org.argouml.model.StateMachinesFactorymodel - the models - String for creating the BooleanExpression
public Object buildGuard(Object transition)
buildGuard in interface org.argouml.model.StateMachinesFactorytransition - The transition that owns the resulting guard condition
void deleteCallEvent(Object elem)
elem - the UML element to be deletedvoid deleteChangeEvent(Object elem)
elem - the UML element to be deletedvoid deleteCompositeState(Object elem)
elem - the UML element to be deletedvoid deleteEvent(Object elem)
elem - the UML element to be deletedvoid deleteFinalState(Object elem)
elem - the UML element to be deletedvoid deleteGuard(Object elem)
elem - the UML element to be deletedvoid deletePseudostate(Object elem)
elem - the UML element to be deletedvoid deleteSignalEvent(Object elem)
elem - the UML element to be deletedvoid deleteSimpleState(Object elem)
elem - the UML element to be deletedvoid deleteState(Object elem)
elem - the UML element to be deletedvoid deleteStateMachine(Object elem)
elem - the state machine to be removed.void deleteStateVertex(Object elem)
elem - the UML element to be deletedvoid deleteStubState(Object elem)
elem - the UML element to be deletedvoid deleteSubmachineState(Object elem)
elem - the UML element to be deletedvoid deleteSynchState(Object elem)
elem - the UML element to be deletedvoid deleteTimeEvent(Object elem)
elem - the UML element to be deletedvoid deleteTransition(Object elem)
elem - the UML element to be deleted
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |