Package org.powertac.common
Class RateCore
- java.lang.Object
-
- org.powertac.common.state.XStreamStateLoggable
-
- org.powertac.common.RateCore
-
- Direct Known Subclasses:
Rate
,RegulationRate
public class RateCore extends XStreamStateLoggable
Common supertype of Rate classes, holds tariff ID for this rate.- Author:
- John Collins
-
-
Constructor Summary
Constructors Constructor Description RateCore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getId()
Returns the id of this Ratelong
getTariffId()
Returns the id of the TariffSpecification to which this Rate is attached.void
setTariffId(long id)
Sets the backpointer to the tariff.-
Methods inherited from class org.powertac.common.state.XStreamStateLoggable
readResolve
-
-
-
-
Method Detail
-
getId
public long getId()
Returns the id of this Rate
-
setTariffId
@StateChange public void setTariffId(long id)
Sets the backpointer to the tariff. This is a non-fluent setter, intended to be called by TariffSpecification. It is public to better support state logging
-
getTariffId
public long getTariffId()
Returns the id of the TariffSpecification to which this Rate is attached.
-
-