org.powertac.visualizer.domain.genco
Class Genco
java.lang.Object
org.powertac.visualizer.domain.genco.Genco
- All Implemented Interfaces:
- TimeslotModelUpdate
public class Genco
- extends Object
- implements TimeslotModelUpdate
Domain object that represents a single genco in the game.
- Author:
- Jurica Babic
|
Constructor Summary |
Genco(org.powertac.common.Broker broker)
|
Genco
public Genco(org.powertac.common.Broker broker)
findWholesaleDataByTimeslot
public WholesaleData findWholesaleDataByTimeslot(org.powertac.common.Timeslot timeslot)
- Finds (or creates one if cannot be found) wholesaleData
by the specified timeslot
- Parameters:
timeslot -
- Returns:
getBroker
public org.powertac.common.Broker getBroker()
addCashPosition
public void addCashPosition(org.powertac.common.CashPosition position)
getCash
public double getCash()
update
public void update(int timeslotIndex,
org.joda.time.Instant postedTime)
- Specified by:
update in interface TimeslotModelUpdate
- Parameters:
timeslotIndex - update will be run for this timeslot index.
getWholesaleDatasList
public ArrayList<WholesaleData> getWholesaleDatasList()
getJson
public GencoJSON getJson()
toString
public String toString()
- Overrides:
toString in class Object
getId
public String getId()
Copyright © 2012 Power TAC. All Rights Reserved.