SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

com.solarmetric.manage
Interface Statistic

All Known Implementing Classes:
SimpleStatistic

public interface Statistic

Defines an interface for a statistic. Statistic objects are tokens that can be passed to Watchable objects to specify which statistic is of interest.


Field Summary
static int DRAW_DISCRETE
           
static int DRAW_LINEAR
           
static int DRAW_SAMPLEHOLD
           
 
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 ordinate description.
 double getValue()
          Get the current value of the passed statistic.
 Watchable getWatchable()
          Get the Watchable pertaining to this statistic.
 boolean removeListener(StatisticListener listener)
          Remove a listener.
 

Field Detail

DRAW_LINEAR

public static final int DRAW_LINEAR

DRAW_DISCRETE

public static final int DRAW_DISCRETE

DRAW_SAMPLEHOLD

public static final int DRAW_SAMPLEHOLD
Method Detail

getName

public String getName()
Get the name of the statistic.

getDescription

public String getDescription()
Get a description of the statistic.

getOrdinateDescription

public String getOrdinateDescription()
Get the ordinate description.

getDrawStyle

public int getDrawStyle()
Get the preferred draw style.

getValue

public double getValue()
Get the current value of the passed statistic.

addListener

public boolean addListener(StatisticListener listener)
Add a listener.

removeListener

public boolean removeListener(StatisticListener listener)
Remove a listener.

clearListeners

public void clearListeners()
Clear all listeners.

getWatchable

public Watchable getWatchable()
Get the Watchable pertaining to this statistic.

SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.