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 BrokerBrokerTransaction. brokerWhose transaction is this?protected BrokerTariffMessage. brokerThe broker originating this messageMethods in org.powertac.common that return Broker Modifier and Type Method Description BrokerBroker. addMarketPosition(MarketPosition posn, int slot)Associates a MarketPosition with a given Timeslot.BrokerBroker. addMarketPosition(MarketPosition posn, Timeslot slot)Deprecated.BrokerBrokerTransaction. getBroker()The Broker to whom this Transaction applies.BrokerMarketPosition. getBroker()BrokerOrder. getBroker()BrokerTariff. getBroker()BrokerTariffMessage. getBroker()BrokerTariffSpecification. getBroker()Methods in org.powertac.common with parameters of type Broker Modifier and Type Method Description BalancingTransactionTransactionFactory. makeBalancingTransaction(Broker broker, double kWh, double charge)BankTransactionTransactionFactory. makeBankTransaction(Broker broker, double amount)CapacityTransactionTransactionFactory. makeCapacityTransaction(Broker broker, int peakTimeslot, double threshold, double kWh, double fee)CashPositionTransactionFactory. makeCashPosition(Broker broker, double balance)DistributionTransactionTransactionFactory. makeDistributionTransaction(Broker broker, int nSmall, int nLarge, double transport, double distroCharge)MarketTransactionTransactionFactory. makeMarketTransaction(Broker broker, Timeslot timeslot, double mWh, double price)TariffTransactionTransactionFactory. 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.TariffTransactionTransactionFactory. 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 BalancingTransactionAccounting. addBalancingTransaction(Broker broker, double imbalance, double charge)Adds a balancing transaction to represent the cost of imbalanceCapacityTransactionAccounting. addCapacityTransaction(Broker broker, int peakTimeslot, double threshold, double kWh, double fee)Adds a capacity transaction to represent charges for contribution to a demand peak.DistributionTransactionAccounting. addDistributionTransaction(Broker broker, int nSmall, int nLarge, double transport, double distroCharge)Adds a distribution transaction to represent charges for customer connections and energy transport.MarketTransactionAccounting. 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.doubleAccounting. getCurrentMarketPosition(Broker broker)Returns the market position for the current timeslot for a given broker.doubleAccounting. getCurrentNetLoad(Broker broker)Returns the current net load represented by unprocessed TariffTransactions for a specific Broker.doubleBalancingMarket. getMarketBalance(Broker broker)Returns the market balance for a given broker.doubleBalancingMarket. getRegulation(Broker broker)Returns the net regulation energy (positive for up-regulation, negative for down-regulation) for a given broker.voidBrokerProxy. sendMessage(Broker broker, Object messageObject)Send a message to a specific brokervoidBrokerProxy. 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 BrokerOrderStatus. brokerThe broker originating this messageMethods in org.powertac.common.msg that return Broker Modifier and Type Method Description BrokerOrderStatus. getBroker()BrokerPauseRelease. getBroker()BrokerPauseRequest. 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 BrokerBrokerRepo. findById(long id)BrokerBrokerRepo. findByUsername(String username)BrokerBrokerRepo. 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 voidBrokerRepo. 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)
-