org.powertac.common.msg
Class TariffUpdate

java.lang.Object
  extended by org.powertac.common.state.XStreamStateLoggable
      extended by org.powertac.common.TariffMessage
          extended by org.powertac.common.msg.TariffUpdate
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
TariffUpdate(Broker broker, long tariffId)
           
TariffUpdate(Broker broker, TariffSpecification tariff)
           
 
Method Summary
 long getTariffId()
           
 
Methods inherited from class org.powertac.common.TariffMessage
getBroker, getId
 
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

TariffUpdate

public TariffUpdate(Broker broker,
                    TariffSpecification tariff)

TariffUpdate

public TariffUpdate(Broker broker,
                    long tariffId)
Method Detail

getTariffId

public long getTariffId()


Copyright © 2012. All Rights Reserved.