|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.cmu.aura.service.AttributeReq
Represents the requirements on a particular attribute of a query. 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()
Constructs a blank attribute requirement. |
|
AttributeReq(java.lang.String name)
Constructs an attribute requirement for the given attribute. |
|
| Method Summary | |
boolean |
accuracyRequired()
Determines if this AttribReq specifies a required accuracy. |
boolean |
confRequired()
Determines if this AttribReq specifies a required confidence. |
java.lang.Object |
getAccuracyMax()
Get the maximum required accuracy. |
java.lang.Object |
getAccuracyMin()
Get the minimum required accuracy. |
double |
getConfMax()
Gets the maximum required confidence. |
double |
getConfMin()
Gets the minimum required confidence. |
long |
getIntervalMax()
Get the maximum required interval. |
long |
getIntervalMin()
Get the minimum required interval. |
java.lang.String |
getName()
Gets the name of the attribute that this requirement is for. |
TimeInstant |
getUpdateTimeAbsMax()
Get the maximum required updateTime. |
TimeInstant |
getUpdateTimeAbsMin()
Get the minimum required updateTime. |
boolean |
intervalRequired()
Determines if this AttribReq specifies a required sample interval. |
boolean |
metBy(DynamicAttribute dynamicAttrib)
Determins if a given DynamicAttribute meets the requirements specified by the AttributeReq. |
void |
setAccuracy(java.lang.Comparable minAccuracy,
java.lang.Comparable maxAccuracy)
Sets the required accuracy. |
void |
setConf(double minConf,
double maxConf)
Sets the required confidence. |
void |
setInterval(long minInterval,
long maxInterval)
Sets the required sample interval. |
void |
setUpdateTime(long minUpdateTime,
long maxUpdateTime)
Sets the required updateTime. |
void |
setUpdateTime(TimeInstant minUpdateTime,
TimeInstant maxUpdateTime)
Sets the required updateTime. |
void |
setUpdateTimeAbs(TimeInstant minUpdateTimeAbs,
TimeInstant maxUpdateTimeAbs)
Sets the required updateTime. |
java.lang.String |
toString()
Return a String version of this AttributeReq. |
boolean |
updateTimeRequired()
Determines if this AttribReq specifies a required updateTime. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AttributeReq()
public AttributeReq(java.lang.String name)
name - name of the attribute to construct the requirement for| Method Detail |
public java.lang.String getName()
public void setConf(double minConf,
double maxConf)
minConf - the minimum required confidencemaxConf - the maximum required confidencepublic double getConfMin()
public double getConfMax()
public boolean confRequired()
public void setAccuracy(java.lang.Comparable minAccuracy,
java.lang.Comparable maxAccuracy)
minAccuracy - the minimum required valuemaxAccuracy - the maximum required valuepublic java.lang.Object getAccuracyMin()
public java.lang.Object getAccuracyMax()
public boolean accuracyRequired()
public void setUpdateTime(long minUpdateTime,
long maxUpdateTime)
minUpdateTime - the minimum required updateTimemaxUpdateTime - the maximum required updateTime
public void setUpdateTime(TimeInstant minUpdateTime,
TimeInstant maxUpdateTime)
minUpdateTime - the minimum required updateTimemaxUpdateTime - the maximum required updateTime
public void setUpdateTimeAbs(TimeInstant minUpdateTimeAbs,
TimeInstant maxUpdateTimeAbs)
public TimeInstant getUpdateTimeAbsMin()
public TimeInstant getUpdateTimeAbsMax()
public boolean updateTimeRequired()
public void setInterval(long minInterval,
long maxInterval)
public long getIntervalMin()
public long getIntervalMax()
public boolean intervalRequired()
public boolean metBy(DynamicAttribute dynamicAttrib)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||