org.powertac.visualizer.services
Class WeatherInfoService

java.lang.Object
  extended by 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

Constructor Summary
WeatherInfoService()
           
 
Method Summary
 void activate(int timeslotIndex, org.joda.time.Instant postedTime)
           
 org.powertac.common.WeatherForecast getCurrentForecast()
           
 org.powertac.common.WeatherReport getCurrentReport()
           
 ArrayList<org.powertac.common.WeatherForecast> getForecasts()
           
 WeatherServiceJson getJson()
           
 ArrayList<org.powertac.common.WeatherReport> getReports()
           
 void recycle()
           
 void setCurrentForecast(org.powertac.common.WeatherForecast currentForecast)
           
 void setCurrentReport(org.powertac.common.WeatherReport currentReport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeatherInfoService

public WeatherInfoService()
Method Detail

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.