Package | Description |
---|---|
org.powertac.common |
Power TAC domain types, shared between simulation server and brokers.
|
org.powertac.samplebroker | |
org.powertac.samplebroker.core |
Implementation of the core of a Power TAC broker, including time-keeping,
server login and communication, message routing, and session management.
|
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.withDownRegulationDiscount(double value)
Fluent setter for overpriced down-regulation discount rate.
|
Competition |
Competition.withEstimatedConsumptionPremium(double value)
Fluent setter for the estimated consumption price premium.
|
Competition |
Competition.withExpectedTimeslotCount(int expectedTimeslotCount)
Fluent setter for the expected length of a normal sim session.
|
Competition |
Competition.withFixedTimeslotCount(Integer fixedTimeslotCount)
Fluent setter for the expected length of a normal sim session.
|
Competition |
Competition.withLatitude(int latitude)
Fluent setter for latitude value
|
Competition |
Competition.withMaxDownRegulationPaymentRatio(double value)
Fluent setter for the maximum down-regulation payment ratio.
|
Competition |
Competition.withMaxUpRegulationPaymentRatio(double value)
Fluent setter for the maximum ratio between consumption price and up-regulation
price for which customers will include up-regulation in tariff evaluation.
|
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 yyyy-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
|
Competition |
Competition.withUpRegulationDiscount(double value)
Fluent setter for overpriced up-regulation discount rate.
|
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 |
---|---|
void |
MarketManagerService.handleMessage(Competition comp)
Handles the Competition instance that arrives at beginning of game.
|
void |
ContextManagerService.handleMessage(Competition comp)
Handles the Competition instance that arrives at beginning of game.
|
Modifier and Type | Method and Description |
---|---|
void |
PowerTacBroker.handleMessage(Competition comp)
Handles the Competition instance that arrives at beginning of game.
|
Copyright © 2019 Power TAC. All rights reserved.