|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrn.Case
The case.
Field Summary | |
private CRN |
crn
The owner of this case. |
private boolean |
fAccepted
Indicates whether this case has been accepted or rejected by the user. |
protected java.util.ArrayList |
iesReferences
A list of references to all the IEs constituting this case. |
private java.lang.String |
name
A name of the case. |
private float |
similarity
The similarity with the other case. |
Constructor Summary | |
Case(java.lang.String name,
boolean fAccepted,
CRN crn)
Constructor. |
Method Summary | |
void |
AddIEReference(IE ie)
Adds a reference to the IE references list of this case. |
boolean |
equals(java.lang.Object object)
|
CRN |
GetCRN()
Gets the owner of this case. |
java.util.Iterator |
GetIEReferencesIterator()
Gets the IE references iterator. |
java.util.ArrayList |
GetIEs(java.lang.String name)
Gets the IEs referencing to this case of the given type. |
java.lang.String |
GetName()
Gets the name of this case. |
float |
GetSimilarity()
Gets the similarity. |
boolean |
HasIEType(java.lang.String ieName)
Chesks whether this case has an IE of the given type. |
boolean |
IsAccepted()
Indicates whether this case has been accepted or rejected by the user. |
boolean |
IsEqual(Case otherCase)
Tests the equality of two cases. |
void |
SetAccepted(boolean fAccepted)
Sets the value indicating whether this case should be accepted or not. |
void |
SetSimilarity(float similarity)
Sets the similarity. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String name
private boolean fAccepted
protected java.util.ArrayList iesReferences
private float similarity
private CRN crn
Constructor Detail |
public Case(java.lang.String name, boolean fAccepted, CRN crn)
name
- The name of this case.fAccepted
- Indicates whether this case has been accepted or rejected by the user.crn
- The owner of this case. Set to null if there is no owner.Method Detail |
public boolean IsAccepted()
public java.lang.String GetName()
public boolean equals(java.lang.Object object)
Object.equals(java.lang.Object)
public boolean IsEqual(Case otherCase)
otherCase
- The other case this one is to be compared to.
public void AddIEReference(IE ie)
ie
- The IE to be added.public java.util.Iterator GetIEReferencesIterator()
public float GetSimilarity()
public void SetSimilarity(float similarity)
similarity
- The similarity to set.public CRN GetCRN()
public boolean HasIEType(java.lang.String ieName)
ieName
- The name of the IE type.
public java.util.ArrayList GetIEs(java.lang.String name)
name
- Name of type.
public void SetAccepted(boolean fAccepted)
fAccepted
- The new value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |