|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.repo.WeatherReportRepo
@Repository public class WeatherReportRepo
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 | |
|---|---|
WeatherReportRepo()
standard constructor |
|
| Method Summary | |
|---|---|
void |
add(WeatherReport weather)
Adds a WeatherReport to the repo |
List<WeatherReport> |
allWeatherReports()
Returns a list of all the issued weather reports up to the currentTimeslot |
int |
count()
Returns the number of weatherReports that have been successfully added. |
WeatherReport |
currentWeatherReport()
Returns the current weatherReport |
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 WeatherReportRepo()
| Method Detail |
|---|
public void add(WeatherReport weather)
public WeatherReport currentWeatherReport()
public List<WeatherReport> allWeatherReports()
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 | |||||||||