|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.argouml.cognitive.DecisionModel
The DecisionModel is part of the state of the Designer. It describes what types of decisions, or design issues, the Designer is thinking about at the current time. Critics that are relevant to those decisions are made active, Critics that are not relevant are made inactive. TODO: There is some notion that each decision has a certain importanance at a certain time, but I have not followed through on that because I don't have good examples of how to quantify the importance of a decision. TODO: Right now the individual decisions are just Strings, maybe they should have some non-atomic structure?
Field Summary | |
private Vector |
decisions
|
Fields inherited from class java.util.Observable |
|
Constructor Summary | |
DecisionModel()
The constructor. |
Method Summary | |
void |
defineDecision(String decision,
int priority)
If the given decision is already defined, do nothing. |
protected Decision |
findDecision(String decName)
Finds a decision with a specific name. |
Vector |
getDecisions()
|
boolean |
isConsidering(String decision)
Reply true iff the Designer is considering the given decision. |
void |
setDecisionPriority(String decision,
int priority)
This function sets the priority of an existing decision, or if the decision does not exist yet, it creates a new one. |
void |
startConsidering(Decision d)
The Designer has indicated that he is now interested in the given decision. |
void |
startConsidering(String decision)
The Designer has indicated that he is now interested in the given decision. |
void |
stopConsidering(Decision d)
The Designer has indicated that he is not interested in the given decision right now. |
void |
stopConsidering(String decision)
The Designer has indicated that he is not interested in the given decision right now. |
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 |
private Vector decisions
Constructor Detail |
public DecisionModel()
Method Detail |
public Vector getDecisions()
public boolean isConsidering(String decision)
decision
- the given decision
public void setDecisionPriority(String decision, int priority)
decision
- the given decisionpriority
- the new prioritypublic void defineDecision(String decision, int priority)
decision
- the existing decisionpriority
- the prioritypublic void startConsidering(String decision)
decision
- the interesting decisionpublic void startConsidering(Decision d)
d
- the interesting decisionpublic void stopConsidering(String decision)
decision
- the uninteresting decisionpublic void stopConsidering(Decision d)
d
- the uninteresting decisionprotected Decision findDecision(String decName)
decName
- the decision name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |