org.argouml.cognitive
Class GoalModel

java.lang.Object
  extended byjava.util.Observable
      extended byorg.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

Field Summary
private  Vector goals
           
 
Fields inherited from class java.util.Observable
 
Constructor Summary
GoalModel()
          The constructor.
 
Method Summary
 void addGoal(Goal g)
           
 Vector getGoals()
           
 boolean hasGoal(String goalName)
          Reply true iff the Designer wants to achieve the given goal.
 void removeGoal(Goal g)
           
 void setGoalPriority(String goalName, int priority)
           
 void startDesiring(String goalName)
          The Designer wants to achieve the given goal.
 void stopDesiring(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 Vector goals
Constructor Detail

GoalModel

public GoalModel()
The constructor.

Method Detail

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 goal
priority - 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


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