org.argouml.cognitive
Class GoalModel

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

public class GoalModel
extends java.util.Observable
implements java.io.Serializable

Models the designers goals in making this design. Provides useful control information to the Agency so that only critics relevant to the designers goals are ever executed. TODO: Really this should be part of a domain extension and not the kernel. I have not developed this part of Argo very much.

See Also:
Serialized Form

Field Summary
private  java.util.Vector _goals
           
 
Fields inherited from class java.util.Observable
 
Constructor Summary
GoalModel()
           
 
Method Summary
 void addGoal(Goal g)
           
 java.util.Vector getGoals()
           
 boolean hasGoal(java.lang.String goalName)
          Reply true iff the Designer wants to achieve the given goal.
 void removeGoal(Goal g)
           
 void setGoalPriority(java.lang.String goalName, int priority)
           
 void startDesiring(java.lang.String goalName)
          The Designer wants to achieve the given goal.
 void stopDesiring(java.lang.String goalName)
          The Designer does not care about the given goal.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_goals

private java.util.Vector _goals
Constructor Detail

GoalModel

public GoalModel()
Method Detail

getGoals

public java.util.Vector getGoals()

addGoal

public void addGoal(Goal g)

removeGoal

public void removeGoal(Goal g)

hasGoal

public boolean hasGoal(java.lang.String goalName)
Reply true iff the Designer wants to achieve the given goal.


setGoalPriority

public void setGoalPriority(java.lang.String goalName,
                            int priority)

startDesiring

public void startDesiring(java.lang.String goalName)
The Designer wants to achieve the given goal.


stopDesiring

public void stopDesiring(java.lang.String goalName)
The Designer does not care about the given goal.



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