| Package | Description |
|---|---|
| org.powertac.accounting | |
| org.powertac.common | |
| org.powertac.common.interfaces | |
| org.powertac.common.repo | |
| org.powertac.customer |
Generic customer model components.
|
| org.powertac.tariffmarket |
| Modifier and Type | Method and Description |
|---|---|
String |
AccountingService.initialize(Competition competition,
List<String> completedInits) |
| Modifier and Type | Method and Description |
|---|---|
Competition |
Competition.addBroker(String brokerUsername)
Adds a broker to the Competition.
|
Competition |
Competition.addCustomer(CustomerInfo customer)
Adds a customer to the Competition.
|
static Competition |
Competition.currentCompetition()
Returns the current Competition instance.
|
static Competition |
Competition.newInstance(String name) |
Competition |
Competition.withBootstrapDiscardedTimeslots(int count)
Fluent setter for bootstrap interval.
|
Competition |
Competition.withBootstrapTimeslotCount(int bootstrapTimeslotCount)
Fluent setter for the bootstrap timeslot count.
|
Competition |
Competition.withDeactivateTimeslotsAhead(int deactivateTimeslotsAhead)
Fluent setter for number of timeslots, starting with the current timeslot,
that are closed for trading.
|
Competition |
Competition.withDescription(String description)
Fluent setter for competition description.
|
Competition |
Competition.withExpectedTimeslotCount(int expectedTimeslotCount)
Fluent setter for the expected length of a normal sim session.
|
Competition |
Competition.withLatitude(int latitude)
Fluent setter for latitude value
|
Competition |
Competition.withMinimumOrderQuantity(double minOrderQty)
Fluent setter for minimum order quantity.
|
Competition |
Competition.withMinimumTimeslotCount(int minimumTimeslotCount)
Fluent setter for minimumTimeslotCount.
|
Competition |
Competition.withPomId(String id)
Fluent setter for Pom ID.
|
Competition |
Competition.withSimulationBaseTime(org.joda.time.Instant simulationBaseTime)
Fluent setter for simulation base time.
|
Competition |
Competition.withSimulationBaseTime(long baseTime)
Fluent setter for simulation base time that takes a long.
|
Competition |
Competition.withSimulationBaseTime(String baseTime)
Fluent setter for simulation base time that takes a String, interpreted
as a standard DateTimeFormat as yyy-MM-dd.
|
Competition |
Competition.withSimulationModulo(long simulationModulo)
Fluent setter for simulation modulo.
|
Competition |
Competition.withSimulationRate(long simulationRate)
Fluent setter for time compression ratio.
|
Competition |
Competition.withSimulationTimeslotSeconds(int seconds)
Fluent setter for controlling simulation rate by setting the number of
wall-clock seconds per timeslot.
|
Competition |
Competition.withTimeslotLength(int timeslotLength)
Fluent setter for timeslot length, interpreted as minutes in sim time.
|
Competition |
Competition.withTimeslotsOpen(int timeslotsOpen)
Fluent setter for the open timeslot count.
|
Competition |
Competition.withTimezoneOffset(int offset)
Fluent setter for timezone offset
|
| Modifier and Type | Method and Description |
|---|---|
void |
TimeService.setClockParameters(Competition comp)
Sets base, rate, and modulo from a Competition instance
|
static void |
Competition.setCurrent(Competition newCurrent)
Makes a Competition instance be the "current" competition - this is
needed in a broker when the Competition instance arrives from the
server.
|
void |
Competition.update(Competition template)
Updates selected fields of this Competition from a template.
|
| Modifier and Type | Method and Description |
|---|---|
String |
InitializationService.initialize(Competition competition,
List<String> completedInits)
Initializes a plugin prior to the beginning of a game.
|
| Modifier and Type | Method and Description |
|---|---|
Competition |
BootstrapDataRepo.getBootstrapCompetition()
Returns the Competition instances from the boot record
|
| Modifier and Type | Method and Description |
|---|---|
String |
CustomerModelService.initialize(Competition competition,
List<String> completedInits) |
| Modifier and Type | Method and Description |
|---|---|
String |
TariffMarketService.initialize(Competition competition,
List<String> completedInits)
Reads configuration parameters, registers for timeslot phase activation.
|
String |
CapacityControlService.initialize(Competition competition,
List<String> completedInits) |
Copyright © 2017 Power TAC. All rights reserved.