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 $
Author:
$Author: cschneid $

Nested Class Summary
 
Nested classes inherited from class de.uni_paderborn.fujaba.asg.ASGElement
ASGElement.SortByNameComparator
 
Field Summary
private  boolean hasFlowAssociations
          No comment provided by developer, please add a comment to improve documentation.
private  boolean isStoryBoard
          No comment provided by developer, please add a comment to improve documentation.
private  UMLCommentary javaVarDecls
          not really transient, it is saved locally, dirty hack!
private  de.upb.tools.fca.FHashMap newStoryObjects
          No comment provided by developer, please add a comment to improve documentation.
private  int priority
          No comment provided by developer, please add a comment to improve documentation.
private  UMLComplexState revContains
           0..1 Contains n UMLComplexState --------------------------- UMLActivityDiagram revContains contains
private  UMLMethod storyMethod
          reverse UMLActivityStart revSpec
private  de.upb.tools.fca.FLinkedList transitions
          No comment provided by developer, please add a comment to improve documentation.
 
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.asg.ASGElement
 
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
 UMLCommentary getJavaVarDecls()
          Get the javaVarDecls 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 isStatechart()
          Get the statechart attribute of the UMLActivityDiagram object
 java.util.Iterator iteratorOfObjects()
          Returns an iterator containing all objects in the diagram.
 void readAttributes(java.util.Hashtable objects, de.upb.tools.fca.FDuplicatedTreeMap attributes)
          No comment provided by developer, please add a comment to improve documentation.
protected  void removeAllFromNewStoryObjects()
          No comment provided by developer, please add a comment to improve documentation.
private  void removeAllFromTransitions()
          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 setIsStoryBoard(boolean flag)
          Sets the isStoryBoard attribute of the UMLActivityDiagram object
 void setJavaVarDecls(UMLCommentary newJavaVarDecls)
          Sets the javaVarDecls 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.
 void writeAttributes(java.lang.StringBuffer data, de.upb.tools.fca.FTreeSet setOfNeighbours)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.uml.UMLDiagram
addToConstraints, addToElements, addToElements, addToItems, addToItems, addToUsages, addToViews, createUnparseModuleName, delete, getCollabStat, getElementKey, getSizeOfItems, getViewByName, hasInConstraints, hasInItems, hasInUsages, hasInViews, isCyclic, iteratorOfConstraints, iteratorOfItems, iteratorOfUsages, iteratorOfViews, removeAllFromConstraints, removeAllFromItems, removeAllFromUsages, removeAllFromViews, removeFromConstraints, removeFromElementsWithSideEffects, removeFromItems, removeFromItems, removeFromItemsWithoutIncrementAge, removeFromUsages, removeFromViews, setCollabStat, setName, sizeOfConstraint, sizeOfItems, sizeOfUsages, sizeOfViews
 
Methods inherited from class de.uni_paderborn.fujaba.asg.ASGDiagram
addToElements, getCurrentProject, getProject, getUtility, hasInElements, iteratorOfElements, removeAllFromElements, removeFromElements, searchID, setCurrentProject, setProject, setUtility, sizeOfElements
 
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, initPersistency, isCoobraPersistent, isInspectableField, isInTransientMode, 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
 
Methods inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement
compareTo, getID, getUniqueID, getUniqueID, isGenerated, lessUniqueId, 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
 

Field Detail

storyMethod

private UMLMethod storyMethod
reverse UMLActivityStart revSpec


isStoryBoard

private boolean isStoryBoard
No comment provided by developer, please add a comment to improve documentation.


javaVarDecls

private transient UMLCommentary javaVarDecls
not really transient, it is saved locally, dirty hack!


hasFlowAssociations

private transient boolean hasFlowAssociations
No comment provided by developer, please add a comment to improve documentation.


transitions

private transient de.upb.tools.fca.FLinkedList transitions
No comment provided by developer, please add a comment to improve documentation.


newStoryObjects

private transient de.upb.tools.fca.FHashMap newStoryObjects
No comment provided by developer, please add a comment to improve documentation.


revContains

private transient UMLComplexState revContains
                  0..1      Contains      n
 UMLComplexState --------------------------- UMLActivityDiagram
                  revContains      contains
 


priority

private int priority
No comment provided by developer, please add a comment to improve documentation.

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

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

getJavaVarDecls

public UMLCommentary getJavaVarDecls()
Get the javaVarDecls attribute of the UMLActivityDiagram object

Returns:
The javaVarDecls value

setJavaVarDecls

public void setJavaVarDecls(UMLCommentary newJavaVarDecls)
Sets the javaVarDecls attribute of the UMLActivityDiagram object

Parameters:
newJavaVarDecls - The new javaVarDecls value

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

removeAllFromTransitions

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


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

writeAttributes

public void writeAttributes(java.lang.StringBuffer data,
                            de.upb.tools.fca.FTreeSet setOfNeighbours)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
writeAttributes in class ASGElement
Parameters:
data - No description provided
setOfNeighbours - No description provided

readAttributes

public void readAttributes(java.util.Hashtable objects,
                           de.upb.tools.fca.FDuplicatedTreeMap attributes)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
readAttributes in class BasicIncrement
Parameters:
objects - No description provided
attributes - No description provided
See Also:
BasicIncrement.readAttributes(Hashtable, FDuplicatedTreeMap, boolean)

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;