org.powertac.visualizer.services
Class GencoService

java.lang.Object
  extended by org.powertac.visualizer.services.GencoService
All Implemented Interfaces:
Recyclable, TimeslotCompleteActivation

@Service
public class GencoService
extends Object
implements TimeslotCompleteActivation, Recyclable

Takes care of gencos' data.

Author:
Jurica Babic

Constructor Summary
GencoService()
           
 
Method Summary
 void activate(int timeslotIndex, org.joda.time.Instant postedTime)
           
 Genco addGenco(org.powertac.common.Broker broker)
          Creates and adds genco for the specified broker.
 Genco findGencoByUsername(String username)
          Returns null if genco cannot be found.
 List<Genco> getGencoList()
           
 void recycle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GencoService

public GencoService()
Method Detail

addGenco

public Genco addGenco(org.powertac.common.Broker broker)
Creates and adds genco for the specified broker.

Parameters:
template - broker
Returns:
created broker

findGencoByUsername

public Genco findGencoByUsername(String username)
Returns null if genco cannot be found.

Parameters:
username -
Returns:

getGencoList

public List<Genco> getGencoList()

activate

public void activate(int timeslotIndex,
                     org.joda.time.Instant postedTime)
Specified by:
activate in interface TimeslotCompleteActivation
Parameters:
timeslotIndex - index of completed timeslot.

recycle

public void recycle()
Specified by:
recycle in interface Recyclable


Copyright © 2013 Power TAC. All Rights Reserved.