|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.cognitive.critics.Critic
org.argouml.uml.cognitive.critics.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.
Designer,
DecisionModel,
Serialized Form| Field Summary | |
static Decision |
DEC_BEHAVIOR
Decision type: BEHAVIOR |
static Decision |
DEC_CLASS_SELECTION
Decision type: CLASS_SELECTION |
static Decision |
DEC_CODE_GEN
Decision type: CODE_GEN |
static Decision |
DEC_CONTAINMENT
Decision type: CONTAINMENT |
static Decision |
DEC_EXPECTED_USAGE
Decision type: EXPECTED_USAGE |
static Decision |
DEC_INHERITANCE
Decision type: INHERITANCE |
static Decision |
DEC_INSTANCIATION
Decision type: INSTANCIATION |
static Decision |
DEC_METHODS
Decision type: METHODS |
static Decision |
DEC_MODULARITY
Decision type: MODULARITY |
static Decision |
DEC_NAMING
Decision type: NAMING |
static Decision |
DEC_PATTERNS
Decision type: PATTERNS |
static Decision |
DEC_PLANNED_EXTENSIONS
Decision type: PLANNED_EXTENSIONS |
static Decision |
DEC_RELATIONSHIPS
Decision type: RELATIONSHIPS |
static Decision |
DEC_STATE_MACHINES
Decision type: STATE_MACHINES |
static Decision |
DEC_STEREOTYPES
Decision type: STEREOTYPES |
static Decision |
DEC_STORAGE
Decision type: STORAGE |
private static Logger |
LOG
|
private static String |
OCL_END
|
private static String |
OCL_START
|
| Fields inherited from class org.argouml.cognitive.critics.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. |
|
| Method Summary | |
String |
expand(String res,
org.tigris.gef.util.VectorSet offs)
Expand text with ocl brackets in it. |
boolean |
predicate(Object dm,
Designer dsgr)
Perform the Critic's analysis of the design. |
boolean |
predicate2(Object dm,
Designer dsgr)
This is the decision routine for the critic. |
void |
setHeadline(String s)
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). |
void |
setResource(String key)
Set the resources for this critic based on the class name. |
ToDoItem |
toDoItem(Object dm,
Designer dsgr)
create a new UMLToDoItem. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final Logger LOG
public static final Decision DEC_INHERITANCE
public static final Decision DEC_CONTAINMENT
public static final Decision DEC_PATTERNS
public static final Decision DEC_RELATIONSHIPS
public static final Decision DEC_STORAGE
public static final Decision DEC_BEHAVIOR
public static final Decision DEC_INSTANCIATION
public static final Decision DEC_NAMING
public static final Decision DEC_MODULARITY
public static final Decision DEC_CLASS_SELECTION
public static final Decision DEC_EXPECTED_USAGE
public static final Decision DEC_METHODS
public static final Decision DEC_CODE_GEN
public static final Decision DEC_PLANNED_EXTENSIONS
public static final Decision DEC_STEREOTYPES
public static final Decision DEC_STATE_MACHINES
private static final String OCL_START
private static final String OCL_END
| Constructor Detail |
public CrUML()
| Method Detail |
public void setResource(String key)
key - is the class name.public final void setHeadline(String s)
setHeadline in class Critics - the english headline, but ignored!
public boolean predicate(Object dm,
Designer dsgr)
Critic
predicate in class Criticdm - the design material, which is to be checkeddsgr - the designer
Critic.predicate(
java.lang.Object, org.argouml.cognitive.Designer)
public boolean predicate2(Object dm,
Designer dsgr)
dm - is the UML entity (an NSUML object) that is being checked.dsgr - is for future development and can be ignored.
public String expand(String res,
org.tigris.gef.util.VectorSet offs)
expand in interface Posterexpand in class Criticres - is the text to expand.offs - is the elements to replace
Poster.expand(java.lang.String,
org.tigris.gef.util.VectorSet)
public ToDoItem toDoItem(Object dm,
Designer dsgr)
toDoItem in class CriticUMLToDoItem
|
|||||||||||
| 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 |