@Domain(fields={"rateId","value","atTime"})
public class HourlyCharge
extends org.powertac.common.state.XStreamStateLoggable
implements Comparable<HourlyCharge>
| Modifier and Type | Field and Description |
|---|---|
protected org.joda.time.Instant |
atTime |
| Modifier | Constructor and Description |
|---|---|
protected |
HourlyCharge() |
|
HourlyCharge(org.joda.time.Instant when,
double charge)
Creates a new HourlyCharge to communicate rate information to customers.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HourlyCharge obj) |
org.joda.time.Instant |
getAtTime() |
long |
getId() |
long |
getRateId() |
double |
getValue() |
void |
setRateId(long rateId)
Sets connection between rate and hourly charge.
|
public HourlyCharge(org.joda.time.Instant when,
double charge)
when parameter specifies when this charge takes effect.
The specified charge/kWh applies until the next HourlyCharge takes effect
on the same Rate. Note that
the numbers are interpreted from the viewpoint of the Customer, so if
the customer is expected to pay the broker, the value should be negative
(a debit).protected HourlyCharge()
public long getId()
@StateChange public void setRateId(long rateId)
public long getRateId()
public double getValue()
public org.joda.time.Instant getAtTime()
public int compareTo(HourlyCharge obj)
compareTo in interface Comparable<HourlyCharge>Copyright © 2017 Power TAC. All rights reserved.