celeboss.data
Class ChangableMinMaxValue
java.lang.Object
celeboss.data.ChangableValue
celeboss.data.ChangableMinMaxValue
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class ChangableMinMaxValue
- extends ChangableValue
This class represents a value that changes over time. It also records
the highest and lowest values.
- Version:
- 1.0
- Author:
- bevans
- See Also:
- Serialized Form
|
Method Summary |
float |
getMaxValue()
|
float |
getMinValue()
|
int |
isAtBounds()
This method returns an int value signifiy whether this value is at
either of the bounds. |
| Methods inherited from class celeboss.data.ChangableValue |
compareTo, equals, getChangedOn, getDefaultFormat, getIncreasing, getMaximumAge, getOldValue, getValue, hashCode, resetValue, setFormat, setMaximumAge, setValue, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ChangableMinMaxValue
public ChangableMinMaxValue()
- Default constructor
ChangableMinMaxValue
public ChangableMinMaxValue(float initalValue)
- Construct a blank value
- Parameters:
initalValue - Initial value
getMaxValue
public float getMaxValue()
- Returns:
- Returns the maxValue.
getMinValue
public float getMinValue()
- Returns:
- Returns the minValue.
isAtBounds
public int isAtBounds()
- This method returns an int value signifiy whether this value is at
either of the bounds.
- Returns:
0 not near bound; 1 at the maximum
value; -1 at the minimum value.