org.argouml.model.uml
Class ActivityGraphsFactoryImpl

java.lang.Object
  extended byorg.argouml.model.uml.AbstractUmlModelFactory
      extended byorg.argouml.model.uml.ActivityGraphsFactoryImpl
All Implemented Interfaces:
org.argouml.model.ActivityGraphsFactory

public class ActivityGraphsFactoryImpl
extends AbstractUmlModelFactory
implements org.argouml.model.ActivityGraphsFactory

Factory to create UML classes for the UML BehaviorialElements::ActivityGraphs package. TODO: Change visibility to package after reflection problem solved.

Since:
ARGO0.11.2

Field Summary
private  NSUMLModelImplementation nsmodel
          The model implementation.
 
Constructor Summary
(package private) ActivityGraphsFactoryImpl(NSUMLModelImplementation implementation)
          Don't allow instantiation.
 
Method Summary
 Object buildActivityGraph(Object theContext)
          Builds an activity graph owned by the given context.
 Object buildClassifierInState(Object classifier, Object state)
          Builds a ClassifierInState.
 Object buildObjectFlowState(Object compositeState)
          Builds an objectflowstate.
 Object createActionState()
          Create an empty but initialized instance of a UML ActionState.
 Object createActivityGraph()
          Create an empty but initialized instance of a UML ActivityGraph.
 Object createCallState()
          Create an empty but initialized instance of a UML CallState.
 Object createClassifierInState()
          Create an empty but initialized instance of a UML ClassifierInState.
 Object createObjectFlowState()
          Create an empty but initialized instance of a UML ObjectFlowState.
 Object createPartition()
          Create an empty but initialized instance of a UML Partition.
 Object createSubactivityState()
          Create an empty but initialized instance of a UML SubactivityState.
(package private)  void deleteActionState(Object elem)
           
(package private)  void deleteActivityGraph(Object elem)
           
(package private)  void deleteCallState(Object elem)
           
(package private)  void deleteClassifierInState(Object elem)
           
(package private)  void deleteObjectFlowState(Object elem)
           
(package private)  void deletePartition(Object elem)
           
(package private)  void deleteSubactivityState(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

nsmodel

private NSUMLModelImplementation nsmodel
The model implementation.

Constructor Detail

ActivityGraphsFactoryImpl

ActivityGraphsFactoryImpl(NSUMLModelImplementation implementation)
Don't allow instantiation.

Parameters:
implementation - To get other helpers and factories.
Method Detail

createActionState

public Object createActionState()
Create an empty but initialized instance of a UML ActionState.

Specified by:
createActionState in interface org.argouml.model.ActivityGraphsFactory
Returns:
an initialized UML ActionState instance.

createActivityGraph

public Object createActivityGraph()
Create an empty but initialized instance of a UML ActivityGraph.

Specified by:
createActivityGraph in interface org.argouml.model.ActivityGraphsFactory
Returns:
an initialized UML ActivityGraph instance.

createCallState

public Object createCallState()
Create an empty but initialized instance of a UML CallState.

Specified by:
createCallState in interface org.argouml.model.ActivityGraphsFactory
Returns:
an initialized UML CallState instance.

createClassifierInState

public Object createClassifierInState()
Create an empty but initialized instance of a UML ClassifierInState.

Specified by:
createClassifierInState in interface org.argouml.model.ActivityGraphsFactory
Returns:
an initialized UML ClassifierInState instance.

createObjectFlowState

public Object createObjectFlowState()
Create an empty but initialized instance of a UML ObjectFlowState.

Specified by:
createObjectFlowState in interface org.argouml.model.ActivityGraphsFactory
Returns:
an initialized UML ObjectFlowState instance.

createPartition

public Object createPartition()
Create an empty but initialized instance of a UML Partition.

Specified by:
createPartition in interface org.argouml.model.ActivityGraphsFactory
Returns:
an initialized UML Partition instance.

createSubactivityState

public Object createSubactivityState()
Create an empty but initialized instance of a UML SubactivityState.

Specified by:
createSubactivityState in interface org.argouml.model.ActivityGraphsFactory
Returns:
an initialized UML SubactivityState instance.

buildActivityGraph

public Object buildActivityGraph(Object theContext)
Builds an activity graph owned by the given context.

Specified by:
buildActivityGraph in interface org.argouml.model.ActivityGraphsFactory
Parameters:
theContext - is a ModelElement that will own the graph.
Returns:
the new ActivityGraph as Object

buildObjectFlowState

public Object buildObjectFlowState(Object compositeState)
Builds an objectflowstate. The objectflowstate 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.

Specified by:
buildObjectFlowState in interface org.argouml.model.ActivityGraphsFactory
Parameters:
compositeState - the given compositestate
Returns:
Object the newly build objectflow state

buildClassifierInState

public Object buildClassifierInState(Object classifier,
                                     Object state)
Builds a ClassifierInState. Links it to the 2 required objects: the classifier that forms the type of this classifierInState, and the state.

Specified by:
buildClassifierInState in interface org.argouml.model.ActivityGraphsFactory
Parameters:
classifier - the classifier (type)
state - the state (inState)
Returns:
the newly build ClassifierInState

deleteActionState

void deleteActionState(Object elem)
Parameters:
elem - the ActionState to be deleted

deleteActivityGraph

void deleteActivityGraph(Object elem)
Parameters:
elem - the ActivityGraph to be deleted

deleteCallState

void deleteCallState(Object elem)
Parameters:
elem - the CallState to be deleted

deleteClassifierInState

void deleteClassifierInState(Object elem)
Parameters:
elem - the ClassifierInState to be deleted

deleteObjectFlowState

void deleteObjectFlowState(Object elem)
Parameters:
elem - ObjectFlowState

deletePartition

void deletePartition(Object elem)
Parameters:
elem - Partition

deleteSubactivityState

void deleteSubactivityState(Object elem)
Parameters:
elem - SubactivityState


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook