@Domain(fields={"broker","tariffId","payload","rateId"}) 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.
|
getTariffId
getBroker, getId
readResolve
public 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 ValidatableMessage
isValid
in class TariffMessage
public boolean isValid(Rate rate)
Copyright © 2019 Power TAC. All rights reserved.