Package | Description |
---|---|
org.powertac.common |
Power TAC domain types, shared between simulation server and brokers.
|
org.powertac.common.repo |
Repositories that need to exist in both the Power TAC simulation server
and in brokers.
|
Modifier and Type | Method and Description |
---|---|
Timeslot |
WeatherReport.getCurrentTimeslot()
Deprecated.
|
Timeslot |
WeatherForecast.getCurrentTimeslot()
Deprecated.
|
Timeslot |
BrokerTransaction.getPostedTimeslot()
Timeslot when transaction was posted
|
Timeslot |
WeatherForecast.getTimeslot()
Deprecated.
|
Timeslot |
Orderbook.getTimeslot() |
Timeslot |
Order.getTimeslot() |
Timeslot |
MarketTransaction.getTimeslot() |
Timeslot |
MarketPosition.getTimeslot() |
Timeslot |
ClearedTrade.getTimeslot() |
Modifier and Type | Method and Description |
---|---|
Broker |
Broker.addMarketPosition(MarketPosition posn,
Timeslot slot)
Deprecated.
|
MarketPosition |
Broker.findMarketPositionByTimeslot(Timeslot slot)
Deprecated.
|
Constructor and Description |
---|
ClearedTrade(Timeslot timeslot,
double executionMWh,
double executionPrice,
org.joda.time.Instant dateExecuted) |
MarketPosition(Broker broker,
Timeslot timeslot,
double balance) |
MarketTransaction(Broker broker,
int when,
Timeslot timeslot,
double mWh,
double price) |
Order(Broker broker,
Timeslot timeslot,
double mWh,
Double limitPrice)
Deprecated.
|
Orderbook(Timeslot timeslot,
Double clearingPrice,
org.joda.time.Instant dateExecuted) |
WeatherForecast(Timeslot timeslot,
List<WeatherForecastPrediction> predictions)
Deprecated.
|
WeatherReport(Timeslot timeslot,
double temperature,
double windSpeed,
double windDirection,
double cloudCover)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Timeslot |
TimeslotRepo.currentTimeslot()
Returns the timeslot for the current time.
|
Timeslot |
TimeslotRepo.findByInstant(org.joda.time.Instant time)
Returns the timeslot (if any) corresponding to a particular Instant.
|
Timeslot |
TimeslotRepo.findBySerialNumber(int serialNumber)
Returns the timeslot with the given serial number.
|
Timeslot |
TimeslotRepo.findOrCreateBySerialNumber(int serialNumber)
Returns the timeslot with the given serial number.
|
Timeslot |
TimeslotRepo.getNext(Timeslot slot)
Returns the following timeslot.
|
Timeslot |
TimeslotRepo.makeTimeslot(org.joda.time.Instant startTime)
Creates a timeslot with the given start time.
|
Modifier and Type | Method and Description |
---|---|
List<Timeslot> |
TimeslotRepo.enabledTimeslots()
Returns the list of enabled timeslots, starting with the first by serial number.
|
Modifier and Type | Method and Description |
---|---|
void |
TimeslotRepo.add(Timeslot timeslot)
Adds a timeslot that already exists.
|
List<Orderbook> |
OrderbookRepo.findAllByTimeslot(Timeslot timeslot) |
Orderbook |
OrderbookRepo.findByTimeslot(Timeslot timeslot)
Returns the most recent Orderbook that has been created for the specified
timeslot.
|
Orderbook |
OrderbookRepo.findSpotByTimeslot(Timeslot timeslot)
Returns the most recent orderbook with a non-null clearing price.
|
Timeslot |
TimeslotRepo.getNext(Timeslot slot)
Returns the following timeslot.
|
boolean |
TimeslotRepo.isTimeslotEnabled(Timeslot ts)
True just in case the specified timeslot is enabled.
|
Orderbook |
OrderbookRepo.makeOrderbook(Timeslot timeslot,
Double clearingPrice)
Creates a new Orderbook, with standard defaults (productType = Future,
dateExecuted = now).
|
Copyright © 2019 Power TAC. All rights reserved.