|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.argouml.cognitive.Critic
org.argouml.cognitive.CompoundCritic
public class 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 that 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 |
|---|
| Fields inherited from class org.argouml.cognitive.Critic |
|---|
DEFAULT_CLARIFIER, 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 |
| Constructor Summary | |
|---|---|
CompoundCritic()
The constructor of a compound critic. |
|
CompoundCritic(Critic c1,
Critic c2)
The constructor. |
|
CompoundCritic(Critic c1,
Critic c2,
Critic c3)
The constructor. |
|
CompoundCritic(Critic c1,
Critic c2,
Critic c3,
Critic c4)
The constructor. |
|
| Method Summary | |
|---|---|
void |
addCritic(Critic c)
|
void |
addExtraCriticizedDesignMaterial(java.lang.Object dm)
Extra criticized design material to be added to the list returned by getCriticizedDesignMaterials() |
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,
ListSet offs)
Customize the description string just before it is displayed. |
javax.swing.Icon |
getClarifier()
|
java.util.Set<java.lang.Object> |
getCriticizedDesignMaterials()
Get the design materials to be criticized by this critic |
java.util.List<Critic> |
getCriticList()
|
java.util.Vector<Critic> |
getCritics()
Deprecated. for 0.25.4 by tfmorris. Use getCriticList(). Unused
in ArgoUML. Can be scheduled for speedy removal. |
java.util.List<Decision> |
getSupportedDecisions()
|
java.util.List<Goal> |
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.List<Critic> c)
|
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundCritic()
public CompoundCritic(Critic c1,
Critic c2)
c1 - the first critic that makes up the compound criticc2 - the 2nd critic that makes up the compound critic
public CompoundCritic(Critic c1,
Critic c2,
Critic c3)
c1 - the first critic that makes up the compound criticc2 - the 2nd critic that makes up the compound criticc3 - the 3rd critic that makes up the compound critic
public CompoundCritic(Critic c1,
Critic c2,
Critic c3,
Critic c4)
c1 - the first critic that makes up the compound criticc2 - the 2nd critic that makes up the compound criticc3 - the 3rd critic that makes up the compound criticc4 - the 4th critic that makes up the compound critic| Method Detail |
|---|
public void setCritics(java.util.List<Critic> c)
c - the new list of critics that completely
replaces the old list@Deprecated public java.util.Vector<Critic> getCritics()
getCriticList(). Unused
in ArgoUML. Can be scheduled for speedy removal.
public java.util.List<Critic> getCriticList()
public void addCritic(Critic c)
c - the critic to be added at the end of the current listpublic void removeCritic(Critic c)
c - the critic to be removed
public void critique(java.lang.Object dm,
Designer dsgr)
Critic
critique in class Criticdm - the design materialdsgr - the designerCritic.predicate(java.lang.Object, org.argouml.cognitive.Designer),
Critic.toDoItem(java.lang.Object, org.argouml.cognitive.Designer)public boolean supports(Decision d)
supports in interface Postersupports in class Criticd - the decision
public java.util.List<Decision> getSupportedDecisions()
getSupportedDecisions in interface PostergetSupportedDecisions in class Criticpublic void addSupportedDecision(Decision d)
addSupportedDecision in class Criticd - the decisionpublic boolean supports(Goal g)
supports in interface Postersupports in class Criticg - the goal
public java.util.List<Goal> getSupportedGoals()
getSupportedGoals in interface PostergetSupportedGoals in class Criticpublic void addSupportedGoal(Goal g)
addSupportedGoal in class Criticg - the goalpublic boolean containsKnowledgeType(java.lang.String type)
containsKnowledgeType in interface PostercontainsKnowledgeType in class Critictype - the knowledge type
public void addKnowledgeType(java.lang.String type)
addKnowledgeType in class Critictype - the knowledgetype
public java.lang.String expand(java.lang.String desc,
ListSet offs)
Poster
expand in interface Posterexpand in class Criticdesc - the descriptionoffs - the offenders
public 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 Criticdm - the offenderdsgr - the designer
Critic.critique(java.lang.Object, org.argouml.cognitive.Designer)public java.util.Set<java.lang.Object> getCriticizedDesignMaterials()
Critic
getCriticizedDesignMaterials in class Criticpublic void addExtraCriticizedDesignMaterial(java.lang.Object dm)
getCriticizedDesignMaterials()
dm - extra design materialpublic java.lang.String toString()
toString in class Critic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |