org.powertac.common
Class TariffMessage

java.lang.Object
  extended by org.powertac.common.state.XStreamStateLoggable
      extended by org.powertac.common.TariffMessage
All Implemented Interfaces:
ValidatableMessage
Direct Known Subclasses:
TariffSpecification, TariffStatus, TariffUpdate

public abstract class TariffMessage
extends XStreamStateLoggable
implements ValidatableMessage

Supertype of all tariff-related messages that can be processed by a TariffMessageProcessor.

Author:
John Collins

Field Summary
protected  Broker broker
          The broker originating this message
protected  long id
           
 
Constructor Summary
protected TariffMessage()
           
  TariffMessage(Broker broker)
           
 
Method Summary
 Broker getBroker()
           
 long getId()
           
 boolean isValid()
          Implementation should return true just in case the message is internally valid.
 
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
 

Field Detail

id

@XStreamAsAttribute
protected long id

broker

@XStreamConverter(value=BrokerConverter.class)
protected Broker broker
The broker originating this message

Constructor Detail

TariffMessage

public TariffMessage(Broker broker)

TariffMessage

protected TariffMessage()
Method Detail

getId

public long getId()

getBroker

public Broker getBroker()

isValid

public boolean isValid()
Description copied from interface: ValidatableMessage
Implementation should return true just in case the message is internally valid.

Specified by:
isValid in interface ValidatableMessage


Copyright © 2013. All Rights Reserved.