|
||||||||||
| 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.uml.cognitive.critics.CrUML
public class CrUML
"Abstract" Critic subclass that captures commonalities among all critics in the UML domain. This class also defines and registers the categories of design decisions that the critics can address. IT also deals with particular UMLToDoItems.
Designer,
DecisionModel,
Serialized Form| 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 | |
|---|---|
CrUML()
The constructor for this class. |
|
CrUML(java.lang.String nonDefaultLocalizationPrefix)
The constructor for this class overriding the default localization resource. |
|
| Method Summary | |
|---|---|
java.lang.String |
expand(java.lang.String res,
ListSet offs)
Expand text with ocl brackets in it. |
protected java.lang.String |
getDefaultSuggestion()
Loads the localized wizard's default suggestion. |
protected java.lang.String |
getInstructions()
Loads the localized wizard's instruction. |
protected java.lang.String |
getLocalizedString(java.lang.String suffix)
Returns a localized string for the current critic class. |
protected java.lang.String |
getLocalizedString(java.lang.String key,
java.lang.String suffix)
Returns a localized string for the given key and suffix. |
boolean |
predicate(java.lang.Object dm,
Designer dsgr)
Perform the Critic's analysis of the design. |
boolean |
predicate2(java.lang.Object dm,
Designer dsgr)
This is the decision routine for the critic. |
void |
setResource(java.lang.String key)
Set the resources for this critic based on the class name. |
void |
setupHeadAndDesc()
Set up the locale specific text for the critic headline (the one liner that appears in the to-do pane) and the critic description (the detailed explanation that appears in the to-do tab of the details pane). |
ToDoItem |
toDoItem(java.lang.Object dm,
Designer dsgr)
Reply the ToDoItem that the designer should see iff predicate() returns true. |
| 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 CrUML()
public CrUML(java.lang.String nonDefaultLocalizationPrefix)
nonDefaultLocalizationPrefix - the overriding localization resource| Method Detail |
|---|
public void setResource(java.lang.String key)
key - is the class name.protected java.lang.String getLocalizedString(java.lang.String suffix)
suffix - the suffix of the key
protected java.lang.String getLocalizedString(java.lang.String key,
java.lang.String suffix)
key - the main keysuffix - the suffix of the key
protected java.lang.String getInstructions()
protected java.lang.String getDefaultSuggestion()
public final void setupHeadAndDesc()
public boolean predicate(java.lang.Object dm,
Designer dsgr)
Critic
predicate in class Criticdm - the design material, which is to be checkeddsgr - the designer
public boolean predicate2(java.lang.Object dm,
Designer dsgr)
dm - is the UML entity that is being checked.dsgr - is for future development and can be ignored.
public java.lang.String expand(java.lang.String res,
ListSet offs)
expand in interface Posterexpand in class Criticres - is the text to expand.offs - is the elements to replace
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |