@Service public class WeatherInfoService extends Object implements Recyclable, TimeslotCompleteActivation
| Constructor and Description |
|---|
WeatherInfoService() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(int timeslotIndex,
org.joda.time.Instant postedTime) |
void |
addReport(org.powertac.common.WeatherReport weatherReport) |
org.powertac.common.WeatherForecast |
getCurrentForecast() |
org.powertac.common.WeatherReport |
getCurrentReport() |
ConcurrentHashMap<Integer,org.powertac.common.WeatherReport> |
getReports() |
void |
recycle() |
void |
setCurrentForecast(org.powertac.common.WeatherForecast currentForecast) |
void |
setCurrentReport(org.powertac.common.WeatherReport currentReport) |
public void recycle()
recycle in interface Recyclablepublic org.powertac.common.WeatherReport getCurrentReport()
public void setCurrentReport(org.powertac.common.WeatherReport currentReport)
public org.powertac.common.WeatherForecast getCurrentForecast()
public void setCurrentForecast(org.powertac.common.WeatherForecast currentForecast)
public ConcurrentHashMap<Integer,org.powertac.common.WeatherReport> getReports()
public void addReport(org.powertac.common.WeatherReport weatherReport)
public void activate(int timeslotIndex,
org.joda.time.Instant postedTime)
activate in interface TimeslotCompleteActivationtimeslotIndex - index of completed timeslot.Copyright © 2014 Power TAC. All Rights Reserved.