Uses of Class
org.powertac.common.Competition
| Package | Description |
|---|---|
| org.powertac.common |
Power TAC domain types, shared between simulation server and brokers.
|
-
Uses of Competition in org.powertac.common
Methods in org.powertac.common that return Competition Modifier and Type Method Description CompetitionCompetition. addBroker(String brokerUsername)Adds a broker to the Competition.CompetitionCompetition. addCustomer(CustomerInfo customer)Adds a customer to the Competition.static CompetitionCompetition. currentCompetition()Returns the current Competition instance.static CompetitionCompetition. newInstance(String name)CompetitionCompetition. withBootstrapDiscardedTimeslots(int count)Fluent setter for bootstrap interval.CompetitionCompetition. withBootstrapTimeslotCount(int bootstrapTimeslotCount)Fluent setter for the bootstrap timeslot count.CompetitionCompetition. withDeactivateTimeslotsAhead(int deactivateTimeslotsAhead)Fluent setter for number of timeslots, starting with the current timeslot, that are closed for trading.CompetitionCompetition. withDescription(String description)Fluent setter for competition description.CompetitionCompetition. withDownRegulationDiscount(double value)Fluent setter for overpriced down-regulation discount rate.CompetitionCompetition. withEstimatedConsumptionPremium(double value)Fluent setter for the estimated consumption price premium.CompetitionCompetition. withExpectedTimeslotCount(int expectedTimeslotCount)Fluent setter for the expected length of a normal sim session.CompetitionCompetition. withFixedTimeslotCount(Integer fixedTimeslotCount)Fluent setter for the expected length of a normal sim session.CompetitionCompetition. withLatitude(int latitude)Fluent setter for latitude valueCompetitionCompetition. withMaxDownRegulationPaymentRatio(double value)Fluent setter for the maximum down-regulation payment ratio.CompetitionCompetition. withMaxUpRegulationPaymentRatio(double value)Fluent setter for the maximum ratio between consumption price and up-regulation price for which customers will include up-regulation in tariff evaluation.CompetitionCompetition. withMinimumOrderQuantity(double minOrderQty)Fluent setter for minimum order quantity.CompetitionCompetition. withMinimumTimeslotCount(int minimumTimeslotCount)Fluent setter for minimumTimeslotCount.CompetitionCompetition. withPomId(String id)Fluent setter for Pom ID.CompetitionCompetition. withSimulationBaseTime(long baseTime)Fluent setter for simulation base time that takes a long.CompetitionCompetition. withSimulationBaseTime(String baseTime)Fluent setter for simulation base time that takes a String, interpreted as a standard DateTimeFormat as yyyy-MM-dd.CompetitionCompetition. withSimulationBaseTime(org.joda.time.Instant simulationBaseTime)Fluent setter for simulation base time.CompetitionCompetition. withSimulationModulo(long simulationModulo)Fluent setter for simulation modulo.CompetitionCompetition. withSimulationRate(long simulationRate)Fluent setter for time compression ratio.CompetitionCompetition. withSimulationTimeslotSeconds(int seconds)Fluent setter for controlling simulation rate by setting the number of wall-clock seconds per timeslot.CompetitionCompetition. withTimeslotLength(int timeslotLength)Fluent setter for timeslot length, interpreted as minutes in sim time.CompetitionCompetition. withTimeslotsOpen(int timeslotsOpen)Fluent setter for the open timeslot count.CompetitionCompetition. withTimezoneOffset(int offset)Fluent setter for timezone offsetCompetitionCompetition. withUpRegulationDiscount(double value)Fluent setter for overpriced up-regulation discount rate.Methods in org.powertac.common with parameters of type Competition Modifier and Type Method Description voidTimeService. setClockParameters(Competition comp)Sets base, rate, and modulo from a Competition instancestatic voidCompetition. setCurrent(Competition newCurrent)Makes a Competition instance be the "current" competition - this is needed in a broker when the Competition instance arrives from the server.voidCompetition. update(Competition template)Updates selected fields of this Competition from a template.