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.
|
Modifier and Type | Method and Description |
---|---|
Orderbook |
Orderbook.addAsk(OrderbookOrder ask) |
Orderbook |
Orderbook.addBid(OrderbookOrder bid) |
Competition |
Competition.addBroker(String brokerUsername)
Adds a broker to the Competition.
|
Competition |
Competition.addCustomer(CustomerInfo customer)
Adds a customer to the Competition.
|
boolean |
Rate.addHourlyCharge(HourlyCharge newCharge,
boolean publish)
Allows initial publication of HourlyCharge instances within the notification interval.
|
boolean |
Tariff.addHourlyCharge(HourlyCharge newCharge,
long rateId)
Adds a new HourlyCharge to its Rate.
|
Broker |
Broker.addMarketPosition(MarketPosition posn,
int slot)
Associates a MarketPosition with a given Timeslot.
|
TariffSpecification |
TariffSpecification.addRate(RateCore rate)
Adds a new RateCore (Rate, RegulationRate, etc.) to this tariff.
|
TariffSpecification |
TariffSpecification.addSupersedes(long specId)
Indicates that this tariff supersedes the tariff specified by the
specId, the id of the superseded tariff.
|
protected void |
TimeService.setCurrentTime(org.joda.time.base.AbstractDateTime time)
Sets current time to a specific value.
|
void |
TimeService.setCurrentTime(org.joda.time.Instant time)
Sets current time to a specific value.
|
void |
Tariff.setExpiration(org.joda.time.Instant newDate) |
void |
Broker.setLocal(boolean value)
Allows subclasses to set themselves as local brokers.
|
void |
CustomerInfo.setPopulation(Integer population)
Updates the population for the underlying model.
|
void |
HourlyCharge.setRateId(long rateId)
Sets connection between rate and hourly charge.
|
void |
Tariff.setState(Tariff.State newState)
Updates the state of this tariff.
|
void |
RateCore.setTariffId(long id)
Sets the backpointer to the tariff.
|
void |
Broker.setWholesale(boolean value)
Allows subclasses to make themselves wholesale brokers
|
double |
MarketPosition.updateBalance(double mWh)
Adds a quantity to the current balance.
|
Competition |
Competition.withBootstrapDiscardedTimeslots(int count)
Fluent setter for bootstrap interval.
|
Competition |
Competition.withBootstrapTimeslotCount(int bootstrapTimeslotCount)
Fluent setter for the bootstrap timeslot count.
|
CustomerInfo |
CustomerInfo.withCanNegotiate(boolean value)
Fluent setter for the canNegotiate flag.
|
CustomerInfo |
CustomerInfo.withControllableKW(double value)
Fluent setter for controllable kWh.
|
Rate |
Rate.withDailyBegin(int begin) |
Rate |
Rate.withDailyEnd(int end)
Sets the time of day when this Rate is no longer in effect, given
as hours since midnight.
|
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.
|
CustomerInfo |
CustomerInfo.withDownRegulationKW(double value)
Fluent setter for down-regulation kW.
|
RegulationRate |
RegulationRate.withDownRegulationPayment(double payment)
Sets the payment for down-regulation
|
TariffSpecification |
TariffSpecification.withEarlyWithdrawPayment(double earlyWithdrawPayment)
Sets the payment for a customer who withdraws from a subscription to
this tariff before the minimumDuration has expired.
|
Rate |
Rate.withExpectedMean(double value)
Specifies the expected mean charge/kWh, excluding periodic charges,
for this Rate.
|
Competition |
Competition.withExpectedTimeslotCount(int expectedTimeslotCount)
Fluent setter for the expected length of a normal sim session.
|
TariffSpecification |
TariffSpecification.withExpiration(org.joda.time.Instant expiration)
Sets the expiration date for this tariff.
|
Rate |
Rate.withFixed(boolean fixed)
Specifies whether this Rate is fixed (true) or variable (false).
|
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
|
Rate |
Rate.withMaxCurtailment(double value)
Sets the maximum proportion of offered load or supply that can be
curtailed.
|
Rate |
Rate.withMaxValue(double maxValue)
Specifies the maximum charge (furthest from zero) for variable Rates.
|
TariffSpecification |
TariffSpecification.withMinDuration(long minDuration)
Sets the minimum duration of a subscription for this tariff.
|
Competition |
Competition.withMinimumOrderQuantity(double minOrderQty)
Fluent setter for minimum order quantity.
|
Competition |
Competition.withMinimumTimeslotCount(int minimumTimeslotCount)
Fluent setter for minimumTimeslotCount.
|
Rate |
Rate.withMinValue(double minValue)
Specifies the minimum charge (closest to zero) for variable Rates.
|
CustomerInfo |
CustomerInfo.withMultiContracting(boolean value)
Fluent setter for the multiContracting property.
|
Rate |
Rate.withNoticeInterval(long hours)
Specifies the minimum interval in hours for rate change notifications
for a variable Rate.
|
TariffSpecification |
TariffSpecification.withPeriodicPayment(double periodicPayment)
Sets the daily payment per customer for subscriptions to this tariff.
|
Competition |
Competition.withPomId(String id)
Fluent setter for Pom ID.
|
CustomerInfo |
CustomerInfo.withPowerType(PowerType type)
Fluent setter to set PowerType for this CustomerInfo.
|
RegulationRate |
RegulationRate.withResponse(RegulationRate.ResponseTime time)
Sets the response time
|
TariffSpecification |
TariffSpecification.withSignupPayment(double signupPayment)
Sets the signup payment for new subscriptions.
|
Competition |
Competition.withSimulationBaseTime(long baseTime)
Fluent setter for simulation base time that takes a long.
|
Competition |
Competition.withSimulationModulo(long simulationModulo)
Fluent setter for simulation modulo.
|
Competition |
Competition.withSimulationRate(long simulationRate)
Fluent setter for time compression ratio.
|
CustomerInfo |
CustomerInfo.withStorageCapacity(double value)
Fluent setter for storage capacity.
|
Rate |
Rate.withTierThreshold(double tierThreshold)
Sets the usage threshold for applicability of this Rate.
|
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
|
CustomerInfo |
CustomerInfo.withUpRegulationKW(double value)
Fluent setter for up-regulation kW.
|
RegulationRate |
RegulationRate.withUpRegulationPayment(double payment)
Sets the payment for up-regulation
|
Rate |
Rate.withValue(double value)
Specifies the charge/kWh for a fixed rate, from the customer's viewpoint.
|
Rate |
Rate.withWeeklyBegin(int begin) |
Rate |
Rate.withWeeklyEnd(int end)
Sets the weekly end of applicability for this Rate.
|
Modifier and Type | Method and Description |
---|---|
TariffStatus |
TariffStatus.withMessage(String message) |
Copyright © 2019 Power TAC. All rights reserved.