Uses of Class
org.powertac.common.Timeslot
-
Packages that use Timeslot Package Description org.powertac.common Power TAC domain types, shared between simulation server and brokers.org.powertac.common.interfaces org.powertac.common.repo Repositories that need to exist in both the Power TAC simulation server and in brokers. -
-
Uses of Timeslot in org.powertac.common
Methods in org.powertac.common that return Timeslot Modifier and Type Method Description TimeslotWeatherForecast. getCurrentTimeslot()Deprecated.TimeslotWeatherReport. getCurrentTimeslot()Deprecated.TimeslotBrokerTransaction. getPostedTimeslot()Timeslot when transaction was postedTimeslotClearedTrade. getTimeslot()TimeslotMarketPosition. getTimeslot()TimeslotMarketTransaction. getTimeslot()TimeslotOrder. getTimeslot()TimeslotOrderbook. getTimeslot()TimeslotWeatherForecast. getTimeslot()Deprecated.Methods in org.powertac.common with parameters of type Timeslot Modifier and Type Method Description BrokerBroker. addMarketPosition(MarketPosition posn, Timeslot slot)Deprecated.MarketPositionBroker. findMarketPositionByTimeslot(Timeslot slot)Deprecated.MarketTransactionTransactionFactory. makeMarketTransaction(Broker broker, Timeslot timeslot, double mWh, double price)Constructors in org.powertac.common with parameters of type Timeslot Constructor Description ClearedTrade(Timeslot timeslot, double executionMWh, double executionPrice, org.joda.time.Instant dateExecuted)MarketPosition(Broker broker, Timeslot timeslot, double balance)MarketTransaction(Broker broker, int when, Timeslot timeslot, double mWh, double price)Order(Broker broker, Timeslot timeslot, double mWh, Double limitPrice)Deprecated.Orderbook(Timeslot timeslot, Double clearingPrice, org.joda.time.Instant dateExecuted)WeatherForecast(Timeslot timeslot, List<WeatherForecastPrediction> predictions)Deprecated.WeatherReport(Timeslot timeslot, double temperature, double windSpeed, double windDirection, double cloudCover)Deprecated. -
Uses of Timeslot in org.powertac.common.interfaces
Methods in org.powertac.common.interfaces with parameters of type Timeslot Modifier and Type Method Description 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.List<WeatherReport>PhysicalEnvironment. generateWeatherData(Timeslot currentTimeslot, List<Timeslot> targetTimeslots)Generates and returns weather forecasts for every enabled timeslot The physical environment module is responsible for computing weather forecasts for each entry intargetTimeslotsfrom the perspective of thecurrentTimeslot.Method parameters in org.powertac.common.interfaces with type arguments of type Timeslot Modifier and Type Method Description List<WeatherReport>PhysicalEnvironment. generateWeatherData(Timeslot currentTimeslot, List<Timeslot> targetTimeslots)Generates and returns weather forecasts for every enabled timeslot The physical environment module is responsible for computing weather forecasts for each entry intargetTimeslotsfrom the perspective of thecurrentTimeslot. -
Uses of Timeslot in org.powertac.common.repo
Methods in org.powertac.common.repo that return Timeslot Modifier and Type Method Description TimeslotTimeslotRepo. currentTimeslot()Returns the timeslot for the current time.TimeslotTimeslotRepo. findByInstant(org.joda.time.Instant time)Returns the timeslot (if any) corresponding to a particular Instant.TimeslotTimeslotRepo. findBySerialNumber(int serialNumber)Returns the timeslot with the given serial number.TimeslotTimeslotRepo. findOrCreateBySerialNumber(int serialNumber)Returns the timeslot with the given serial number.TimeslotTimeslotRepo. getNext(Timeslot slot)Returns the following timeslot.TimeslotTimeslotRepo. makeTimeslot(org.joda.time.Instant startTime)Creates a timeslot with the given start time.Methods in org.powertac.common.repo that return types with arguments of type Timeslot Modifier and Type Method Description List<Timeslot>TimeslotRepo. enabledTimeslots()Returns the list of enabled timeslots, starting with the first by serial number.Methods in org.powertac.common.repo with parameters of type Timeslot Modifier and Type Method Description voidTimeslotRepo. add(Timeslot timeslot)Adds a timeslot that already exists.List<Orderbook>OrderbookRepo. findAllByTimeslot(Timeslot timeslot)OrderbookOrderbookRepo. findByTimeslot(Timeslot timeslot)Returns the most recent Orderbook that has been created for the specified timeslot.OrderbookOrderbookRepo. findSpotByTimeslot(Timeslot timeslot)Returns the most recent orderbook with a non-null clearing price.TimeslotTimeslotRepo. getNext(Timeslot slot)Returns the following timeslot.booleanTimeslotRepo. isTimeslotEnabled(Timeslot ts)True just in case the specified timeslot is enabled.OrderbookOrderbookRepo. makeOrderbook(Timeslot timeslot, Double clearingPrice)Creates a new Orderbook, with standard defaults (productType = Future, dateExecuted = now).
-