edu.cmu.cs.able.gaugeInfrastructure.Siena
Class SienaGaugeConsumer

java.lang.Object
  |
  +--edu.cmu.cs.able.gaugeInfrastructure.Siena.SienaGaugeConsumer
All Implemented Interfaces:
GaugeConsumer

public class SienaGaugeConsumer
extends java.lang.Object
implements GaugeConsumer

A stub implementation of the a gauge consumer that listens to siena gauges.


Field Summary
 java.util.Vector gaugeMgrs
          The gauge managers that this consumer can use to create gauges.
 java.util.Vector gauges
          The gauges that this consumer is listening to.
 GaugeReportingBus reportingBus
          The reporting bus that gauges report through.
 
Constructor Summary
SienaGaugeConsumer()
          Creates new SienaGaugeConsumer
 
Method Summary
 void onReportConfigured(GaugeControl gauge, StringPairVector configParams)
          The callback invoked when a gauge has been configured.
 void onReportCreated(GaugeControl gauge)
          The callback invoked when a gauge is created.
 void onReportDeleted(GaugeControl gauge)
          The callback invoked when a gauge is deleted by (another) consumer.
 void onReportMultipleValues(GaugeControl gauge, GaugeValueVector values)
          The callback invoked when a gauge reports multiple values in a single reporting action.
 void onReportValue(GaugeControl gauge, java.lang.String valueName, java.lang.String propertyName, java.lang.String value)
          The callback invoked when a gauge reports a single value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gauges

public java.util.Vector gauges
The gauges that this consumer is listening to.

gaugeMgrs

public java.util.Vector gaugeMgrs
The gauge managers that this consumer can use to create gauges.

reportingBus

public GaugeReportingBus reportingBus
The reporting bus that gauges report through.
Constructor Detail

SienaGaugeConsumer

public SienaGaugeConsumer()
Creates new SienaGaugeConsumer
Method Detail

onReportConfigured

public void onReportConfigured(GaugeControl gauge,
                               StringPairVector configParams)
Description copied from interface: GaugeConsumer
The callback invoked when a gauge has been configured. Because a gauge can have multiple consumers, all consumers must know when a gauge has been reconfigured. The gauge announces this when any consumer configures it.
Specified by:
onReportConfigured in interface GaugeConsumer
Parameters:
gauge -  
configParams -  

onReportCreated

public void onReportCreated(GaugeControl gauge)
Description copied from interface: GaugeConsumer
The callback invoked when a gauge is created.
Specified by:
onReportCreated in interface GaugeConsumer
Parameters:
gauge -  

onReportDeleted

public void onReportDeleted(GaugeControl gauge)
Description copied from interface: GaugeConsumer
The callback invoked when a gauge is deleted by (another) consumer. After this callback is invoked, the gauge consumer can expect no more events (or callbacks) from this particular gauge.
Specified by:
onReportDeleted in interface GaugeConsumer
Parameters:
gauge -  

onReportMultipleValues

public void onReportMultipleValues(GaugeControl gauge,
                                   GaugeValueVector values)
Description copied from interface: GaugeConsumer
The callback invoked when a gauge reports multiple values in a single reporting action.
Specified by:
onReportMultipleValues in interface GaugeConsumer
Parameters:
gauge -  
values -  

onReportValue

public void onReportValue(GaugeControl gauge,
                          java.lang.String valueName,
                          java.lang.String propertyName,
                          java.lang.String value)
Description copied from interface: GaugeConsumer
The callback invoked when a gauge reports a single value.
Specified by:
onReportValue in interface GaugeConsumer
Parameters:
gauge -  
valueName -  
propertyName -  
value -