Package | Description |
---|---|
org.powertac.common |
Power TAC domain types, shared between simulation server and brokers.
|
org.powertac.common.msg |
Message types exchanged between the Power TAC simulation server and brokers.
|
org.powertac.common.repo |
Repositories that need to exist in both the Power TAC simulation server
and in brokers.
|
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.
|
org.powertac.samplebroker.interfaces |
Interfaces that can be implemented by broker behavioral modules,
connecting them to the core and the server.
|
Modifier and Type | Field and Description |
---|---|
protected Broker |
TariffMessage.broker
The broker originating this message
|
protected Broker |
BrokerTransaction.broker
Whose transaction is this?
|
Modifier and Type | Method and Description |
---|---|
Broker |
Broker.addMarketPosition(MarketPosition posn,
int slot)
Associates a MarketPosition with a given Timeslot.
|
Broker |
Broker.addMarketPosition(MarketPosition posn,
Timeslot slot)
Deprecated.
|
Broker |
TariffSpecification.getBroker() |
Broker |
TariffMessage.getBroker() |
Broker |
Tariff.getBroker() |
Broker |
Order.getBroker() |
Broker |
MarketPosition.getBroker() |
Broker |
BrokerTransaction.getBroker()
The Broker to whom this Transaction applies.
|
Constructor and Description |
---|
BalancingTransaction(Broker broker,
int when,
double kWh,
double charge) |
BankTransaction(Broker broker,
double amount,
int time)
Constructs a new BankTransaction instance, giving it a new id.
|
BrokerTransaction(int timeslotIndex,
Broker broker) |
CapacityTransaction(Broker broker,
int when,
int peakTimeslot,
double threshold,
double kwh,
double charge) |
CashPosition(Broker broker,
double balance,
int timeslot) |
DistributionTransaction(Broker broker,
int when,
double kwh,
double charge) |
DistributionTransaction(Broker broker,
int when,
int nSmall,
int nLarge,
double kwh,
double charge) |
MarketPosition(Broker broker,
int timeslot,
double balance) |
MarketPosition(Broker broker,
Timeslot timeslot,
double balance) |
MarketTransaction(Broker broker,
int when,
int timeslot,
double mWh,
double price) |
MarketTransaction(Broker broker,
int when,
Timeslot timeslot,
double mWh,
double price) |
Order(Broker broker,
int timeslot,
double mWh,
Double limitPrice)
Creates a new Order for Broker to buy or sell a quantity of energy
in Timeslot.
|
Order(Broker broker,
Timeslot timeslot,
double mWh,
Double limitPrice)
Deprecated.
|
TariffMessage(Broker broker) |
TariffSpecification(Broker broker,
PowerType powerType)
Creates a new TariffSpecification for a broker and a specific powerType.
|
TariffTransaction(Broker broker,
int when,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Deprecated.
|
TariffTransaction(Broker broker,
int when,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge,
boolean regulation)
Creates a new TariffTransaction for broker of type txType against
a particular tariff spec and customer.
|
Modifier and Type | Field and Description |
---|---|
protected Broker |
OrderStatus.broker
The broker originating this message
|
Modifier and Type | Method and Description |
---|---|
Broker |
PauseRequest.getBroker() |
Broker |
PauseRelease.getBroker() |
Broker |
OrderStatus.getBroker() |
Constructor and Description |
---|
BalancingOrder(Broker broker,
TariffSpecification tariff,
double exerciseRatio,
double price)
Creates a new BalancingOrder for the given tariff.
|
BrokerAuthentication(Broker broker)
Creates an instance from a broker
|
OrderStatus(Broker broker,
long orderId)
Convenience constructor for timeslotDisabled message
|
OrderStatus(Broker broker,
long orderId,
OrderStatus.Status status) |
PauseRelease(Broker broker) |
PauseRequest(Broker broker) |
TariffExpire(Broker broker,
TariffSpecification tariff,
org.joda.time.Instant expiration) |
TariffRevoke(Broker broker,
TariffSpecification tariff) |
TariffStatus(Broker broker,
long tariffId,
long updateId,
TariffStatus.Status status) |
TariffUpdate(Broker broker,
long tariffId) |
TariffUpdate(Broker broker,
TariffSpecification tariff) |
VariableRateUpdate(Broker broker,
Rate rate,
HourlyCharge hourlyCharge) |
Modifier and Type | Method and Description |
---|---|
Broker |
BrokerRepo.findById(long id) |
Broker |
BrokerRepo.findByUsername(String username) |
Broker |
BrokerRepo.findOrCreateByUsername(String username) |
Modifier and Type | Method and Description |
---|---|
List<Broker> |
BrokerRepo.findDisabledBrokers() |
List<Broker> |
BrokerRepo.findRetailBrokers() |
List<Broker> |
BrokerRepo.findWholesaleBrokers() |
Collection<Broker> |
BrokerRepo.list() |
Modifier and Type | Method and Description |
---|---|
void |
BrokerRepo.add(Broker broker) |
List<Tariff> |
TariffRepo.findTariffsByBroker(Broker broker) |
List<TariffSpecification> |
TariffRepo.findTariffSpecificationsByBroker(Broker broker) |
Modifier and Type | Method and Description |
---|---|
Broker |
PowerTacBroker.getBroker()
Returns the "real" broker underneath this monstrosity
|
Modifier and Type | Method and Description |
---|---|
Broker |
BrokerContext.getBroker()
Returns the org.powerac.common.Broker instance
|
Copyright © 2019 Power TAC. All rights reserved.