@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(WeatherReport weatherReport) |
WeatherForecast |
getCurrentForecast() |
WeatherReport |
getCurrentReport() |
ConcurrentHashMap<Integer,WeatherReport> |
getReports() |
void |
recycle() |
void |
setCurrentForecast(WeatherForecast currentForecast) |
void |
setCurrentReport(WeatherReport currentReport) |
public void recycle()
recycle in interface Recyclablepublic WeatherReport getCurrentReport()
public void setCurrentReport(WeatherReport currentReport)
public WeatherForecast getCurrentForecast()
public void setCurrentForecast(WeatherForecast currentForecast)
public ConcurrentHashMap<Integer,WeatherReport> getReports()
public void addReport(WeatherReport weatherReport)
public void activate(int timeslotIndex,
org.joda.time.Instant postedTime)
activate in interface TimeslotCompleteActivationtimeslotIndex - index of completed timeslot.Copyright © 2017 Power TAC. All rights reserved.