|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dracoware.rsplib.RspThreshold
public class RspThreshold
Represents an RSP threshold.
Constructor Summary | |
---|---|
RspThreshold(java.lang.String value,
boolean crossed,
boolean lastCrossed,
long crossTime)
Creates a new RspThreshold object. |
Method Summary | |
---|---|
long |
getCrossTime()
If this threshold is crossed, returns the time at which it became crossed. |
java.lang.String |
getValue()
Returns the actual threshold string of this threshold. |
boolean |
isCrossed()
Returns true if this threshold is currently crossed. |
void |
setCrossed(boolean crossed)
Sets if this threshold is currently crossed. |
void |
setCrossedLast(boolean lastCrossed)
Sets if this threshold was crossed the last time it was checked. |
void |
setCrossTime(long crossTime)
Sets the time at which this threshold was crossed. |
void |
setValue(java.lang.String value)
Sets the actual threshold string of this threshold. |
boolean |
wasCrossedLast()
Returns true if this threshold was crossed the last time it was checked. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RspThreshold(java.lang.String value, boolean crossed, boolean lastCrossed, long crossTime)
RspThreshold
object.
value
- The actual threshold string.crossed
- If the threshold is currently crossed.lastCrossed
- If the threshold was crossed last time we checked.crossTime
- If the threshold is crossed, the time this happened.Method Detail |
---|
public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The threshold value.public boolean isCrossed()
public void setCrossed(boolean crossed)
crossed
- A boolean
specifying if this threshold is crossed.public long getCrossTime()
public void setCrossTime(long crossTime)
crossTime
- The time the threshold was crossed.public boolean wasCrossedLast()
public void setCrossedLast(boolean lastCrossed)
lastCrossed
- If the threshold was crossed at last check.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |