Package org.powertac.common
Class TariffMessage
- java.lang.Object
- 
- org.powertac.common.state.XStreamStateLoggable
- 
- 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
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedTariffMessage()TariffMessage(Broker broker)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BrokergetBroker()longgetId()booleanisValid()Implementation should return true just in case the message is internally valid.- 
Methods inherited from class org.powertac.common.state.XStreamStateLoggablereadResolve
 
- 
 
- 
- 
- 
Field Detail- 
id@XStreamAsAttribute protected long id 
 - 
broker@XStreamConverter(BrokerConverter.class) protected Broker broker The broker originating this message
 
- 
 - 
Constructor Detail- 
TariffMessagepublic TariffMessage(Broker broker) 
 - 
TariffMessageprotected TariffMessage() 
 
- 
 - 
Method Detail- 
getIdpublic long getId() 
 - 
getBrokerpublic Broker getBroker() 
 - 
isValidpublic boolean isValid() Description copied from interface:ValidatableMessageImplementation should return true just in case the message is internally valid.- Specified by:
- isValidin interface- ValidatableMessage
 
 
- 
 
-