org.argouml.cognitive
Class Design

java.lang.Object
  |
  +--java.util.Observable
        |
        +--org.argouml.cognitive.DesignMaterial
              |
              +--org.argouml.cognitive.Design
All Implemented Interfaces:
java.io.Serializable

public class Design
extends DesignMaterial

A composite DesignMaterial that contains other DesignMaterial's.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.argouml.cognitive.DesignMaterial
_highlight, _parents, _pendingItems, _persistObservers, _propertyListeners, _props
 
Constructor Summary
Design()
          Construct a new Design.
 
Method Summary
 void addElement(DesignMaterial dm)
          Add the given DesignMaterial to this Design, if it is not already.
 void critique(Designer d)
          Critique a Design by critiquing each contained DesignMaterial.
 java.util.Enumeration elements()
          Enumerate all contained DesignMaterial's.
 java.util.Vector getSubdesigns()
          Reply a vector of contained DesignMaterial's.
 java.util.Iterator iterator()
          Enumerate all contained DesignMaterial's.
 void removeElement(DesignMaterial dm)
          Remove the given DesignMaterial from this Design.
 void setSubdesigns(java.util.Vector subs)
          Set the vector of contained DesignMaterial's.
 java.lang.String toString()
          Reply a string that describes this Design.
 boolean transativelyIncludes(DesignMaterial dm)
          Reply true if the given DesignMaterial is part of this design.
 
Methods inherited from class org.argouml.cognitive.DesignMaterial
addPersistantObserver, addPropertyChangeListener, canPut, changedProperty, define, define, define, dispose, firePropertyChange, firePropertyChange, firePropertyChange, get, get, getBoolean, getBoolProperty, getBoolProperty, getHighlight, getIntProperty, getIntProperty, getProperty, getProperty, inform, keysIn, notifyObservers, notifyPersistantObservers, parents, put, put, put, put, removePendingItems, removePersistObserver, removeProperty, removePropertyChangeListener, setHighlight, setProperty, setProperty, setProperty
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Design

public Design()
Construct a new Design. This method is currently empty. The _subdesigns instance variable is set through an initializer.

Method Detail

getSubdesigns

public java.util.Vector getSubdesigns()
Reply a vector of contained DesignMaterial's.


setSubdesigns

public void setSubdesigns(java.util.Vector subs)
Set the vector of contained DesignMaterial's.


elements

public java.util.Enumeration elements()
Enumerate all contained DesignMaterial's.


iterator

public java.util.Iterator iterator()
Enumerate all contained DesignMaterial's.


transativelyIncludes

public boolean transativelyIncludes(DesignMaterial dm)
Reply true if the given DesignMaterial is part of this design.


addElement

public void addElement(DesignMaterial dm)
Add the given DesignMaterial to this Design, if it is not already.


removeElement

public void removeElement(DesignMaterial dm)
Remove the given DesignMaterial from this Design.


critique

public void critique(Designer d)
Critique a Design by critiquing each contained DesignMaterial.

TODO: in the future Argo will use less tree walking and more trigger-driven critiquing. I.e., critiquing will be done in response to specific manipulations in the editor.

Overrides:
critique in class DesignMaterial

toString

public java.lang.String toString()
Reply a string that describes this Design. Inteneded for debugging.

Overrides:
toString in class java.lang.Object


ArgoUML © 1996-2003 (20040216)ArgoUML Project HomeArgoUML Cookbook