edu.cmu.aura.service
Class DynamicAttribute

java.lang.Object
  |
  +--edu.cmu.aura.service.Attribute
        |
        +--edu.cmu.aura.service.DynamicAttribute

public class DynamicAttribute
extends Attribute

DynamicAttribute represents dynamic service attributes. These attributes are expected to change and may have several attributes (attributes of the attributes) associated with them that allow ...


Constructor Summary
DynamicAttribute()
          Create a DynamicAttribute.
DynamicAttribute(java.lang.String name, java.lang.Object value)
          Create a DynamicAttribute.
DynamicAttribute(java.lang.String name, java.lang.Object value, long lastUpdate, double confidence)
          Create a DynamicAttribute.
 
Method Summary
 double getConfidence()
          Get the confidence associated with this attribute.
 long getInterval()
          Get the interval associated with this attribute.
 TimeInstant getLastUpdate()
          Get the time this attribute was last updated.
 void setConfidence(double confidence)
          Set the confidence associated with this attribute.
 void setInterval(long interval)
          Set the interval associated with this attribute.
 void setLastUpdate(long lastUpdate)
          Set the time this attribute was last updated.
 java.lang.String toString()
          Convert this attribute to a String.
 
Methods inherited from class edu.cmu.aura.service.Attribute
getName, getValue, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicAttribute

public DynamicAttribute()
Create a DynamicAttribute.

DynamicAttribute

public DynamicAttribute(java.lang.String name,
                        java.lang.Object value)
Create a DynamicAttribute.
Parameters:
name - the name of this attribute.
value - the value of this attribute.

DynamicAttribute

public DynamicAttribute(java.lang.String name,
                        java.lang.Object value,
                        long lastUpdate,
                        double confidence)
Create a DynamicAttribute.
Parameters:
name - the name of this attribute.
value - the value of this attribute.
lastUpdate - the lastUpdate time of this attribute.
confidence - the confidence of this attribute.
Method Detail

getLastUpdate

public TimeInstant getLastUpdate()
Get the time this attribute was last updated.
Returns:
the time this attribute was last updated.

setLastUpdate

public void setLastUpdate(long lastUpdate)
Set the time this attribute was last updated.
Parameters:
lastUpdate - the time this attribute was last updated.

getConfidence

public double getConfidence()
Get the confidence associated with this attribute.
Returns:
the confidence associated with this attribute.

setInterval

public void setInterval(long interval)
Set the interval associated with this attribute.
Parameters:
interval - the interval associated with this attribute.

getInterval

public long getInterval()
Get the interval associated with this attribute.
Returns:
the interval associated with this attribute.

setConfidence

public void setConfidence(double confidence)
Set the confidence associated with this attribute.
Parameters:
confidence - the confidence associated with this attribute.

toString

public java.lang.String toString()
Convert this attribute to a String.
Overrides:
toString in class Attribute
Returns:
a String representation of this attribute.