|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.solarmetric.manage.SimpleStatistic
A simple statistic implementation. Doesn't have any application specific state.
Fields inherited from interface com.solarmetric.manage.Statistic |
DRAW_DISCRETE, DRAW_LINEAR, DRAW_SAMPLEHOLD |
Constructor Summary | |
SimpleStatistic(String name,
String description,
String ordinateDescription,
int drawStyle,
Watchable watchable,
boolean ignoreDuplicates)
Construct a simple statistic. |
|
SimpleStatistic(String name,
String description,
String ordinateDescription,
Watchable watchable)
Construct a simple statistic that throws out consecutive equal values settings. |
Method Summary | |
boolean |
addListener(StatisticListener listener)
Add a listener. |
void |
clearListeners()
Clear all listeners. |
String |
getDescription()
Get a description of the statistic. |
int |
getDrawStyle()
Get the preferred draw style. |
String |
getName()
Get the name of the statistic. |
String |
getOrdinateDescription()
Get the description of the ordinate. |
double |
getValue()
Get the current value. |
Watchable |
getWatchable()
Get the watchable pertaining to this statistic. |
boolean |
removeListener(StatisticListener listener)
Remove a listener. |
void |
setValue(double value)
Set the current value. |
void |
setValue(long time,
double value)
Set the current value and establish the time it was set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleStatistic(String name, String description, String ordinateDescription, Watchable watchable)
public SimpleStatistic(String name, String description, String ordinateDescription, int drawStyle, Watchable watchable, boolean ignoreDuplicates)
Method Detail |
public String getName()
getName
in interface Statistic
public String getDescription()
getDescription
in interface Statistic
public String getOrdinateDescription()
getOrdinateDescription
in interface Statistic
public int getDrawStyle()
getDrawStyle
in interface Statistic
public double getValue()
getValue
in interface Statistic
public void setValue(long time, double value)
public void setValue(double value)
public boolean addListener(StatisticListener listener)
addListener
in interface Statistic
public boolean removeListener(StatisticListener listener)
removeListener
in interface Statistic
public void clearListeners()
clearListeners
in interface Statistic
public Watchable getWatchable()
getWatchable
in interface Statistic
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |