com.ibm.btt.bc.counter
Class CounterElement
java.lang.Object
com.ibm.btt.bc.counter.CounterElement
public class CounterElement
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CounterElement
public CounterElement()
CounterElement
public CounterElement(java.lang.String name)
getMaxLimit
public float getMaxLimit()
setMaxLimit
public void setMaxLimit(float maxLimit)
getMinLimit
public float getMinLimit()
setMinLimit
public void setMinLimit(float minLimit)
tryValue
public void tryValue(float aValue)
throws CounterException
- Tests if the value aValue is a correct value for the
CounterElement.
If it is not a correct value for the CounterElement, it throws a
DSECounterException with "ValueOverMax" or
"ValueUnderMin" code, depending on which limit was passed.
- Throws:
CounterException
tryMaxLimit
public void tryMaxLimit(float maxLimit)
throws CounterException
- Throws:
CounterException
tryMinLimit
public void tryMinLimit(float minLimit)
throws CounterException
- Throws:
CounterException
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getValue
public float getValue()
setValue
public void setValue(float value)
(c) Copyright IBM Corporation 1998, 2009