net.floodlightcontroller.counter
Class CounterValue
java.lang.Object
net.floodlightcontroller.counter.CounterValue
public class CounterValue
- extends java.lang.Object
The class defines the counter value type and value
- Author:
- Kanzhe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
protected CounterValue.CounterType type
longValue
protected long longValue
doubleValue
protected double doubleValue
CounterValue
public CounterValue(CounterValue.CounterType type)
increment
public void increment(long delta)
- This method is only applicable to type long.
Setter() should be used for type double
setLongValue
public void setLongValue(long value)
setDoubleValue
public void setDoubleValue(double value)
getLong
public long getLong()
getDouble
public double getDouble()
getType
public CounterValue.CounterType getType()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object