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
|
Field Summary |
protected Broker |
broker
The broker originating this message |
protected long |
id
|
|
Method Summary |
Broker |
getBroker()
|
long |
getId()
|
boolean |
isValid()
Implementation should return true just in case the message is
internally valid. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
@XStreamAsAttribute
protected long id
broker
@XStreamConverter(value=BrokerConverter.class)
protected Broker broker
- The broker originating this message
TariffMessage
public TariffMessage(Broker broker)
TariffMessage
protected TariffMessage()
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.