org.powertac.visualizer.services
Class GencoService
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GencoService
public GencoService()
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)
- Specified by:
activate in interface TimeslotCompleteActivation
- Parameters:
timeslotIndex - index of completed timeslot.
recycle
public void recycle()
- Specified by:
recycle in interface Recyclable
Copyright © 2012 Power TAC. All Rights Reserved.