@Service public class GencoService extends Object implements TimeslotCompleteActivation, Recyclable
| Constructor and Description |
|---|
GencoService() |
| Modifier and Type | Method and Description |
|---|---|
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() |
public Genco addGenco(org.powertac.common.Broker broker)
broker - public Genco findGencoByUsername(String username)
username - public void activate(int timeslotIndex,
org.joda.time.Instant postedTime)
activate in interface TimeslotCompleteActivationtimeslotIndex - index of completed timeslot.public void recycle()
recycle in interface RecyclableCopyright © 2015 Power TAC. All Rights Reserved.