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 Summary
Constructors Modifier Constructor Description protected
TariffMessage()
TariffMessage(Broker broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
id
@XStreamAsAttribute protected long id
-
broker
@XStreamConverter(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 interfaceValidatableMessage
-
-