org.argouml.model.uml.behavioralelements.statemachines
Class StateMachinesFactory

java.lang.Object
  |
  +--org.argouml.model.uml.AbstractUmlModelFactory
        |
        +--org.argouml.model.uml.behavioralelements.statemachines.StateMachinesFactory

public class StateMachinesFactory
extends AbstractUmlModelFactory

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.

Since:
ARGO0.11.2

Fields inherited from class org.argouml.model.uml.AbstractUmlModelFactory
logger
 
Method Summary
 ru.novosoft.uml.behavior.state_machines.MCallEvent buildCallEvent()
          Builds a callevent whose namespace (and therefore the ownership) is the rootmodel.
 ru.novosoft.uml.behavior.state_machines.MCompositeState buildCompositeState(ru.novosoft.uml.behavior.state_machines.MStateMachine statemachine)
          Builds a compositestate as top for some statemachine
 ru.novosoft.uml.behavior.state_machines.MCompositeState buildCompositeState(java.lang.Object compositeState)
          Builds a compositestate initalized as a non-concurrent composite state.
 ru.novosoft.uml.behavior.state_machines.MFinalState buildFinalState(java.lang.Object compositeState)
          Builds a finalstate.
 ru.novosoft.uml.behavior.state_machines.MGuard buildGuard(java.lang.Object transition)
          Builds a guard condition with a given transition.
 ru.novosoft.uml.behavior.state_machines.MTransition buildInternalTransition(java.lang.Object state)
          Builds an internal transition for a given state.
 ru.novosoft.uml.behavior.state_machines.MPseudostate buildPseudoState(java.lang.Object compositeState)
          Builds a pseudostate initialized as a branch pseudostate.
 ru.novosoft.uml.behavior.state_machines.MSimpleState buildSimpleState(java.lang.Object compositeState)
          Builds a simplestate.
 ru.novosoft.uml.behavior.state_machines.MStateMachine buildStateMachine(java.lang.Object oContext)
          Builds a state machine owned by the given context
 ru.novosoft.uml.behavior.state_machines.MStubState buildStubState(java.lang.Object compositeState)
          Builds a stubstate initalized with an empty referenced state.
 ru.novosoft.uml.behavior.state_machines.MSubmachineState buildSubmachineState(java.lang.Object compositeState)
          Builds a submachinestate.
 ru.novosoft.uml.behavior.state_machines.MSynchState buildSynchState(java.lang.Object compositeState)
          Builds a synchstate initalized with bound 0.
 ru.novosoft.uml.behavior.state_machines.MTransition buildTransition(ru.novosoft.uml.behavior.state_machines.MCompositeState owningState, ru.novosoft.uml.behavior.state_machines.MStateVertex source, ru.novosoft.uml.behavior.state_machines.MStateVertex 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).
 ru.novosoft.uml.behavior.state_machines.MTransition buildTransition(java.lang.Object source, java.lang.Object target)
          Build a transition between a source state and a target state.
 ru.novosoft.uml.behavior.state_machines.MCallEvent createCallEvent()
          Create an empty but initialized instance of a UML CallEvent.
 ru.novosoft.uml.behavior.state_machines.MChangeEvent createChangeEvent()
          Create an empty but initialized instance of a UML ChangeEvent.
 ru.novosoft.uml.behavior.state_machines.MCompositeState createCompositeState()
          Create an empty but initialized instance of a UML CompositeState.
 ru.novosoft.uml.behavior.state_machines.MFinalState createFinalState()
          Create an empty but initialized instance of a UML FinalState.
 ru.novosoft.uml.behavior.state_machines.MGuard createGuard()
          Create an empty but initialized instance of a UML Guard.
 ru.novosoft.uml.behavior.state_machines.MPseudostate createPseudostate()
          Create an empty but initialized instance of a UML Pseudostate.
 ru.novosoft.uml.behavior.state_machines.MSignalEvent createSignalEvent()
          Create an empty but initialized instance of a UML SignalEvent.
 ru.novosoft.uml.behavior.state_machines.MSimpleState createSimpleState()
          Create an empty but initialized instance of a UML SimpleState.
 ru.novosoft.uml.behavior.state_machines.MState createState()
          Create an empty but initialized instance of a UML State.
 ru.novosoft.uml.behavior.state_machines.MStateMachine createStateMachine()
          Create an empty but initialized instance of a UML StateMachine.
 ru.novosoft.uml.behavior.state_machines.MStubState createStubState()
          Create an empty but initialized instance of a UML StubState.
 ru.novosoft.uml.behavior.state_machines.MSubmachineState createSubmachineState()
          Create an empty but initialized instance of a UML SubmachineState.
 ru.novosoft.uml.behavior.state_machines.MSynchState createSynchState()
          Create an empty but initialized instance of a UML SynchState.
 ru.novosoft.uml.behavior.state_machines.MTimeEvent createTimeEvent()
          Create an empty but initialized instance of a UML TimeEvent.
 ru.novosoft.uml.behavior.state_machines.MTransition createTransition()
          Create an empty but initialized instance of a UML Transition.
 void deleteCallEvent(ru.novosoft.uml.behavior.state_machines.MCallEvent elem)
           
 void deleteChangeEvent(ru.novosoft.uml.behavior.state_machines.MChangeEvent elem)
           
 void deleteCompositeState(ru.novosoft.uml.behavior.state_machines.MCompositeState elem)
          deletes any associated subVertices.
 void deleteEvent(ru.novosoft.uml.behavior.state_machines.MEvent elem)
           
 void deleteFinalState(ru.novosoft.uml.behavior.state_machines.MFinalState elem)
           
 void deleteGuard(ru.novosoft.uml.behavior.state_machines.MGuard elem)
           
 void deletePseudostate(ru.novosoft.uml.behavior.state_machines.MPseudostate elem)
           
 void deleteSignalEvent(ru.novosoft.uml.behavior.state_machines.MSignalEvent elem)
           
 void deleteSimpleState(ru.novosoft.uml.behavior.state_machines.MSimpleState elem)
           
 void deleteState(ru.novosoft.uml.behavior.state_machines.MState elem)
           
 void deleteStateMachine(ru.novosoft.uml.behavior.state_machines.MStateMachine elem)
          deletes its top state, which is a composite state (state vertex).
 void deleteStateVertex(ru.novosoft.uml.behavior.state_machines.MStateVertex elem)
          Deletes the outgoing and incoming transitions of a statevertex.
 void deleteStubState(ru.novosoft.uml.behavior.state_machines.MStubState elem)
           
 void deleteSubmachineState(ru.novosoft.uml.behavior.state_machines.MSubmachineState elem)
           
 void deleteSynchState(ru.novosoft.uml.behavior.state_machines.MSynchState elem)
           
 void deleteTimeEvent(ru.novosoft.uml.behavior.state_machines.MTimeEvent elem)
           
 void deleteTransition(ru.novosoft.uml.behavior.state_machines.MTransition elem)
           
