|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.cognitive.ToDoItem
This class defines the feedback items that can be placed on the Designer's ToDoList. The main point of a ToDoItem is to inform the Designer of some problem or open design issue. Additional information in the ToDoItem helps put the designer in a mental context suitable for resolving the issue: ToDoItem's are well tied into the design and design process so that the Designer can see which design material's are the subject of this ToDoItem, and which Critic raised it. The expert email address helps connect the designer with the organizational context. The more info URL helps provide background knowledge of the domain. In the future ToDoItems will include ties back to the design rationale log. Also the run-time system needs to know who posted each ToDoItem so that it can automatically remove it if it is no longer valid.
Field Summary | |
private String |
cachedExpandedDescription
|
private String |
cachedExpandedHeadline
|
static int |
HIGH_PRIORITY
The highest priority todoitem of 3 levels. |
static int |
LOW_PRIORITY
The lowest priority todoitem of 3 levels. |
static int |
MED_PRIORITY
The medium priority todoitem of 3 levels. |
private Icon |
theClarifier
|
private String |
theDescription
One paragraph description of the issue. |
private String |
theHeadline
One line description of issue. |
private String |
theMoreInfoURL
URL for background (textbook?) knowledge about the domain. |
private org.tigris.gef.util.VectorSet |
theOffenders
Which part of the design this issue affects. |
private Poster |
thePoster
Who posted this item (e.g., a Critic, or the designer)? |
private int |
thePriority
How important is this issue? Enough to interrupt the designer? |
private Wizard |
theWizard
|
Constructor Summary | |
ToDoItem(Critic c)
The constructor. |
|
ToDoItem(Critic c,
Object dm,
Designer dsgr)
The constructor. |
|
ToDoItem(Critic c,
org.tigris.gef.util.VectorSet offs,
Designer dsgr)
The constructor. |
|
ToDoItem(Poster poster,
String h,
int p,
String d,
String m)
The constructor. |
|
ToDoItem(Poster poster,
String h,
int p,
String d,
String m,
org.tigris.gef.util.VectorSet offs)
The constructor. |
Method Summary | |
void |
action()
The user has double-clicked or otherwise indicated that they want to do something active with this item. |
boolean |
canFixIt()
Some problems can be automatically fixed, ask the Critic to do it if it can. |
void |
changed()
Notify the user interface that this ToDoItem has changed. |
boolean |
containsKnowledgeType(String type)
|
void |
deselect()
When a ToDoItem is deselected in the UiToDoList window, unhighlight the "offending" design material's. |
boolean |
equals(Object o)
Is this item a copy? |
void |
fixIt()
Some problems can be automatically fixed, ask the Critic to do it if it can. |
Icon |
getClarifier()
Return a clarifier object that can graphical highlight this error in a design diagram. |
String |
getDescription()
|
String |
getExpertEmail()
Find the email address of the poster. |
String |
getHeadline()
|
String |
getMoreInfoURL()
|
org.tigris.gef.util.VectorSet |
getOffenders()
Reply a Set of design material's that are the subject of this ToDoItem. |
Poster |
getPoster()
Reply the Critic or Designer that posted this ToDoItem. |
int |
getPriority()
|
int |
getProgress()
|
Wizard |
getWizard()
|
int |
hashCode()
|
void |
select()
When a ToDoItem is selected in the UiToDoList window, highlight the "offending" design material's. |
void |
setDescription(String d)
|
void |
setHeadline(String h)
|
void |
setMoreInfoURL(String m)
|
void |
setOffenders(org.tigris.gef.util.VectorSet offenders)
Set the designmatial that is subject of this ToDoItem. |
void |
setPriority(int p)
|
boolean |
stillValid(Designer d)
Reply true iff this ToDoItem should be kept on the Designer's ToDoList. |
boolean |
supports(Decision d)
|
boolean |
supports(Goal g)
|
String |
toString()
Reply a string for debugging. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int HIGH_PRIORITY
public static final int MED_PRIORITY
public static final int LOW_PRIORITY
private Poster thePoster
private String theHeadline
private int thePriority
private String theDescription
private String theMoreInfoURL
private org.tigris.gef.util.VectorSet theOffenders
private Icon theClarifier
private Wizard theWizard
private String cachedExpandedHeadline
private String cachedExpandedDescription
Constructor Detail |
public ToDoItem(Poster poster, String h, int p, String d, String m, org.tigris.gef.util.VectorSet offs)
poster
- the posterh
- the headlinep
- the priorityd
- the descriptionm
- the more info urloffs
- the offenderspublic ToDoItem(Poster poster, String h, int p, String d, String m)
poster
- the posterh
- the headlinep
- the priorityd
- the descriptionm
- the more info urlpublic ToDoItem(Critic c, Object dm, Designer dsgr)
c
- the poster (critic)dm
- the offendersdsgr
- the designerpublic ToDoItem(Critic c, org.tigris.gef.util.VectorSet offs, Designer dsgr)
c
- the poster (critic)offs
- the offendersdsgr
- the designerpublic ToDoItem(Critic c)
c
- the poster (critic)Method Detail |
public String getHeadline()
public void setHeadline(String h)
h
- the headlinepublic String getDescription()
public void setDescription(String d)
d
- the descriptionpublic String getMoreInfoURL()
public void setMoreInfoURL(String m)
m
- the more-info-urlpublic int getPriority()
public void setPriority(int p)
p
- the prioritypublic int getProgress()
public org.tigris.gef.util.VectorSet getOffenders()
public void setOffenders(org.tigris.gef.util.VectorSet offenders)
offenders
- the offenderspublic Poster getPoster()
public String getExpertEmail()
public Icon getClarifier()
public Wizard getWizard()
public boolean containsKnowledgeType(String type)
type
- the knowledgetype
public boolean supports(Decision d)
d
- the decision
public boolean supports(Goal g)
g
- the given goal
public int hashCode()
Object.hashCode()
public boolean equals(Object o)
Object.equals(java.lang.Object)
public void select()
public void deselect()
public void action()
public void changed()
changed
in interface WizardItem
public void fixIt()
public boolean canFixIt()
public boolean stillValid(Designer d)
d
- the given designer
public String toString()
Object.toString()
|
|||||||||||
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 |