|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.berkeley.guir.ptk.data.Data
edu.berkeley.guir.ptk.data.DataNumber
Contains number data as a double. It inherits an id field, which is set by the creator of the object and indentifies it. Some data ids are already specified in PTKConstants.
| Field Summary | |
double |
data
The double data for this object. |
| Fields inherited from class edu.berkeley.guir.ptk.data.Data |
id |
| Constructor Summary | |
DataNumber(double data)
Constructor without data ID. |
|
DataNumber(double data,
java.lang.String id)
Constructor. |
|
| Method Summary | |
Data |
copy()
Returns a copy if this Data object. |
boolean |
dataEquals(Data d)
Compares the data fields of this Data and the given Data for equality. |
boolean |
equals(Data d)
Compares this Data and the given Data for equality. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public double data
| Constructor Detail |
public DataNumber(double data,
java.lang.String id)
data - the number data for this objectid - indentifies this data object. Some example number ids:
"time_left," "age," "total_email." Some data ids
are already specified in PTKConstantspublic DataNumber(double data)
data - the number data for this object| Method Detail |
public boolean equals(Data d)
equals in class Datad -
public boolean dataEquals(Data d)
dataEquals in class Datapublic Data copy()
Data
copy in class Data
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||