org.powertac.visualizer.domain.genco
Class Genco

java.lang.Object
  extended by 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)
           
 
Method Summary
 void addCashPosition(org.powertac.common.CashPosition position)
           
 WholesaleData 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<WholesaleData> getWholesaleDatasList()
           
 String toString()
           
 void update(int timeslotIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Genco

public Genco(org.powertac.common.Broker broker)
Method Detail

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)
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.