static StateMachinesFactory getFactory()
          Singleton instance access method.
 
Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static StateMachinesFactory getFactory()
Singleton instance access method.

createCallEvent

public ru.novosoft.uml.behavior.state_machines.MCallEvent createCallEvent()
Create an empty but initialized instance of a UML CallEvent.
Returns:
an initialized UML CallEvent instance.

createChangeEvent

public ru.novosoft.uml.behavior.state_machines.MChangeEvent createChangeEvent()
Create an empty but initialized instance of a UML ChangeEvent.
Returns:
an initialized UML ChangeEvent instance.

createCompositeState

public ru.novosoft.uml.behavior.state_machines.MCompositeState createCompositeState()
Create an empty but initialized instance of a UML CompositeState.
Returns:
an initialized UML CompositeState instance.

createFinalState

public ru.novosoft.uml.behavior.state_machines.MFinalState createFinalState()
Create an empty but initialized instance of a UML FinalState.
Returns:
an initialized UML FinalState instance.

createGuard

public ru.novosoft.uml.behavior.state_machines.MGuard createGuard()
Create an empty but initialized instance of a UML Guard.
Returns:
an initialized UML Guard instance.

createPseudostate

public ru.novosoft.uml.behavior.state_machines.MPseudostate createPseudostate()
Create an empty but initialized instance of a UML Pseudostate.
Returns:
an initialized UML Pseudostate instance.

createSignalEvent

public ru.novosoft.uml.behavior.state_machines.MSignalEvent createSignalEvent()
Create an empty but initialized instance of a UML SignalEvent.
Returns:
an initialized UML SignalEvent instance.

createSimpleState

public ru.novosoft.uml.behavior.state_machines.MSimpleState createSimpleState()
Create an empty but initialized instance of a UML SimpleState.
Returns:
an initialized UML SimpleState instance.

