org.powertac.visualizer.services
Class WeatherInfoService
java.lang.Object
org.powertac.visualizer.services.WeatherInfoService
- All Implemented Interfaces:
- Recyclable, TimeslotCompleteActivation
@Service
public class WeatherInfoService
- extends Object
- implements TimeslotCompleteActivation, Recyclable
Service for weather-related data
- Author:
- Jurica Babic
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeatherInfoService
public WeatherInfoService()
activate
public void activate(int timeslotIndex,
org.joda.time.Instant postedTime)
- Specified by:
activate in interface TimeslotCompleteActivation
- Parameters:
timeslotIndex - index of completed timeslot.
recycle
public void recycle()
- Specified by:
recycle in interface Recyclable
getCurrentReport
public org.powertac.common.WeatherReport getCurrentReport()
setCurrentReport
public void setCurrentReport(org.powertac.common.WeatherReport currentReport)
getCurrentForecast
public org.powertac.common.WeatherForecast getCurrentForecast()
setCurrentForecast
public void setCurrentForecast(org.powertac.common.WeatherForecast currentForecast)
getReports
public ArrayList<org.powertac.common.WeatherReport> getReports()
getForecasts
public ArrayList<org.powertac.common.WeatherForecast> getForecasts()
getJson
public WeatherServiceJson getJson()
Copyright © 2012 Power TAC. All Rights Reserved.