org.argouml.cognitive
Class GoalModel
java.lang.Object
java.util.Observable
org.argouml.cognitive.GoalModel
- All Implemented Interfaces:
- Serializable
- public class GoalModel
- extends Observable
- implements 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
Constructor Summary |
GoalModel()
The constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
goals
private Vector goals
GoalModel
public GoalModel()
- The constructor.
getGoals
public Vector getGoals()
- Returns:
- the list of goals
addGoal
public void addGoal(Goal g)
- Parameters:
g
- the goal to be added
removeGoal
public void removeGoal(Goal g)
- Parameters:
g
- the goal to be removed
hasGoal
public boolean hasGoal(String goalName)
- Reply true iff the Designer wants to achieve the given goal.
- Parameters:
goalName
- the given goal
- Returns:
- true if the designer wants this
setGoalPriority
public void setGoalPriority(String goalName,
int priority)
- Parameters:
goalName
- the given goalpriority
- the new priority for the goal
startDesiring
public void startDesiring(String goalName)
- The Designer wants to achieve the given goal.
- Parameters:
goalName
- the wanted goal
stopDesiring
public void stopDesiring(String goalName)
- The Designer does not care about the given goal.
- Parameters:
goalName
- the unwanted goal