|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.Calculable
public class Calculable
A Calculable is the atomic attribute that is being 'watched'
| Constructor Summary | |
|---|---|
Calculable()
Create a new Calculable |
|
Calculable(String id,
double value)
Create a new Calculable that records the time |
|
Calculable(String id,
double value,
long when)
Create a new Calculable |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
String |
getArchiveRecord()
Gets an archival representation for this Calculable |
Date |
getDate()
Get the Date that represents the time of the Calculable |
String |
getDetail()
|
String |
getId()
Getter for property id |
double |
getValue()
Getter for property value. |
long |
getWhen()
Getter for property when. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setDetail(String detail)
|
void |
setId(String id)
Setter for property id |
void |
setValue(double value)
Setter for property value. |
void |
setWhen(long when)
Setter for property when. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Calculable()
public Calculable(String id,
double value)
id - The identifier for the Calculablevalue - The value for the Calculable
public Calculable(String id,
double value,
long when)
id - The identifier for this Calculable recordvalue - The value for the Calculable Recordwhen - The time when the recorded value was captured| Method Detail |
|---|
public String getId()
public void setId(String id)
id - New value of property id.public double getValue()
public void setValue(double value)
value - New value of property value.public long getWhen()
public void setWhen(long when)
when - New value of property when.public Date getDate()
public String getDetail()
public void setDetail(String detail)
public boolean equals(Object obj)
equals in class Objectobj - the object to compare to this one
public int hashCode()
hashCode in class Objectpublic String getArchiveRecord()
public String toString()
toString in class Object
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||