|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.cognitive.checklist.CheckItem
This class defines an item that can be placed on a Checklist. This is a short piece of text to prompt the designer to think of a specific design issue. CheckItems are similiar to critics in that they are categorized to be relevant to issues the designer is interested in, they have a guarding condition that returns true if the CheckItem should be presented, and they have a piece of text as design feedback. They are different in that their predicate is almost always the constant 'true', and the feedback they provide is much simpler. CheckItems are part of Checklists. And Checklists are registered with the CheckManager. If you have a piece of advice you would like to give a designer, you can implement it as a CheckItem _very_ easily. If you can formalize the advice more, you can implement it as a Critic.
Checklist
,
CheckManager
,
Serialized FormField Summary | |
private String |
category
|
private String |
description
One sentence description of the issue. |
private String |
moreInfoURL
URL for background (textbook?) knowledge about the domain. |
private org.tigris.gef.util.Predicate |
pred
The predicate is the condition under which the checkitem should be listed. |
Constructor Summary | |
CheckItem(String c,
String d)
The constructor. |
|
CheckItem(String c,
String d,
String m,
org.tigris.gef.util.Predicate p)
The constructor. |
Method Summary | |
boolean |
equals(Object o)
|
String |
expand(String desc,
Object dm)
Customize/expand the description string just before it is displayed. |
String |
getCategory()
|
String |
getDescription()
|
String |
getDescription(Object dm)
|
String |
getMoreInfoURL()
|
org.tigris.gef.util.Predicate |
getPredicate()
|
int |
hashCode()
|
void |
setCategory(String c)
|
void |
setDescription(String d)
|
void |
setMoreInfoURL(String m)
|
void |
setPredicate(org.tigris.gef.util.Predicate p)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private String category
private String description
private String moreInfoURL
private org.tigris.gef.util.Predicate pred
Constructor Detail |
public CheckItem(String c, String d)
c
- the categoryd
- the descriptionpublic CheckItem(String c, String d, String m, org.tigris.gef.util.Predicate p)
c
- the categoryd
- the descriptionm
- the more-info-urlp
- the predicateMethod Detail |
public String getCategory()
public void setCategory(String c)
c
- the categorypublic String getDescription()
public String getDescription(Object dm)
dm
- the design material
public void setDescription(String d)
d
- the descriptionpublic String getMoreInfoURL()
public void setMoreInfoURL(String m)
m
- the more-info-urlpublic org.tigris.gef.util.Predicate getPredicate()
public void setPredicate(org.tigris.gef.util.Predicate p)
p
- the predicatepublic int hashCode()
Object.hashCode()
public boolean equals(Object o)
Object.equals(java.lang.Object)
public String toString()
Object.toString()
public String expand(String desc, Object dm)
desc
- the descriptiondm
- the design material
|
|||||||||||
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 |