|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.cognitive.Designer
This class models the designer who is building a complex design in some application domain and needs continuous feedback to aid in the making of good design decisions. This area needs work. Currently everything is hardcoded.
Field Summary | |
protected long |
_critiqueDuration
|
protected int |
_critiqueLock
|
protected long |
_lastCritique
|
static int |
_longestAdd
|
static int |
_longestHot
|
static boolean |
_userWorking
|
protected static org.apache.log4j.Category |
cat
|
static Designer |
TheDesigner
|
static java.util.Vector |
UNSPEC_DECISION_VECTOR
|
static java.util.Vector |
UNSPEC_GOAL_VECTOR
|
Constructor Summary | |
Designer()
|
Method Summary | |
void |
addToDoItems(ToDoList list)
Add all the items in the given list to my list. |
boolean |
canFixIt(ToDoItem item)
|
static void |
clearCritiquing()
|
boolean |
containsKnowledgeType(java.lang.String type)
|
void |
critique(Design des)
Look for potential problems or open issues in the given design. |
void |
critiqueASAP(java.lang.Object dm,
java.lang.String reason)
|
void |
defineDecision(java.lang.String decision,
int priority)
|
void |
determineActiveCritics()
Ask this designer's agency to select which critics should be active. |
static void |
disableCritiquing()
|
void |
disruptivelyWarn(ToDoItem item)
Inform the human designer that there is an urgent ToDoItem that (s)he must consider before doing any more work. |
int |
disruptiveThreshold()
Used to determine which ToDoItems are urgent. |
static void |
enableCritiquing()
|
java.lang.String |
expand(java.lang.String desc,
org.tigris.gef.util.VectorSet offs)
Customize the description string just before it is displayed. |
void |
fixIt(ToDoItem item,
java.lang.Object arg)
|
Agency |
getAgency()
Reply the Agency object that is helping this Designer. |
boolean |
getAutoCritique()
autoCritique and critiquingInterval are two prameters that control how the critiquing thread operates. |
org.tigris.gef.util.ChildGenerator |
getChildGenerator()
|
javax.swing.Icon |
getClarifier()
|
int |
getCritiquingInterval()
|
static java.lang.Object |
getCritiquingRoot()
|
DecisionModel |
getDecisionModel()
|
java.util.Vector |
getDecisions()
|
java.lang.String |
getExpertEmail()
Get some contact information on the Poster. |
GoalModel |
getGoalModel()
|
java.util.Vector |
getGoals()
|
java.util.Properties |
getPrefs()
Reply the designers personal preferneces. |
java.util.Vector |
getSupportedDecisions()
|
java.util.Vector |
getSupportedGoals()
|
ToDoList |
getToDoList()
Reply this Designer's ToDoList, a list of pending problems and issues that the designer might be interested in. |
boolean |
hasGoal(java.lang.String goal)
Record the extent to which the designer desires the given goal. |
void |
inform(ToDoItem item)
Inform the human designer using this system that the given ToDoItem should be considered. |
boolean |
isConsidering(Decision d)
|
boolean |
isConsidering(java.lang.String decision)
Reply true iff the designer is currently considering the given decison. |
void |
listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
|
void |
nondisruptivelyWarn(ToDoItem item)
Inform the human designer that there is a ToDoItem that is relevant to his design work, and allow him to consider it on his own initiative. |
void |
propertyChange(java.beans.PropertyChangeEvent pce)
|
void |
propertySet(ru.novosoft.uml.MElementEvent mee)
|
void |
recovered(ru.novosoft.uml.MElementEvent mee)
|
void |
removed(ru.novosoft.uml.MElementEvent mee)
|
void |
removeToDoItems(ToDoList list)
Remove all the items in the given list from my list. |
void |
roleAdded(ru.novosoft.uml.MElementEvent mee)
|
void |
roleRemoved(ru.novosoft.uml.MElementEvent mee)
|
void |
run()
Continuously select and execute critics against this designer's design. spawnCritiquer is used to start a Thread that runs this. |
void |
setAutoCritique(boolean b)
|
void |
setChildGenerator(org.tigris.gef.util.ChildGenerator cg)
|
void |
setCritiquingInterval(int i)
|
static void |
setCritiquingRoot(java.lang.Object d)
|
void |
setDecisionPriority(java.lang.String decision,
int priority)
Record the extent to which the designer is considering the given decision. |
void |
setExpertEmail(java.lang.String addr)
Update the Poster's contact info. |
void |
setGoalPriority(java.lang.String goal,
int priority)
|
void |
snooze()
temporarily disable this Poster. |
void |
spawnCritiquer(java.lang.Object root)
Start a separate thread to continually select and execute critics that are relevant to this designer's work. |
void |
startConsidering(Decision d)
|
void |
startConsidering(java.lang.String decision)
|
void |
startDesiring(java.lang.String goal)
|
boolean |
stillValid(ToDoItem i,
Designer d)
ToDoItem's that are posted by the designer are assumed to be valid until the designer explicitly removes them. |
void |
stopConsidering(Decision d)
|
void |
stopConsidering(java.lang.String decision)
|
void |
stopDesiring(java.lang.String goal)
|
boolean |
supports(Decision d)
|
boolean |
supports(Goal g)
|
static Designer |
theDesigner()
|
static void |
theDesigner(Designer d)
|
java.lang.String |
toString()
|
void |
unsnooze()
Unsnooze this Poster, it may resume posting without further delay. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Category cat
public static Designer TheDesigner
public static boolean _userWorking
public static int _longestAdd
public static int _longestHot
protected long _critiqueDuration
protected int _critiqueLock
protected long _lastCritique
public static java.util.Vector UNSPEC_DECISION_VECTOR
public static java.util.Vector UNSPEC_GOAL_VECTOR
Constructor Detail |
public Designer()
Method Detail |
public static void theDesigner(Designer d)
public static Designer theDesigner()
public void spawnCritiquer(java.lang.Object root)
public void run()
run
in interface java.lang.Runnable
public void critiqueASAP(java.lang.Object dm, java.lang.String reason)
public void critique(Design des)
public void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange
in interface java.beans.PropertyChangeListener
public void propertySet(ru.novosoft.uml.MElementEvent mee)
propertySet
in interface ru.novosoft.uml.MElementListener
public void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
listRoleItemSet
in interface ru.novosoft.uml.MElementListener
public void recovered(ru.novosoft.uml.MElementEvent mee)
recovered
in interface ru.novosoft.uml.MElementListener
public void removed(ru.novosoft.uml.MElementEvent mee)
removed
in interface ru.novosoft.uml.MElementListener
public void roleAdded(ru.novosoft.uml.MElementEvent mee)
roleAdded
in interface ru.novosoft.uml.MElementListener
public void roleRemoved(ru.novosoft.uml.MElementEvent mee)
roleRemoved
in interface ru.novosoft.uml.MElementListener
public void determineActiveCritics()
public boolean getAutoCritique()
public void setAutoCritique(boolean b)
public int getCritiquingInterval()
public void setCritiquingInterval(int i)
public static void disableCritiquing()
public static void enableCritiquing()
public static void clearCritiquing()
public static void setCritiquingRoot(java.lang.Object d)
public static java.lang.Object getCritiquingRoot()
public org.tigris.gef.util.ChildGenerator getChildGenerator()
public void setChildGenerator(org.tigris.gef.util.ChildGenerator cg)
public DecisionModel getDecisionModel()
public java.util.Vector getDecisions()
public GoalModel getGoalModel()
public java.util.Vector getGoals()
public boolean stillValid(ToDoItem i, Designer d)
stillValid
in interface Poster
ToDoItem
,
Critic.stillValid(org.argouml.cognitive.ToDoItem, org.argouml.cognitive.Designer)
public boolean supports(Decision d)
supports
in interface Poster
public java.util.Vector getSupportedDecisions()
getSupportedDecisions
in interface Poster
public boolean supports(Goal g)
supports
in interface Poster
public java.util.Vector getSupportedGoals()
getSupportedGoals
in interface Poster
public boolean containsKnowledgeType(java.lang.String type)
containsKnowledgeType
in interface Poster
public java.lang.String expand(java.lang.String desc, org.tigris.gef.util.VectorSet offs)
Poster
expand
in interface Poster
public javax.swing.Icon getClarifier()
getClarifier
in interface Poster
public ToDoList getToDoList()
ToDoList
public void addToDoItems(ToDoList list)
public void removeToDoItems(ToDoList list)
public java.util.Properties getPrefs()
public boolean isConsidering(java.lang.String decision)
public boolean isConsidering(Decision d)
public void setDecisionPriority(java.lang.String decision, int priority)
public void defineDecision(java.lang.String decision, int priority)
public void startConsidering(java.lang.String decision)
public void startConsidering(Decision d)
public void stopConsidering(java.lang.String decision)
public void stopConsidering(Decision d)
public boolean hasGoal(java.lang.String goal)
public void setGoalPriority(java.lang.String goal, int priority)
public void startDesiring(java.lang.String goal)
public void stopDesiring(java.lang.String goal)
public java.lang.String getExpertEmail()
Poster
getExpertEmail
in interface Poster
public void setExpertEmail(java.lang.String addr)
Poster
setExpertEmail
in interface Poster
public void snooze()
Poster
snooze
in interface Poster
public void unsnooze()
Poster
unsnooze
in interface Poster
public Agency getAgency()
public void inform(ToDoItem item)
public void disruptivelyWarn(ToDoItem item)
public void nondisruptivelyWarn(ToDoItem item)
public int disruptiveThreshold()
public java.lang.String toString()
toString
in class java.lang.Object
public void fixIt(ToDoItem item, java.lang.Object arg)
fixIt
in interface Poster
public boolean canFixIt(ToDoItem item)
canFixIt
in interface Poster
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML (c) 1996-2002 |