public class Genco extends Object implements TimeslotModelUpdate
| Constructor and Description |
|---|
Genco(org.powertac.common.Broker broker) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCashPosition(org.powertac.common.CashPosition position) |
WholesaleDataGenco |
findWholesaleDataByTimeslot(org.powertac.common.Timeslot timeslot)
Finds (or creates one if cannot be found) wholesaleData by the specified
timeslot
|
org.powertac.common.Broker |
getBroker() |
double |
getCash() |
String |
getId() |
GencoJSON |
getJson() |
ArrayList<WholesaleDataGenco> |
getWholesaleDatasList() |
String |
toString() |
void |
update(int timeslotIndex,
org.joda.time.Instant postedTime) |
public WholesaleDataGenco findWholesaleDataByTimeslot(org.powertac.common.Timeslot timeslot)
timeslot - public org.powertac.common.Broker getBroker()
public void addCashPosition(org.powertac.common.CashPosition position)
public double getCash()
public void update(int timeslotIndex,
org.joda.time.Instant postedTime)
update in interface TimeslotModelUpdatetimeslotIndex - update will be run for this timeslot index.public ArrayList<WholesaleDataGenco> getWholesaleDatasList()
public GencoJSON getJson()
public String getId()
Copyright © 2014 Power TAC. All Rights Reserved.