createState

public ru.novosoft.uml.behavior.state_machines.MState createState()
Create an empty but initialized instance of a UML State.
Returns:
an initialized UML State instance.

createStateMachine

public ru.novosoft.uml.behavior.state_machines.MStateMachine createStateMachine()
Create an empty but initialized instance of a UML StateMachine.
Returns:
an initialized UML StateMachine instance.

createStubState

public ru.novosoft.uml.behavior.state_machines.MStubState createStubState()
Create an empty but initialized instance of a UML StubState.
Returns:
an initialized UML StubState instance.

createSubmachineState

public ru.novosoft.uml.behavior.state_machines.MSubmachineState createSubmachineState()
Create an empty but initialized instance of a UML SubmachineState.
Returns:
an initialized UML SubmachineState instance.

createSynchState

public ru.novosoft.uml.behavior.state_machines.MSynchState createSynchState()
Create an empty but initialized instance of a UML SynchState.
Returns:
an initialized UML SynchState instance.

createTimeEvent

public ru.novosoft.uml.behavior.state_machines.MTimeEvent createTimeEvent()
Create an empty but initialized instance of a UML TimeEvent.
Returns:
an initialized UML TimeEvent instance.

createTransition

public ru.novosoft.uml.behavior.state_machines.MTransition createTransition()
Create an empty but initialized instance of a UML Transition.
Returns:
an initialized UML Transition instance.

buildCompositeState

public ru.novosoft.uml.behavior.state_machines.MCompositeState buildCompositeState(ru.novosoft.uml.behavior.state_machines.MStateMachine statemachine)
Builds a compositestate as top for some statemachine
Parameters:
statemachine -  
Returns:
MCompositeState

buildStateMachine

public ru.novosoft.uml.behavior.state_machines.MStateMachine buildStateMachine(java.lang.Object oContext)
Builds a state machine owned by the given context
Parameters:
context -  
Returns:
MActivityGraph

buildTransition

public ru.novosoft.uml.behavior.state_machines.MTransition buildTransition(ru.novosoft.uml.behavior.state_machines.MCompositeState owningState,
                                                                           ru.novosoft.uml.behavior.state_machines.MStateVertex source,
                                                                           ru.novosoft.uml.behavior.state_machines.MStateVertex 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). The transition is owned by the compositestate.
Parameters:
owningState -  
source -  
dest -  
Returns:
MTransition

buildPseudoState

public ru.novosoft.uml.behavior.state_machines.MPseudostate buildPseudoState(java.lang.Object compositeState)
Builds a pseudostate initialized as a branch pseudostate. The pseudostate will be a subvertix of the given compositestate. The parameter compositeState is of type Object to decouple the factory and NSUML as much as possible from the rest of ArgoUML.
Parameters:
compositeState -  
Returns:
MPseudostate

buildSynchState

public ru.novosoft.uml.behavior.state_machines.MSynchState buildSynchState(java.lang.Object compositeState)
Builds a synchstate initalized with bound 0. The synchstate will be a subvertix of the given compositestate. The parameter compositeState is of type Object to decouple the factory and NSUML as much as possible from the rest of ArgoUML.
Parameters:
compositeState -  
Returns:
MSynchState

buildStubState

public ru.novosoft.uml.behavior.state_machines.MStubState buildStubState(java.lang.Object compositeState)
Builds a stubstate initalized with an empty referenced state. The stubstate will be a subvertix of the given compositestate. The parameter compositeState is of type Object to decouple the factory and NSUML as much as possible from the rest of ArgoUML.
Parameters:
compositeState -  
Returns:
MSynchState

buildCompositeState

public ru.novosoft.uml.behavior.state_machines.MCompositeState buildCompositeState(java.lang.Object compositeState)
Builds a compositestate initalized as a non-concurrent composite state. The compositestate will be a subvertix of the given compositestate. The parameter compositeState is of type Object to decouple the factory and NSUML as much as possible from the rest of ArgoUML.
Parameters:
compositeState -  
Returns:
MSynchState

buildSimpleState

public ru.novosoft.uml.behavior.state_machines.MSimpleState buildSimpleState(java.lang.Object compositeState)
Builds a simplestate. The simplestate will be a subvertix of the given compositestate. The parameter compositeState is of type Object to decouple the factory and NSUML as much as possible. from the rest of ArgoUML.
Parameters:
compositeState -  
Returns:
MSynchState

