de.uni_paderborn.fujaba.uml
Class UMLActivityDiagram

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.BasicIncrement
      extended byde.uni_paderborn.fujaba.asg.ASGElement
          extended byde.uni_paderborn.fujaba.asg.ASGDiagram
              extended byde.uni_paderborn.fujaba.uml.UMLDiagram
                  extended byde.uni_paderborn.fujaba.uml.UMLActivityDiagram
All Implemented Interfaces:
java.lang.Comparable, FDiagram, FElement, FModelDiagram, de.uni_kassel.prop.InspectionAware, LogicUnparseInterface, de.tu_bs.coobra.ObjectChangeAware, de.upb.tools.pcs.PropertyChangeClient, de.upb.tools.pcs.PropertyChangeInterface, UniqueIdentifier
Direct Known Subclasses:
UMLStatechart

public class UMLActivityDiagram
extends UMLDiagram

Associations

                  0..1      contains      n
 UMLComplexState --------------------------- UMLActivityDiagram
                  revContains      contains
 

Version:
$Revision: 1.224.2.4 $
Author:
$Author: l3_g5 $

Nested Class Summary
 
Nested classes inherited from class de.uni_paderborn.fujaba.asg.ASGElement
ASGElement.SortByNameComparator
 
Field Summary
 
Fields inherited from class de.uni_paderborn.fujaba.uml.UMLDiagram
ELEMENTKEY, PROPERTY_NAME
 
Fields inherited from class de.uni_paderborn.fujaba.asg.ASGDiagram
ELEMENTS_PROPERTY_KEY, PROJECT_PROPERTY
 
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
dontUseAccessMethodsInThisClass
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FModelDiagram
CONSTRAINTS_PROPERTY
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FDiagram
ELEMENTS_PROPERTY
 
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FElement
ANNOTATIONS_PROPERTY, DIAGRAMS_PROPERTY, ELEMENT_REFERENCES_PROPERTY, GENERATED_PROPERTY, NAME_PROPERTY, TEXT_PROPERTY
 
Constructor Summary
UMLActivityDiagram()
          Constructor for class UMLActivityDiagram
UMLActivityDiagram(boolean coobraPersistent)
           
UMLActivityDiagram(java.lang.String name, UMLProject project)
          Constructor for class UMLActivityDiagram
 
Method Summary
protected  void addToNewStoryObjects(UMLObject value)
          Access method for an one to n association.
 boolean belongsToMasterState()
          No comment provided by developer, please add a comment to improve documentation.
 boolean belongsToSimpleState()
          No comment provided by developer, please add a comment to improve documentation.
 boolean belongsToState()
          No comment provided by developer, please add a comment to improve documentation.
 boolean belongsToStateWithSubStates()
          No comment provided by developer, please add a comment to improve documentation.
 boolean belongsToSubState()
          No comment provided by developer, please add a comment to improve documentation.
 void createFlowAssociations()
          Creates a correspondent FlowActivity for each activity in this diagram.
 UMLActivityDiagram findActivityDiagramOfMasterState()
          No comment provided by developer, please add a comment to improve documentation.
protected  UMLObject getFromNewStoryObjects(java.lang.String key)
          Get the fromNewStoryObjects attribute of the UMLActivityDiagram object
 java.lang.String getFullName()
          Returns the full name like class::method
 boolean getIsStoryBoard()
          Get the isStoryBoard attribute of the UMLActivityDiagram object
 java.lang.String getName()
          Get the name attribute of the UMLDiagram object
 FElement getParentElement()
          Query the logical parent of this element (e.g. package of a class, diagram of an object).
 int getPriority()
          Get the value of priority.
 UMLComplexState getRevContains()
          Get the revContains attribute of the UMLActivityDiagram object
 UMLStartActivity getStartActivity()
          Returns the start activity of this diagram
 UMLMethod getStoryMethod()
          Get the spec attribute of the UMLStartActivity object
