|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.MeasuredResource
public class MeasuredResource
The MeasuredResource represents a quantitative value of a resource that has been measured
| Constructor Summary | |
|---|---|
MeasuredResource(String identifier,
double value,
ThresholdValues tVals)
Construct a MeasuredResource with parameters |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
boolean |
evaluate(ThresholdValues thresholdValue)
Evaluates whether the MeasuredResource can meet the criteria specified by the ThresholdValues object. |
String |
getIdentifier()
Get the identifier of the measurable resource |
ThresholdValues |
getThresholdValues()
Get the ThresholdValues property |
double |
getValue()
Get the measured value |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
thresholdCrossed()
Determine if the value has crossed a threshold declared in the ThresholdValues property |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MeasuredResource(String identifier,
double value,
ThresholdValues tVals)
identifier - Identifier for the MeasurableResourcevalue - The measured valuetVals - ThresholdValues for the MeasurableResource| Method Detail |
|---|
public double getValue()
public String getIdentifier()
public ThresholdValues getThresholdValues()
public boolean thresholdCrossed()
public boolean evaluate(ThresholdValues thresholdValue)
thresholdValue - The ThresholdValue to evaluate
public boolean equals(Object obj)
equals in class Objectobj - the object to compare to this one
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||