|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rdr.core.Case
public class Case
Case object. Consists of a set of case values. The definitions for the attributes are found in dm The caseValues match one to one with the domainModel attributes
Constructor Summary | |
---|---|
Case()
Makes a new, blank case, with default values using the default domain model. |
|
Case(int id,
DomainModel dm)
Makes a new, blank case, with all default values. |
|
Case(int id,
common.datastructures.MyFastVector<Value> caseValues,
DomainModel dm)
Constructs a case object |
|
Case(int id,
common.datastructures.MyFastVector<Value> caseValues,
common.datastructures.MyFastVector<Attribute> dm)
Creates a case object dumbly (no error checks) - primarily for cloning |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a cloned copy of this Case |
boolean |
compareToCase(Case compare)
Method to compare this case with another case, and return if they have all the same values or not Warning: currently only checks if they have the same name |
boolean |
equals(Case c)
|
int |
getId()
|
Value |
getValue(Attribute attr)
Return a particular Value of a particular attribute. |
Value |
getValue(java.lang.String name)
Return a particular Value of a particular attribute. |
common.datastructures.MyFastVector<Value> |
getValues()
|
java.lang.String[] |
getValuesArray()
Get the case values for setting up a JTable with the data |
void |
setValues(common.datastructures.MyFastVector<Value> caseValues)
Gives this case a set of values. |
java.lang.String |
toString()
Convert the case into an easily readable text representation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Case(int id, common.datastructures.MyFastVector<Value> caseValues, DomainModel dm)
id
- the case idcaseValues
- the set of values which make up the casedm
- the domain model which defines what a case should be likepublic Case(int id, common.datastructures.MyFastVector<Value> caseValues, common.datastructures.MyFastVector<Attribute> dm)
id
- caseValues
- dm
- public Case()
public Case(int id, DomainModel dm)
id
- dm
- Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public common.datastructures.MyFastVector<Value> getValues()
public int getId()
public java.lang.String[] getValuesArray()
public void setValues(common.datastructures.MyFastVector<Value> caseValues)
caseValues
- the set of values you want to give this casepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean compareToCase(Case compare)
compare
- the case to compare against
public Value getValue(java.lang.String name)
name
- the name of the attribute you want to get the value for
public Value getValue(Attribute attr)
attr
- the attribute you want to get the value for
public boolean equals(Case c)
c
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |