Package org.powertac.common.msg
Class TariffUpdate
- java.lang.Object
-
- org.powertac.common.state.XStreamStateLoggable
-
- org.powertac.common.TariffMessage
-
- org.powertac.common.msg.TariffUpdate
-
- All Implemented Interfaces:
ValidatableMessage
- Direct Known Subclasses:
BalancingOrder
,ControlEvent
,TariffExpire
,TariffRevoke
,VariableRateUpdate
public abstract class TariffUpdate extends TariffMessage
Command object that represents a broker's request to update a tariff, either to change its expiration date or to revoke it.Note: Revoking a tariff causes all existing subscriptions to be switched either to the superseding tariff (if any) or to the default tariff.
- Author:
- Carsten Block, John Collins
-
-
Field Summary
-
Fields inherited from class org.powertac.common.TariffMessage
broker, id
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TariffUpdate()
TariffUpdate(Broker broker, long tariffId)
TariffUpdate(Broker broker, TariffSpecification tariff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getTariffId()
-
Methods inherited from class org.powertac.common.TariffMessage
getBroker, getId, isValid
-
Methods inherited from class org.powertac.common.state.XStreamStateLoggable
readResolve
-
-
-
-
Constructor Detail
-
TariffUpdate
public TariffUpdate(Broker broker, TariffSpecification tariff)
-
TariffUpdate
public TariffUpdate(Broker broker, long tariffId)
-
TariffUpdate
protected TariffUpdate()
-
-