public class VariableRateUpdate extends TariffUpdate
broker, id| Modifier | Constructor and Description |
|---|---|
protected |
VariableRateUpdate() |
|
VariableRateUpdate(Broker broker,
Rate rate,
HourlyCharge hourlyCharge) |
| Modifier and Type | Method and Description |
|---|---|
HourlyCharge |
getHourlyCharge() |
long |
getHourlyChargeId() |
HourlyCharge |
getPayload()
conventional getter to satisfy beanutils
|
long |
getRateId() |
boolean |
isValid()
By default, these are invalid.
|
boolean |
isValid(Rate rate)
Given a Rate, a VRU is valid if it has the correct ID, if the Rate
is not fixed, and if the HourlyCharge specifies a value
between the minValue and maxValue of the Rate.
|
getTariffIdgetBroker, getIdreadResolvepublic VariableRateUpdate(Broker broker, Rate rate, HourlyCharge hourlyCharge)
protected VariableRateUpdate()
public HourlyCharge getHourlyCharge()
public HourlyCharge getPayload()
public long getHourlyChargeId()
public long getRateId()
public boolean isValid()
isValid in interface ValidatableMessageisValid in class TariffMessagepublic boolean isValid(Rate rate)
Copyright © 2015. All Rights Reserved.