|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.argouml.cognitive.ToDoList
Implements a list of ToDoItem's.
It spawns a "sweeper" thread that periodically goes through the list and elimiates ToDoItem's that are no longer valid.
One difficulty designers face is keeping track of all the myrid details of thier task. It is all to easy to skip a step in the design process, leave part of the design unspecified, of make a mistake that requires revision. Argo provides the designer with a "to do" list user interface that presents action items in an organized form. These items can be suggestions from critics, reminders to finish steps in the process model, or personal notes entered by the designer. The choice control at the top of the "to do" list pane allow the designer to organize items in different ways: by priority, by decision supported, by offending design element, etc.
The to do lists right now are a bit unstable. Please test and let us know what you find through Issuezilla.
Items are shown under all applicable headings. The "to do" list may also be viewed as a flat list.
This class is dependent on Designer.
Designer.nondisruptivelyWarn(org.argouml.cognitive.ToDoItem)
,
Serialized FormField Summary | |
private org.tigris.gef.util.VectorSet |
_allOffenders
These are computed when needed. |
private org.tigris.gef.util.VectorSet |
_allPosters
These are computed when needed. |
protected Designer |
_designer
The designer, used in determining if a ToDoItem is still valid. |
protected java.util.Vector |
_items
Pending ToDoItems for the designer to consider. |
protected javax.swing.event.EventListenerList |
_listenerList
needs documenting |
static int |
_longestToDoList
needs documenting |
static int |
_numNotValid
needs documenting |
protected static java.lang.Object |
_RecentOffender
needs documenting |
protected static java.util.Vector |
_RecentOffenderItems
needs documenting |
protected java.util.Vector |
_resolvedItems
ToDoItems that the designer has explicitly indicated that (s)he considers resolved. |
protected java.lang.Thread |
_validityChecker
A Thread that keeps checking if the items on the list are still valid. |
protected static org.apache.log4j.Logger |
cat
|
private boolean |
isPaused
state variable for whether the validity checking thread is paused (waiting). |
private static ToDoList |
theInstance
The ToDoList instance that is also the validity checking thread. |
Fields inherited from class java.util.Observable |
|
Constructor Summary | |
ToDoList()
creates a new todolist. |
Method Summary | |
void |
addAll(ToDoList list)
needs documenting |
private void |
addE(ToDoItem item)
needs documenting, why synchronised? |
void |
addElement(ToDoItem item)
needs documenting |
private void |
addOffenders(org.tigris.gef.util.VectorSet newoffs)
needs documenting |
private void |
addPosters(Poster newp)
needs documenting |
void |
addToDoListListener(ToDoListListener l)
needs documenting |
ToDoItem |
elementAt(int index)
needs documenting |
java.util.Enumeration |
elements()
needs documenting |
java.util.Vector |
elementsForOffender(java.lang.Object off)
needs documenting |
boolean |
explicitlyResolve(ToDoItem item,
java.lang.String reason)
needs documenting |
protected void |
fireToDoItemAdded(ToDoItem item)
needs documenting |
protected void |
fireToDoItemChanged(ToDoItem item)
needs documenting |
protected void |
fireToDoItemRemoved(ToDoItem item)
needs documenting |
protected void |
fireToDoItemsAdded(java.util.Vector items)
needs documenting |
protected void |
fireToDoItemsRemoved(java.util.Vector items)
needs documenting |
protected void |
fireToDoListChanged()
Notify all listeners that have registered interest for notification on this event type. |
void |
forceValidityCheck()
needs documenting |
protected void |
forceValidityCheck(java.util.Vector removes)
Check each ToDoItem on the list to see if it is still valid. |
java.util.Vector |
getDecisions()
needs documenting |
java.util.Vector |
getGoals()
needs documenting |
static ToDoList |
getInstance()
returns the validity checking thread instance. |
org.tigris.gef.util.VectorSet |
getOffenders()
|
org.tigris.gef.util.VectorSet |
getPosters()
|
java.util.Vector |
getResolvedItems()
needs documenting |
java.util.Vector |
getToDoItems()
needs documenting |
boolean |
isPaused()
|
void |
notifyObservers()
needs documenting |
void |
notifyObservers(java.lang.Object o)
needs documenting |
void |
notifyObservers(java.lang.String action,
java.lang.Object arg)
needs documenting |
void |
pause()
|
protected void |
recomputeAllOffenders()
needs documenting |
protected void |
recomputeAllPosters()
needs documenting |
void |
removeAll(ToDoList list)
needs documenting |
void |
removeAllElements()
needs documenting |
private boolean |
removeE(ToDoItem item)
needs documenting |
boolean |
removeElement(ToDoItem item)
needs documenting |
void |
removeToDoListListener(ToDoListListener l)
needs documenting |
boolean |
resolve(ToDoItem item)
needs documenting |
void |
resume()
|
void |
run()
Periodically check to see if items on the list are still valid. |
void |
setPaused(boolean paused)
sets the pause state. |
int |
size()
needs documenting |
private void |
sort()
TODO: not done yet(empty implementation), Sort the items by priority. |
void |
spawnValidityChecker(Designer d)
Start a Thread to delete old items from the ToDoList. |
java.lang.String |
toString()
needs documenting |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger cat
protected static java.lang.Object _RecentOffender
protected static java.util.Vector _RecentOffenderItems
protected java.util.Vector _items
private org.tigris.gef.util.VectorSet _allOffenders
private org.tigris.gef.util.VectorSet _allPosters
protected java.util.Vector _resolvedItems
TODO: generalize into a design rationale logging facility.
protected java.lang.Thread _validityChecker
protected Designer _designer
protected javax.swing.event.EventListenerList _listenerList
public static int _longestToDoList
public static int _numNotValid
private static ToDoList theInstance
private boolean isPaused
Constructor Detail |
public ToDoList()
Method Detail |
public static ToDoList getInstance()
public void spawnValidityChecker(Designer d)
public void run()
run
in interface java.lang.Runnable
public void forceValidityCheck()
protected void forceValidityCheck(java.util.Vector removes)
Warning: Fragile code! No method that this method calls can synchronized the Designer, otherwise there will be deadlock.
public void pause()
public void resume()
public boolean isPaused()
public void setPaused(boolean paused)
public void notifyObservers(java.lang.String action, java.lang.Object arg)
public void notifyObservers(java.lang.Object o)
public void notifyObservers()
public java.util.Vector getToDoItems()
public java.util.Vector getResolvedItems()
public org.tigris.gef.util.VectorSet getOffenders()
private void addOffenders(org.tigris.gef.util.VectorSet newoffs)
public org.tigris.gef.util.VectorSet getPosters()
private void addPosters(Poster newp)
public java.util.Vector getDecisions()
public java.util.Vector getGoals()
private void addE(ToDoItem item)
public void addElement(ToDoItem item)
public void addAll(ToDoList list)
public void removeAll(ToDoList list)
private boolean removeE(ToDoItem item)
public boolean removeElement(ToDoItem item)
public boolean resolve(ToDoItem item)
public boolean explicitlyResolve(ToDoItem item, java.lang.String reason) throws UnresolvableException
UnresolvableException
public void removeAllElements()
public java.util.Vector elementsForOffender(java.lang.Object off)
public int size()
public java.util.Enumeration elements()
public ToDoItem elementAt(int index)
protected void recomputeAllOffenders()
protected void recomputeAllPosters()
public void addToDoListListener(ToDoListListener l)
public void removeToDoListListener(ToDoListListener l)
protected void fireToDoListChanged()
EventListenerList
protected void fireToDoItemChanged(ToDoItem item)
protected void fireToDoItemAdded(ToDoItem item)
protected void fireToDoItemsAdded(java.util.Vector items)
protected void fireToDoItemRemoved(ToDoItem item)
protected void fireToDoItemsRemoved(java.util.Vector items)
private void sort()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |