org.flexiblepower.efi.buffer
public class RunningModeBehaviour extends java.lang.Object
RunningMode
. This class is usually used as the value of a
FillLevelFunction
, since the behavior may change acoording to the fill level. This class describes the effect
on the buffer and the consumed or produced commodities.Constructor and Description |
---|
RunningModeBehaviour(double fillingRate,
CommodityMeasurables commodityConsumption,
javax.measure.Measurable<javax.measure.quantity.MoneyFlow> runningCosts) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
CommodityMeasurables |
getCommodityConsumption()
Gets the consumption (positive number) or production (negative value) that belongs to this RunningMode.
|
double |
getFillingRate()
Gets the effect on the buffer, expressed in the amount of units as specified in the
BufferRegistration
per second, either positive or negative. |
javax.measure.Measurable<javax.measure.quantity.MoneyFlow> |
getRunningCosts() |
int |
hashCode() |
java.lang.String |
toString() |
public RunningModeBehaviour(double fillingRate, CommodityMeasurables commodityConsumption, javax.measure.Measurable<javax.measure.quantity.MoneyFlow> runningCosts)
public double getFillingRate()
BufferRegistration
per second, either positive or negative.
For example, if this buffer is a thermal buffer with the unit degrees Celsius (this is specified in the
BufferRegistration
), and this RunningMode
increases the temperature of the buffer with 0.01
degrees Celsius per second, than the value of fillingRate is 0.01.BufferRegistration
public CommodityMeasurables getCommodityConsumption()
public javax.measure.Measurable<javax.measure.quantity.MoneyFlow> getRunningCosts()
RunningMode
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object