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 Recyclable, TimeslotCompleteActivation
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()
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 ConcurrentHashMap<Integer,org.powertac.common.WeatherReport> getReports()
addReport
public void addReport(org.powertac.common.WeatherReport weatherReport)
activate
public void activate(int timeslotIndex,
org.joda.time.Instant postedTime)
- Specified by:
activate in interface TimeslotCompleteActivation
- Parameters:
timeslotIndex - index of completed timeslot.
Copyright © 2013 Power TAC. All Rights Reserved.