edu.cmu.cs.able.gaugeInfrastructure.RMI
Class RMIGauge

java.lang.Object
  |
  +--edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGauge
All Implemented Interfaces:
GaugeControl, java.io.Serializable

public class RMIGauge
extends java.lang.Object
implements GaugeControl, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  StringPairVector configParams
           
protected  java.lang.String creatorID
           
protected  RMIGaugeReportingBus gaugeBus
           
protected  GaugeID gaugeID
           
protected  java.lang.String gaugeType
           
protected  StringPairVector setupParams
           
 
Constructor Summary
RMIGauge(GaugeID gaugeID)
          Creates new RMIGauge
RMIGauge(GaugeID gaugeID, java.lang.String creatorID, StringPairVector setupParams)
          Creates new RMIGauge
RMIGauge(java.lang.String modelName, java.lang.String modelType, java.lang.String gaugeName, java.lang.String creatorID)
          Creates new RMIGauge
 
Method Summary
 boolean configure(StringPairVector configParams)
          Configures the gauge.
 void delete()
          Deletes the RMIGauge
 StringPairVector getConfigParams()
          Returns the configuration parameters of this gauge.
 int getConfigParamsSize()
           
 GaugeID getGaugeID()
          Returns the gauge ID of this gauge.
 void init()
          Initializes the RMIGauge
 boolean queryAllValues(GaugeValueVector values)
          Returns all the values that this gauge reports.
 boolean queryState(StringPairVector setupParams, StringPairVector configParams, StringPairVector mappings)
          Returns the state of this gauge.
 java.lang.String queryValue(java.lang.String valueName)
          Returns the value of a particular value name
 void reportNewValue()
          Reports a new value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gaugeBus

protected RMIGaugeReportingBus gaugeBus

gaugeType

protected java.lang.String gaugeType

creatorID

protected java.lang.String creatorID

setupParams

protected StringPairVector setupParams

configParams

protected StringPairVector configParams

gaugeID

protected GaugeID gaugeID
Constructor Detail

RMIGauge

public RMIGauge(GaugeID gaugeID)
Creates new RMIGauge

RMIGauge

public RMIGauge(java.lang.String modelName,
                java.lang.String modelType,
                java.lang.String gaugeName,
                java.lang.String creatorID)
Creates new RMIGauge

RMIGauge

public RMIGauge(GaugeID gaugeID,
                java.lang.String creatorID,
                StringPairVector setupParams)
Creates new RMIGauge
Method Detail

init

public void init()
Initializes the RMIGauge

delete

public void delete()
Deletes the RMIGauge

getGaugeID

public GaugeID getGaugeID()
Returns the gauge ID of this gauge.
Specified by:
getGaugeID in interface GaugeControl
Returns:
 

getConfigParams

public StringPairVector getConfigParams()
Returns the configuration parameters of this gauge.
Returns:
 

getConfigParamsSize

public int getConfigParamsSize()

reportNewValue

public void reportNewValue()
Reports a new value. This should be overridden by extenders of this gauge.

configure

public boolean configure(StringPairVector configParams)
Configures the gauge.
Specified by:
configure in interface GaugeControl
Parameters:
configParams - The configuration parameters for this gauge.
Returns:
 

queryAllValues

public boolean queryAllValues(GaugeValueVector values)
Returns all the values that this gauge reports.
Specified by:
queryAllValues in interface GaugeControl
Parameters:
values -  
Returns:
 

queryState

public boolean queryState(StringPairVector setupParams,
                          StringPairVector configParams,
                          StringPairVector mappings)
Returns the state of this gauge.
Specified by:
queryState in interface GaugeControl
Parameters:
setupParams -  
configParams -  
mappings -  
Returns:
 

queryValue

public java.lang.String queryValue(java.lang.String valueName)
Returns the value of a particular value name
Specified by:
queryValue in interface GaugeControl
Parameters:
valueName -  
Returns: