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 Recyclable, TimeslotCompleteActivation

Service for weather-related data

Author:
Jurica Babic

Constructor Summary
WeatherInfoService()
           
 
Method Summary
 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)
           
 
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

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.