|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.cognitive.critics.SnoozeOrder
A Critic can be disabled for a certain amount of time by giving it the snooze command. Whereas most ControlMech's activate or deactivate Critic's based on evidence of the Designer's state of mind, this command allows the Designer to disable Critic's without stating any reason. However, after a period of time, the critic may become active again. We think this will often be convienent because Designer's have a lot of tacit knowledge about their own state of mind that is not worth making explicit.
Field Summary | |
---|---|
private long |
_initialIntervalMS
The initial sleeping time. |
private long |
_interval
The sleeping time, including the effects of repeated snoozeing. |
private java.util.Date |
_now
|
private java.util.Date |
_snoozeAgain
Ifthe designer snoozees the critics again before this time, then go to sleep for even longer. |
private java.util.Date |
_snoozeUntil
Critic should sleep until this time. |
private static Logger |
cat
logger |
Constructor Summary | |
---|---|
SnoozeOrder()
|
Method Summary | |
---|---|
private java.util.Date |
getNow()
|
boolean |
getSnoozed()
|
protected long |
nextInterval(long last)
|
void |
setSnoozed(boolean h)
|
void |
snooze()
|
void |
unsnooze()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Logger cat
private final long _initialIntervalMS
private java.util.Date _snoozeUntil
private java.util.Date _snoozeAgain
private long _interval
private java.util.Date _now
Constructor Detail |
public SnoozeOrder()
Method Detail |
private java.util.Date getNow()
public boolean getSnoozed()
public void setSnoozed(boolean h)
public void snooze()
public void unsnooze()
protected long nextInterval(long last)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |