Package org.powertac.common.msg
Class TariffExpire
- java.lang.Object
-
- org.powertac.common.state.XStreamStateLoggable
-
- org.powertac.common.TariffMessage
-
- org.powertac.common.msg.TariffUpdate
-
- org.powertac.common.msg.TariffExpire
-
- All Implemented Interfaces:
ValidatableMessage
@Domain(fields={"broker","tariffId","newExpiration"}) public class TariffExpire extends TariffUpdate
Request to change expiration date on an existing tariff. There are no constraints on the new expiration date, but dates in the past will not have retroactive effect. Created by brokers. State log fields for readResolve():
new(long brokerId, long tariffId, Instant expiration)- Author:
- John Collins
-
-
Field Summary
-
Fields inherited from class org.powertac.common.TariffMessage
broker, id
-
-
Constructor Summary
Constructors Constructor Description TariffExpire(Broker broker, TariffSpecification tariff, org.joda.time.Instant expiration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.Instant
getNewExpiration()
-
Methods inherited from class org.powertac.common.msg.TariffUpdate
getTariffId
-
Methods inherited from class org.powertac.common.TariffMessage
getBroker, getId, isValid
-
Methods inherited from class org.powertac.common.state.XStreamStateLoggable
readResolve
-
-
-
-
Constructor Detail
-
TariffExpire
public TariffExpire(Broker broker, TariffSpecification tariff, org.joda.time.Instant expiration)
-
-