Package org.powertac.common
Class WeatherReport
java.lang.Object
org.powertac.common.WeatherReport
@Domain(fields={"timeslot","temperature","windSpeed","windDirection","cloudCover"}) public class WeatherReport extends Object
A weather report instance that describes the weather data for one hour of the
simulation
- Version:
- 1.0 - 03/May/2011
- Author:
- Erik Onarheim, Josh Edeen
-
Constructor Summary
Constructors Constructor Description WeatherReport(int timeslot, double temperature, double windSpeed, double windDirection, double cloudCover)WeatherReport(Timeslot timeslot, double temperature, double windSpeed, double windDirection, double cloudCover)Deprecated. -
Method Summary
Modifier and Type Method Description doublegetCloudCover()TimeslotgetCurrentTimeslot()Deprecated.longgetId()doublegetTemperature()intgetTimeslotIndex()doublegetWindDirection()doublegetWindSpeed()
-
Constructor Details
-
WeatherReport
public WeatherReport(int timeslot, double temperature, double windSpeed, double windDirection, double cloudCover) -
WeatherReport
@Deprecated @ChainedConstructor public WeatherReport(Timeslot timeslot, double temperature, double windSpeed, double windDirection, double cloudCover)Deprecated.Constructor that uses timeslot is deprecated
-
-
Method Details
-
getId
public long getId() -
getTimeslotIndex
public int getTimeslotIndex() -
getCurrentTimeslot
Deprecated. -
getTemperature
public double getTemperature() -
getWindSpeed
public double getWindSpeed() -
getWindDirection
public double getWindDirection() -
getCloudCover
public double getCloudCover()
-