buildFinalState

public ru.novosoft.uml.behavior.state_machines.MFinalState buildFinalState(java.lang.Object compositeState)
Builds a finalstate. The finalstate will be a subvertix of the given compositestate. The parameter compositeState is of type Object to decouple the factory and NSUML as much as possible. from the rest of ArgoUML.
Parameters:
compositeState -  
Returns:
MSynchState

buildSubmachineState

public ru.novosoft.uml.behavior.state_machines.MSubmachineState buildSubmachineState(java.lang.Object compositeState)
Builds a submachinestate. The submachinestate will be a subvertix of the given compositestate. The parameter compositeState is of type Object to decouple the factory and NSUML as much as possible. from the rest of ArgoUML.
Parameters:
compositeState -  
Returns:
MSynchState

buildInternalTransition

public ru.novosoft.uml.behavior.state_machines.MTransition buildInternalTransition(java.lang.Object state)
Builds an internal transition for a given state. The parameter state is of type Object to decouple the factory and NSUML as much as possible.
Parameters:
state - The state the internal transition should belong to
Returns:
MTransition The internal transition constructed

buildTransition

public ru.novosoft.uml.behavior.state_machines.MTransition buildTransition(java.lang.Object source,
                                                                           java.lang.Object target)
Build a transition between a source state and a target state. The parameters are of type Object to decouple the factory and NSUML as much as possible.
Parameters:
source - The source state
target - The target state
Returns:
MTransition The resulting transition between source an state

buildCallEvent

public ru.novosoft.uml.behavior.state_machines.MCallEvent buildCallEvent()
Builds a callevent whose namespace (and therefore the ownership) is the rootmodel.
Returns:
MCallEvent

buildGuard

public ru.novosoft.uml.behavior.state_machines.MGuard buildGuard(java.lang.Object transition)
Builds a guard condition with a given transition. The guard condition is empty by default. The parameter is of type Object to decouple the factory and NSUML as much as possible.
Parameters:
transition - The transition that owns the resulting guard condition
Returns:
MGuard The resulting guard condition

deleteCallEvent

public void deleteCallEvent(ru.novosoft.uml.behavior.state_machines.MCallEvent elem)

deleteChangeEvent

public void deleteChangeEvent(ru.novosoft.uml.behavior.state_machines.MChangeEvent elem)

deleteCompositeState

public void deleteCompositeState(ru.novosoft.uml.behavior.state_machines.MCompositeState elem)
deletes any associated subVertices.

deleteEvent

public void deleteEvent(ru.novosoft.uml.behavior.state_machines.MEvent elem)

deleteFinalState

public void deleteFinalState(ru.novosoft.uml.behavior.state_machines.MFinalState elem)

deleteGuard

public void deleteGuard(ru.novosoft.uml.behavior.state_machines.MGuard elem)

deletePseudostate

public void deletePseudostate(ru.novosoft.uml.behavior.state_machines.MPseudostate elem)

deleteSignalEvent

public void deleteSignalEvent(ru.novosoft.uml.behavior.state_machines.MSignalEvent elem)

deleteSimpleState

public void deleteSimpleState(ru.novosoft.uml.behavior.state_machines.MSimpleState elem)

deleteState

public void deleteState(ru.novosoft.uml.behavior.state_machines.MState elem)

deleteStateMachine

public void deleteStateMachine(ru.novosoft.uml.behavior.state_machines.MStateMachine elem)
deletes its top state, which is a composite state (state vertex).

deleteStateVertex

public void deleteStateVertex(ru.novosoft.uml.behavior.state_machines.MStateVertex elem)
Deletes the outgoing and incoming transitions of a statevertex.
Parameters:
elem -  

deleteStubState

public void deleteStubState(ru.novosoft.uml.behavior.state_machines.MStubState elem)

deleteSubmachineState

public void deleteSubmachineState(ru.novosoft.uml.behavior.state_machines.MSubmachineState elem)

deleteSynchState

public void deleteSynchState(ru.novosoft.uml.behavior.state_machines.MSynchState elem)

deleteTimeEvent

public void deleteTimeEvent(ru.novosoft.uml.behavior.state_machines.MTimeEvent elem)

deleteTransition

public void deleteTransition(ru.novosoft.uml.behavior.state_machines.MTransition elem)


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook