public final class CountingMeter extends AbstractMeter
| Constructor and Description |
|---|
CountingMeter()
Constructor, generates a simple CountingMeter.
|
CountingMeter(String paramName)
Constructor with a given name.
|
CountingMeter(String paramName,
String paramUnit)
Constructor with a given name and a given unit.
|
CountingMeter(String paramName,
String paramUnit,
String paramUnitDesc)
Constructor with a given name and a given unit and a given unit
description.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Getting the name of this CountingMeter.
|
String |
getUnit()
Getting the name of this CountingMeter.
|
String |
getUnitDescription()
Getting the description of this CountingMeter.
|
double |
getValue()
Getting the value of this CountingMeter.
|
int |
hashCode() |
void |
tick()
The meter is ticking one forward.
|
toStringpublic CountingMeter()
public CountingMeter(String paramName)
paramName - the name of this CountingMeterpublic CountingMeter(String paramName, String paramUnit)
paramName - the name of this CountingMeterparamUnit - the unit of this CountingMeterpublic CountingMeter(String paramName, String paramUnit, String paramUnitDesc)
paramName - the name of this CountingMeterparamUnit - the unit of this CountingMeterparamUnitDesc - the description of this CountingMeterpublic String getName()
getName in class AbstractMeterpublic void tick()
public double getValue()
getValue in class AbstractMeterpublic String getUnit()
getUnit in class AbstractMeterpublic String getUnitDescription()
getUnitDescription in class AbstractMeterpublic int hashCode()
hashCode in class AbstractMeterpublic boolean equals(Object obj)
equals in class AbstractMeterCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.