|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.repo.WeatherForecastRepo
@Repository public class WeatherForecastRepo
Repository for WeatherReports. The weather reports are indexed by the timeslot that they are issued for. This allows them to be quickly accessed via a hashMap.
| Constructor Summary | |
|---|---|
WeatherForecastRepo()
standard constructor |
|
| Method Summary | |
|---|---|
void |
add(WeatherForecast weather)
Adds a WeatherForecast to the repo |
List<WeatherForecast> |
allWeatherForecasts()
Returns a list of all the issued weather forecast up to the currentTimeslot |
int |
count()
Returns the number of WeatherForecasts that have been successfully created. |
WeatherForecast |
currentWeatherForecast()
Returns the current WeatherForecast |
void |
recycle()
Implementations must clear out the repository in preparation for a new simulation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeatherForecastRepo()
| Method Detail |
|---|
public void add(WeatherForecast weather)
public WeatherForecast currentWeatherForecast()
public List<WeatherForecast> allWeatherForecasts()
public int count()
public void recycle()
DomainRepo
recycle in interface DomainRepo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||