|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--org.argouml.cognitive.critics.Critic
|
+--org.argouml.cognitive.critics.CompoundCritic
A CompoundCritic acts like a regular critic in that it checks the design and produces design feedback. However, a CompoundCritic is composed of several regular critics that are applied in order. The first one the produces feedback ends the application. This is useful when criticism can be ordered from specific to general: general feedback should not be produced if specific feedback is available. For example, one critic might check for the legality of the name of a design element, and another might check for the presence of any name. If a given design element has no name, both critics could produce feedback, but it would be more useful if only the first one did.
| Field Summary | |
|---|---|
protected java.util.Vector |
_critics
The sub-critics that make up this CompoundCritic. |
| Fields inherited from class org.argouml.cognitive.critics.Critic |
|---|
_clarifier, _knowledgeTypes, _numCriticsFired, _supportedDecisions, _supportedGoals, _triggerMask, cat, DEFAULT_CLARIFIER, ENABLED, KT_COMPLETENESS, KT_CONSISTENCY, KT_CORRECTNESS, KT_DESIGNERS, KT_EXPERIENCIAL, KT_OPTIMIZATION, KT_ORGANIZATIONAL, KT_PRESENTATION, KT_SEMANTICS, KT_SYNTAX, KT_TOOL, NO_PROBLEM, PROBLEM_FOUND, RESOURCE_BUNDLE, SNOOZE_ORDER |
| Constructor Summary | |
|---|---|
CompoundCritic()
|
|
CompoundCritic(Critic c1,
Critic c2)
|
|
CompoundCritic(Critic c1,
Critic c2,
Critic c3)
|
|
CompoundCritic(Critic c1,
Critic c2,
Critic c3,
Critic c4)
|
|
| Method Summary | |
|---|---|
void |
addCritic(Critic c)
|
void |
addKnowledgeType(java.lang.String type)
|
void |
addSupportedDecision(Decision d)
|
void |
addSupportedGoal(Goal g)
|
boolean |
containsKnowledgeType(java.lang.String type)
|
void |
critique(java.lang.Object dm,
Designer dsgr)
Examine the given Object and Designer and, if appropriate, produce one or more ToDoItem's and add them to the offending design material's and the Designer's ToDoList. |
java.lang.String |
expand(java.lang.String desc,
VectorSet offs)
Customize the description string just before it is displayed. |
javax.swing.Icon |
getClarifier()
|
java.util.Vector |
getCritics()
|
java.util.Vector |
getSupportedDecisions()
|
java.util.Vector |
getSupportedGoals()
|
boolean |
isActive()
Reply true iff this Critic can execute. |
boolean |
isEnabled()
This is a convient method for accessing one well-known control record. |
void |
removeCritic(Critic c)
|
void |
setCritics(java.util.Vector critics)
|
boolean |
supports(Decision d)
|
boolean |
supports(Goal g)
|
ToDoItem |
toDoItem(java.lang.Object dm,
Designer dsgr)
Reply the ToDoItem that the designer should see iff predicate() returns true. |
| Methods inherited from class org.argouml.cognitive.critics.Critic |
|---|
addControlRec, addTrigger, beActive, beInactive, canFixIt, defaultMoreInfoURL, fixIt, getArg, getArgs, getControlRec, getCriticCategory, getCriticKey, getCriticName, getCriticType, getDecisionCategory, getDescription, getDescriptionTemplate, getExpertEmail, getHeadline, getHeadline, getMoreInfoURL, getMoreInfoURL, getPriority, getPriority, getTriggerMask, getWizardClass, initWizard, isRelevantToDecisions, isRelevantToGoals, makeWizard, matchReason, postItem, predicate, reasonCodeFor, setArg, setArgs, setDecisionCategory, setDescription, setEnabled, setExpertEmail, setHeadline, setKnowledgeTypes, setKnowledgeTypes, setKnowledgeTypes, setMoreInfoURL, setPriority, snooze, snoozeOrder, stillValid, toString, unsnooze |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Vector _critics
| Constructor Detail |
public CompoundCritic()
public CompoundCritic(Critic c1,
Critic c2)
public CompoundCritic(Critic c1,
Critic c2,
Critic c3)
public CompoundCritic(Critic c1,
Critic c2,
Critic c3,
Critic c4)
| Method Detail |
public void setCritics(java.util.Vector critics)
public java.util.Vector getCritics()
public void addCritic(Critic c)
public void removeCritic(Critic c)
public void critique(java.lang.Object dm,
Designer dsgr)
Critic
critique in class Critic# @see Critic#toDoItempublic boolean supports(Decision d)
supports in interface Postersupports in class Criticpublic java.util.Vector getSupportedDecisions()
getSupportedDecisions in interface PostergetSupportedDecisions in class Criticpublic void addSupportedDecision(Decision d)
addSupportedDecision in class Criticpublic boolean supports(Goal g)
supports in interface Postersupports in class Criticpublic java.util.Vector getSupportedGoals()
getSupportedGoals in interface PostergetSupportedGoals in class Criticpublic void addSupportedGoal(Goal g)
addSupportedGoal in class Criticpublic boolean containsKnowledgeType(java.lang.String type)
containsKnowledgeType in interface PostercontainsKnowledgeType in class Criticpublic void addKnowledgeType(java.lang.String type)
addKnowledgeType in class Critic
public java.lang.String expand(java.lang.String desc,
VectorSet offs)
Poster
expand in interface Posterexpand in class Criticpublic javax.swing.Icon getClarifier()
getClarifier in interface PostergetClarifier in class Criticpublic boolean isActive()
Critic
isActive in class Criticpublic boolean isEnabled()
Critic
isEnabled in class Critic
public ToDoItem toDoItem(java.lang.Object dm,
Designer dsgr)
Critic
toDoItem in class CriticCritic.critique(java.lang.Object, org.argouml.cognitive.Designer)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
| ArgoUML © 1996-2003 (20040229) | ArgoUML Project Home | ArgoUML Cookbook |