edu.cmu.aura.service
Class AttributeReq

java.lang.Object
  |
  +--edu.cmu.aura.service.AttributeReq

public class AttributeReq
extends java.lang.Object

AttributeReq represents the requirements on a particular attribute. For instance, a client executing a query may use an AttributeReq instance to specify that a given attribute must have a certain confidence, and have been obtained within a given time.


Constructor Summary
AttributeReq()
          Construct a blank attribute requirement.
AttributeReq(java.lang.String name)
          Construct an attribute requirement for the given attribute.
 
Method Summary
 boolean accuracyRequired()
           
 boolean confRequired()
           
 java.lang.Object getAccuracyMax()
           
 java.lang.Object getAccuracyMin()
           
 double getConfMax()
           
 double getConfMin()
           
 long getIntervalMax()
           
 long getIntervalMin()
           
 java.lang.String getName()
          Gets the name of the attribute that this requirement is for
 TimeInstant getUpdateTimeMax()
           
 TimeInstant getUpdateTimeMin()
           
 boolean intervalRequired()
           
 boolean metBy(DynamicAttribute dynamicAttrib)
           
 void setAccuracy(java.lang.Object minAccuracy, java.lang.Object maxAccuracy)
           
 void setConf(double minConf, double maxConf)
           
 void setInterval(long minInterval, long maxInterval)
           
 void setUpdateTime(TimeInstant minUpdateTime, TimeInstant maxUpdateTime)
           
 java.lang.String toString()
           
 boolean updateTimeRequired()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeReq

public AttributeReq()
Construct a blank attribute requirement.

AttributeReq

public AttributeReq(java.lang.String name)
Construct an attribute requirement for the given attribute.
Parameters:
name - name of the attribute to construct the requirement for.
Method Detail

getName

public java.lang.String getName()
Gets the name of the attribute that this requirement is for
Returns:
the name of the attribute that this requirement is for.

setConf

public void setConf(double minConf,
                    double maxConf)

getConfMin

public double getConfMin()

getConfMax

public double getConfMax()

confRequired

public boolean confRequired()

setAccuracy

public void setAccuracy(java.lang.Object minAccuracy,
                        java.lang.Object maxAccuracy)

getAccuracyMin

public java.lang.Object getAccuracyMin()

getAccuracyMax

public java.lang.Object getAccuracyMax()

accuracyRequired

public boolean accuracyRequired()

setUpdateTime

public void setUpdateTime(TimeInstant minUpdateTime,
                          TimeInstant maxUpdateTime)

getUpdateTimeMin

public TimeInstant getUpdateTimeMin()

getUpdateTimeMax

public TimeInstant getUpdateTimeMax()

updateTimeRequired

public boolean updateTimeRequired()

setInterval

public void setInterval(long minInterval,
                        long maxInterval)

getIntervalMin

public long getIntervalMin()

getIntervalMax

public long getIntervalMax()

intervalRequired

public boolean intervalRequired()

metBy

public boolean metBy(DynamicAttribute dynamicAttrib)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object