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
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 |
GoalModel
public GoalModel()
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.