Class VariableRateUpdate

  • All Implemented Interfaces:
    ValidatableMessage

    @Domain(fields={"broker","tariffId","payload","rateId"})
    public class VariableRateUpdate
    extends TariffUpdate
    Conveys an HourlyCharge instance, labeled by its Tariff and Rate. When received by the server, the HourlyCharge simply needs to be added to its Rate. State log fields for readResolve():
    new(long brokerId, long tariffId, long hourlyChargeId, long rateId)
    Author:
    John Collins
    • Constructor Detail

      • VariableRateUpdate

        protected VariableRateUpdate()
    • Method Detail

      • getPayload

        public HourlyCharge getPayload()
        conventional getter to satisfy beanutils
      • getHourlyChargeId

        public long getHourlyChargeId()
      • getRateId

        public long getRateId()
      • isValid

        public 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.