public class PollutionRate
extends java.lang.Object
| Constructor and Description |
|---|
PollutionRate(Pollutant pollutant)
PollutionRate constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAbsValue()
Returns the absolute pollution accumulated by this pollution rate.
|
double |
getValue()
Returns the pollution accumulated by this pollution rate, averaged in
time according to the SmartGov runtime state.
|
void |
increasePollution(double pollution)
Increase pollution by the specified amount for this pollutant.
|
java.lang.String |
toString() |
public PollutionRate(Pollutant pollutant)
pollutant - pollutantpublic void increasePollution(double pollution)
Pollution.pollutionRatePeeks will be updated accordingly.pollution - emission amount in gpublic double getAbsValue()
public double getValue()
public java.lang.String toString()
toString in class java.lang.Object