Package org.powertac.common.msg
Class TariffStatus
- java.lang.Object
-
- org.powertac.common.state.XStreamStateLoggable
-
- org.powertac.common.TariffMessage
-
- org.powertac.common.msg.TariffStatus
-
- All Implemented Interfaces:
ValidatableMessage
@Domain(fields={"broker","tariffId","updateId","status"}) public class TariffStatus extends TariffMessage
Represents a response from server to broker to publication or update of a tariff.- Author:
- jcollins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TariffStatus.Status
-
Field Summary
-
Fields inherited from class org.powertac.common.TariffMessage
broker, id
-
-
Constructor Summary
Constructors Constructor Description TariffStatus(Broker broker, long tariffId, long updateId, TariffStatus.Status status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
TariffStatus.Status
getStatus()
long
getTariffId()
long
getUpdateId()
void
setStatus(TariffStatus.Status status)
TariffStatus
withMessage(String message)
-
Methods inherited from class org.powertac.common.TariffMessage
getBroker, getId, isValid
-
Methods inherited from class org.powertac.common.state.XStreamStateLoggable
readResolve
-
-
-
-
Constructor Detail
-
TariffStatus
public TariffStatus(Broker broker, long tariffId, long updateId, TariffStatus.Status status)
-
-
Method Detail
-
getMessage
public String getMessage()
-
withMessage
@StateChange public TariffStatus withMessage(String message)
-
getTariffId
public long getTariffId()
-
getUpdateId
public long getUpdateId()
-
getStatus
public TariffStatus.Status getStatus()
-
setStatus
public void setStatus(TariffStatus.Status status)
-
-