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.
|
toString
public 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 AbstractMeter
public void tick()
public double getValue()
getValue
in class AbstractMeter
public String getUnit()
getUnit
in class AbstractMeter
public String getUnitDescription()
getUnitDescription
in class AbstractMeter
public int hashCode()
hashCode
in class AbstractMeter
public boolean equals(Object obj)
equals
in class AbstractMeter
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.