org.powertac.common
Class HourlyCharge
java.lang.Object
org.powertac.common.HourlyCharge
- All Implemented Interfaces:
- Comparable<HourlyCharge>
public class HourlyCharge
- extends Object
- implements Comparable<HourlyCharge>
Represents the cost of power during a specific timeslot in a variable
Rate. The value slot represents the charge/kWh; atTime is the Instant
at the start of the relevant timeslot. Therefore, the charge is in effect
from atTime until atTime + 1 hour. These are created by brokers and sent
to the server to update tariff pricing.
- Author:
- jcollins
|
Constructor Summary |
HourlyCharge(org.joda.time.Instant when,
double charge)
Creates a new HourlyCharge to communicate rate information to customers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HourlyCharge
public HourlyCharge(org.joda.time.Instant when,
double charge)
- Creates a new HourlyCharge to communicate rate information to customers.
The
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).
getId
public long getId()
getRateId
public long getRateId()
getValue
public double getValue()
getAtTime
public org.joda.time.Instant getAtTime()
compareTo
public int compareTo(HourlyCharge obj)
- Specified by:
compareTo in interface Comparable<HourlyCharge>
Copyright © 2011. All Rights Reserved.