|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.cognitive.ResolvedCritic
This class is responsible for identifying one critic that has been resolved by the user in one specific context.
Field Summary | |
---|---|
protected static Category |
cat
|
Constructor Summary | |
---|---|
ResolvedCritic(Critic c,
VectorSet offs)
Same as ResolvedCritic(c, offs, true) . |
|
ResolvedCritic(Critic c,
VectorSet offs,
boolean canCreate)
Creates a new ResolvedCritic from the given information. |
|
ResolvedCritic(java.lang.String critic,
java.util.Vector offenders)
Creates a new ResolvedCritic using the name of the Critic and the Vector of objects that triggered the Critic given as parameters. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
equals returns true if and only if obj also is a ResolvedCritic, has the same critic name, and has all related objects that this object has. |
java.lang.String |
getCritic()
Gets the content of _critic. |
protected java.lang.String |
getCriticString(Critic c)
Obtains a String that identifies the type of Critic. |
java.util.Vector |
getOffenderList()
Gets the list of related objects, _offenders. |
protected void |
importOffenders(VectorSet set,
boolean canCreate)
Imports the set of related objects in set to this object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static Category cat
Constructor Detail |
public ResolvedCritic(java.lang.String critic, java.util.Vector offenders)
critic
- The name of the Critic that has been resolvedoffenders
- The Vector of related objects.public ResolvedCritic(Critic c, VectorSet offs) throws UnresolvableException
ResolvedCritic(c, offs, true)
.
UnresolvableException
- If some of the objects does
not have a ItemUID and does not accept a new
one.public ResolvedCritic(Critic c, VectorSet offs, boolean canCreate) throws UnresolvableException
c
- The Critic that has been resolved.offs
- The set of objects that triggered the Critic.canCreate
- If it should try to assign new
ItemUIDs to objects that doesn't have.
UnresolvableException
- If some of the objects does
not have a ItemUID and does not accept a new
one.Method Detail |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to compare to.
protected java.lang.String getCriticString(Critic c) throws UnresolvableException
c
- A Critic.
UnreslovableException
- Not implemented.
UnresolvableException
protected void importOffenders(VectorSet set, boolean canCreate) throws UnresolvableException
set
- The set of related objects to import.canCreate
- If ItemUIDs are allowed to be created.
UnresolvableException
- if not all objects can be
imported.public java.lang.String getCritic()
public java.util.Vector getOffenderList()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |