Uses of Class
org.powertac.common.Broker
-
Packages that use Broker Package Description org.powertac.common Power TAC domain types, shared between simulation server and brokers.org.powertac.common.interfaces 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. -
-
Uses of Broker in org.powertac.common
Fields in org.powertac.common declared as Broker Modifier and Type Field Description protected Broker
BrokerTransaction. broker
Whose transaction is this?protected Broker
TariffMessage. broker
The broker originating this messageMethods in org.powertac.common that return Broker Modifier and Type Method Description Broker
Broker. addMarketPosition(MarketPosition posn, int slot)
Associates a MarketPosition with a given Timeslot.Broker
Broker. addMarketPosition(MarketPosition posn, Timeslot slot)
Deprecated.Broker
BrokerTransaction. getBroker()
The Broker to whom this Transaction applies.Broker
MarketPosition. getBroker()
Broker
Order. getBroker()
Broker
Tariff. getBroker()
Broker
TariffMessage. getBroker()
Broker
TariffSpecification. getBroker()
Methods in org.powertac.common with parameters of type Broker Modifier and Type Method Description BalancingTransaction
TransactionFactory. makeBalancingTransaction(Broker broker, double kWh, double charge)
BankTransaction
TransactionFactory. makeBankTransaction(Broker broker, double amount)
CapacityTransaction
TransactionFactory. makeCapacityTransaction(Broker broker, int peakTimeslot, double threshold, double kWh, double fee)
CashPosition
TransactionFactory. makeCashPosition(Broker broker, double balance)
DistributionTransaction
TransactionFactory. makeDistributionTransaction(Broker broker, int nSmall, int nLarge, double transport, double distroCharge)
MarketTransaction
TransactionFactory. makeMarketTransaction(Broker broker, Timeslot timeslot, double mWh, double price)
TariffTransaction
TransactionFactory. makeTariffTransaction(Broker broker, TariffTransaction.Type txType, TariffSpecification spec, CustomerInfo customer, int customerCount, double kWh, double charge)
Creates a tariff transaction that is not a regulation transaction.TariffTransaction
TransactionFactory. makeTariffTransaction(Broker broker, TariffTransaction.Type txType, TariffSpecification spec, CustomerInfo customer, int customerCount, double kWh, double charge, boolean isRegulation)
Creates a tariff transaction that could be a regulation transaction, depending on the value of the isRegulation parameter.Constructors in org.powertac.common with parameters of type Broker Constructor 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. -
Uses of Broker in org.powertac.common.interfaces
Methods in org.powertac.common.interfaces that return types with arguments of type Broker Modifier and Type Method Description Map<Broker,Map<TariffTransaction.Type,Double>>
Accounting. getCurrentSupplyDemandByBroker()
Returns a mapping of brokers to total supply and demand among subscribed customers.Methods in org.powertac.common.interfaces with parameters of type Broker Modifier and Type Method Description BalancingTransaction
Accounting. addBalancingTransaction(Broker broker, double imbalance, double charge)
Adds a balancing transaction to represent the cost of imbalanceCapacityTransaction
Accounting. addCapacityTransaction(Broker broker, int peakTimeslot, double threshold, double kWh, double fee)
Adds a capacity transaction to represent charges for contribution to a demand peak.DistributionTransaction
Accounting. addDistributionTransaction(Broker broker, int nSmall, int nLarge, double transport, double distroCharge)
Adds a distribution transaction to represent charges for customer connections and energy transport.MarketTransaction
Accounting. addMarketTransaction(Broker broker, Timeslot timeslot, double price, double mWh)
Adds a market transaction that includes both a cash component and a product commitment for a specific timeslot.double
Accounting. getCurrentMarketPosition(Broker broker)
Returns the market position for the current timeslot for a given broker.double
Accounting. getCurrentNetLoad(Broker broker)
Returns the current net load represented by unprocessed TariffTransactions for a specific Broker.double
BalancingMarket. getMarketBalance(Broker broker)
Returns the market balance for a given broker.double
BalancingMarket. getRegulation(Broker broker)
Returns the net regulation energy (positive for up-regulation, negative for down-regulation) for a given broker.void
BrokerProxy. sendMessage(Broker broker, Object messageObject)
Send a message to a specific brokervoid
BrokerProxy. sendMessages(Broker broker, List<?> messageObjects)
Sends a list of messages to a specific broker -
Uses of Broker in org.powertac.common.msg
Fields in org.powertac.common.msg declared as Broker Modifier and Type Field Description protected Broker
OrderStatus. broker
The broker originating this messageMethods in org.powertac.common.msg that return Broker Modifier and Type Method Description Broker
OrderStatus. getBroker()
Broker
PauseRelease. getBroker()
Broker
PauseRequest. getBroker()
Constructors in org.powertac.common.msg with parameters of type Broker Constructor 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 brokerOrderStatus(Broker broker, long orderId)
Convenience constructor for timeslotDisabled messageOrderStatus(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)
-
Uses of Broker in org.powertac.common.repo
Methods in org.powertac.common.repo that return Broker Modifier and Type Method Description Broker
BrokerRepo. findById(long id)
Broker
BrokerRepo. findByUsername(String username)
Broker
BrokerRepo. findOrCreateByUsername(String username)
Methods in org.powertac.common.repo that return types with arguments of type Broker Modifier and Type Method Description List<Broker>
BrokerRepo. findDisabledBrokers()
List<Broker>
BrokerRepo. findRetailBrokers()
List<Broker>
BrokerRepo. findWholesaleBrokers()
Collection<Broker>
BrokerRepo. list()
Methods in org.powertac.common.repo with parameters of type Broker Modifier and Type Method Description void
BrokerRepo. add(Broker broker)
List<TariffSubscription>
TariffSubscriptionRepo. findActiveSubscriptionsForBroker(Broker broker)
Returns the list of active subscriptions for a given broker.List<TariffSubscription>
TariffSubscriptionRepo. findSubscriptionsForBroker(Broker b)
Returns the list of subscriptions for the specified broker.List<Tariff>
TariffRepo. findTariffsByBroker(Broker broker)
List<TariffSpecification>
TariffRepo. findTariffSpecificationsByBroker(Broker broker)
List<TariffSpecification>
TariffRepo. findTariffSpecificationsByBrokerAndType(Broker broker, PowerType type)
-