org.powertac.common.msg
Class TariffExpire

java.lang.Object
  extended by org.powertac.common.state.XStreamStateLoggable
      extended by org.powertac.common.TariffMessage
          extended by org.powertac.common.msg.TariffUpdate
              extended by org.powertac.common.msg.TariffExpire
All Implemented Interfaces:
ValidatableMessage

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
TariffExpire(Broker broker, TariffSpecification tariff, org.joda.time.Instant expiration)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TariffExpire

public TariffExpire(Broker broker,
                    TariffSpecification tariff,
                    org.joda.time.Instant expiration)
Method Detail

getNewExpiration

public org.joda.time.Instant getNewExpiration()


Copyright © 2013. All Rights Reserved.