protected  boolean hasInNewStoryObjects(UMLObject value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean isCreateTest()
          Get the createTest attribute of the UMLActivityDiagram object
 boolean isStatechart()
          Get the statechart attribute of the UMLActivityDiagram object
 java.util.Iterator iteratorOfObjects()
          Returns an iterator containing all objects in the diagram.
protected  void removeAllFromNewStoryObjects()
          No comment provided by developer, please add a comment to improve documentation.
 void removeFlowAssociations()
          Cuts associatons to correspondent FlowActivities generated by createFlowAssociation().
 void removeYou()
          Isolates the object so the garbage collector can remove it.
 void setCreateTest(boolean value)
          Sets the createTest attribute of the UMLActivityDiagram object
 void setIsStoryBoard(boolean flag)
          Sets the isStoryBoard attribute of the UMLActivityDiagram object
 void setPriority(int v)
          Set the value of priority.
 void setRevContains(UMLComplexState elem)
          Sets the revContains attribute of the UMLActivityDiagram object
 void setStoryMethod(UMLMethod storyMethod)
          Sets the spec attribute of the UMLStartActivity object
 java.lang.String toString()
          Returns a correct name for the tree.
 
Methods inherited from class de.uni_paderborn.fujaba.uml.UMLDiagram
addToConstraints, addToElements, addToElements, addToItems, addToItems, addToViews, createUnparseModuleName, delete, getCollabStat, getElementKey, getSizeOfItems, getViewByName, hasInConstraints, hasInItems, hasInViews, iteratorOfConstraints, iteratorOfItems, iteratorOfViews, removeAllFromConstraints, removeAllFromItems, removeAllFromViews, removeFromConstraints, removeFromElementsWithSideEffects, removeFromItems, removeFromItems, removeFromItemsWithoutIncrementAge, removeFromViews, setCollabStat, setName, sizeOfConstraint, sizeOfItems, sizeOfViews
 
Methods inherited from class de.uni_paderborn.fujaba.asg.ASGDiagram
addToElements, addToUsages, getCurrentProject, getProject, getUtility, hasInElements, hasInUsages, iteratorOfElements, iteratorOfUsages, removeAllFromElements, removeAllFromUsages, removeFromElements, removeFromUsages, searchID, setCurrentProject, setProject, setUtility, sizeOfElements, sizeOfUsages
 
Methods inherited from class de.uni_paderborn.fujaba.asg.ASGElement
acknowledgeChange, addAdditionalListener, addPointToUnparseInformation, addPropertyChangeListener, addPropertyChangeListener, addToAnnotations, addToDiagrams, addToElementReferences, addToElementReferences, addToFsaObjects, addToLocations, addToLocations, addToPropertyChangeListeners, addToPropertyChangeListeners, addToUnparseInformations, addToUnparseInformations, addToUserMessages, deleteTokens, elementsOfDiagrams, entriesOfElementReferences, entriesOfFsaObjects, entriesOfUnparseInformations, fireEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCoObRAId, getFirstFromFSAObjects, getFirstOOGenToken, getFromElementReferences, getFromFElementReferences, getFromFsaObjects, getFromUnparseInformations, getFSAInterface, getLastModified, getLastOOGenToken, getPointFromUnparseInformation, getPropertyChangeSupport, getRepository, getText, getTransientElements, getUnparseModuleName, getUnparseModuleNameImpl, hasInAnnotations, hasInDiagrams, hasInElementReferences, hasInElementReferences, hasInFsaObjects, hasKeyInElementReferences, hasKeyInFsaObjects, initElementListener, initPersistency, isCoobraPersistent, isInspectableField, isInTransientMode, isPersistencyChange, isReadOnly, iteratorOfAnnotations, iteratorOfDiagrams, iteratorOfElementReferences, iteratorOfFsaObjects, iteratorOfKeyFromUnparseInformations, iteratorOfUnparseInformations, iteratorOfUserMessages, keysOfElementReferences, keysOfFsaObjects, keysOfUnparseInformations, proposeFieldValues, removeAdditionalListener, removeAllFromAnnotations, removeAllFromDiagrams, removeAllFromElementReferences, removeAllFromFsaObjects, removeAllFromUnparseInformations, removeAllFromUserMessages, removeFromAnnotations, removeFromDiagrams, removeFromElementReferences, removeFromElementReferences, removeFromFsaObjects, removeFromPropertyChangeListeners, removeFromPropertyChangeListeners, removeFromUnparseInformations, removeFromUnparseInformations, removeFromUnparseInformations, removeFromUserMessages, removeKeyFromElementReferences, removeKeyFromFsaObjects, removePropertyChangeListener, removePropertyChangeListener, saveFSAProperties, saveLocations, setCoObRAId, setCutCopyPasteParent, setFirstOOGenToken, setGenerated, setInTransientMode, setLastOOGenToken, setRepository, setUnparseModuleName, sizeOfAnnotations, sizeOfDiagrams, sizeOfElementReferences, sizeOfFsaObjects, sizeOfUserMessages, updateFSACollapsed, updateFSALocation, updateKeyInFsaObjects, writeAttributes
 
Methods inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
compareTo, getID, getUniqueID, getUniqueID, isGenerated, lessUniqueId, readAttributes, readAttributes, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, readFromStringTokenizer, resetClassInfos, resetFieldWriteMethods, setAttribValue, setAttribValue, setID, setUniqueId, writeClassToStringBuffer, writeClassToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer, writeToStringBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FDiagram
addToElements, hasInElements, iteratorOfElements, removeAllFromElements, removeFromElements, sizeOfElements
 
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FElement
addToAnnotations, addToDiagrams, addToElementReferences, addToElementReferences, addToUserMessages, deleteTokens, entriesOfElementReferences, getFirstOOGenToken, getFromFElementReferences, getLastOOGenToken, getText, hasInAnnotations, hasInDiagrams, hasInElementReferences, hasInElementReferences, hasKeyInElementReferences, isCoobraPersistent, isGenerated, iteratorOfAnnotations, iteratorOfDiagrams, iteratorOfElementReferences, iteratorOfUserMessages, keysOfElementReferences, removeAllFromAnnotations, removeAllFromDiagrams, removeAllFromElementReferences, removeAllFromUserMessages, removeFromAnnotations, removeFromDiagrams, removeFromElementReferences, removeFromElementReferences, removeFromUserMessages, removeKeyFromElementReferences, setCutCopyPasteParent, setFirstOOGenToken, setGenerated, setLastOOGenToken, sizeOfAnnotations, sizeOfDiagrams, sizeOfElementReferences, sizeOfUserMessages
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface de.uni_paderborn.fujaba.basic.UniqueIdentifier
getID
 
Methods inherited from interface de.uni_paderborn.fujaba.fsa.unparse.LogicUnparseInterface
getFSAInterface, getUnparseModuleName
 
Methods inherited from interface de.upb.tools.pcs.PropertyChangeInterface
getPropertyChangeSupport
 
Methods inherited from interface de.upb.tools.pcs.PropertyChangeClient
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface de.tu_bs.coobra.ObjectChangeAware
acknowledgeChange, getCoObRAId, getRepository, setCoObRAId, setRepository
 
Methods inherited from interface de.uni_kassel.prop.InspectionAware
isInspectableField, proposeFieldValues
 

Constructor Detail

UMLActivityDiagram

public UMLActivityDiagram(boolean coobraPersistent)
Parameters:
coobraPersistent -

UMLActivityDiagram

public UMLActivityDiagram()
Constructor for class UMLActivityDiagram


UMLActivityDiagram

public UMLActivityDiagram(java.lang.String name,
                          UMLProject project)
Constructor for class UMLActivityDiagram

Parameters:
name - No description provided
project - No description provided
Method Detail

getName

public java.lang.String getName()
Get the name attribute of the UMLDiagram object

Specified by:
getName in interface FElement
Overrides:
getName in class UMLDiagram
Returns:
The name of the associated method if any, super.getName() else

isStatechart

public boolean isStatechart()
Get the statechart attribute of the UMLActivityDiagram object

Returns:
The statechart value

getStoryMethod

public UMLMethod getStoryMethod()
Get the spec attribute of the UMLStartActivity object

Returns:
The spec value

setStoryMethod

public void setStoryMethod(UMLMethod storyMethod)
Sets the spec attribute of the UMLStartActivity object

Parameters:
storyMethod - The new storyMethod value

isCreateTest

public boolean isCreateTest()
Get the createTest attribute of the UMLActivityDiagram object

Returns:
The createTest value

setCreateTest

public void setCreateTest(boolean value)
Sets the createTest attribute of the UMLActivityDiagram object

Parameters:
value - The new createTest value

getIsStoryBoard

public boolean getIsStoryBoard()
Get the isStoryBoard attribute of the UMLActivityDiagram object

Returns:
The isStoryBoard value

setIsStoryBoard

public void setIsStoryBoard(boolean flag)
Sets the isStoryBoard attribute of the UMLActivityDiagram object

Parameters:
flag - The new isStoryBoard value

iteratorOfObjects

public java.util.Iterator iteratorOfObjects()
Returns an iterator containing all objects in the diagram. If there are no UMLActivityStory's in the diagram an empty iterator is returned.

Returns:
iterator of all objects

createFlowAssociations

public void createFlowAssociations()
Creates a correspondent FlowActivity for each activity in this diagram. Necessary for code generation of the related method. Use removeFlowAssociations() afterwards syncronization is realized by the semaphore hasFlowAssociations


removeFlowAssociations

public void removeFlowAssociations()
Cuts associatons to correspondent FlowActivities generated by createFlowAssociation(). Use this method always in a finally part to prevent deadlocks.


getStartActivity

public UMLStartActivity getStartActivity()
Returns the start activity of this diagram

Returns:
The startActivity value

belongsToState

public boolean belongsToState()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

belongsToMasterState

public boolean belongsToMasterState()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

belongsToSubState

public boolean belongsToSubState()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

belongsToSimpleState

public boolean belongsToSimpleState()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

belongsToStateWithSubStates

public boolean belongsToStateWithSubStates()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

findActivityDiagramOfMasterState

public UMLActivityDiagram findActivityDiagramOfMasterState()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

addToNewStoryObjects

protected void addToNewStoryObjects(UMLObject value)
Access method for an one to n association.

Parameters:
value - The object added.

hasInNewStoryObjects

protected boolean hasInNewStoryObjects(UMLObject value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

getFromNewStoryObjects

protected UMLObject getFromNewStoryObjects(java.lang.String key)
Get the fromNewStoryObjects attribute of the UMLActivityDiagram object

Parameters:
key - No description provided
Returns:
The fromNewStoryObjects value

removeAllFromNewStoryObjects

protected void removeAllFromNewStoryObjects()
No comment provided by developer, please add a comment to improve documentation.


getFullName

public java.lang.String getFullName()
Returns the full name like class::method

Returns:
The fullName value

toString

public java.lang.String toString()
Returns a correct name for the tree.

Returns:
No description provided

setRevContains

public void setRevContains(UMLComplexState elem)
Sets the revContains attribute of the UMLActivityDiagram object

Parameters:
elem - The new revContains value

getRevContains

public UMLComplexState getRevContains()
Get the revContains attribute of the UMLActivityDiagram object

Returns:
The revContains value

getPriority

public int getPriority()
Get the value of priority.

Returns:
Value of priority.

setPriority

public void setPriority(int v)
Set the value of priority.

Parameters:
v - Value to assign to priority.

removeYou

public void removeYou()
Isolates the object so the garbage collector can remove it.

Specified by:
removeYou in interface FElement
Overrides:
removeYou in class UMLDiagram

getParentElement

public FElement getParentElement()
Query the logical parent of this element (e.g. package of a class, diagram of an object).

Specified by:
getParentElement in interface FElement
Overrides:
getParentElement in class ASGDiagram
Returns:
the logical parent of this element;