celeboss.data
Class ChangableMinMaxValue

java.lang.Object
  extended byceleboss.data.ChangableValue
      extended byceleboss.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

Field Summary
 
Fields inherited from class celeboss.data.ChangableValue
DECREASING, INCREASING, NOCHANGE
 
Constructor Summary
ChangableMinMaxValue()
          Default constructor
ChangableMinMaxValue(float initalValue)
          Construct a blank value
 
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
 

Constructor Detail

ChangableMinMaxValue

public ChangableMinMaxValue()
Default constructor


ChangableMinMaxValue

public ChangableMinMaxValue(float initalValue)
Construct a blank value

Parameters:
initalValue - Initial value
Method Detail

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.