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
Modifier and Type Method Description longgetId()Returns the id of this RatelonggetTariffId()Returns the id of the TariffSpecification to which this Rate is attached.voidsetTariffId(long id)Sets the backpointer to the tariff.
-
Constructor Details
-
RateCore
public RateCore()
-
-
Method Details
-
getId
public long getId()Returns the id of this Rate -
setTariffId
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.
-