@Service public class BootstrapDataRepo extends Object implements DomainRepo
| Constructor and Description |
|---|
BootstrapDataRepo() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(List<Object> items)
Adds a list of objects to the repo.
|
void |
add(Object item)
Adds a single item to the repo.
|
Properties |
getBootState()
Returns the Properties recorded in the boot record, including various
values representing the state of the sim at the end of the boot session.
|
Competition |
getBootstrapCompetition()
Returns the Competition instances from the boot record
|
List<Object> |
getData()
Returns the entire list of objects
|
List<Object> |
getData(Class<?> type)
Returns the list of items of a particular class
|
void |
readBootRecord(URL bootUrl) |
void |
recycle()
Implementations must clear out the repository in preparation for
a new simulation.
|
public void add(Object item)
public Competition getBootstrapCompetition()
public Properties getBootState()
public void recycle()
DomainReporecycle in interface DomainRepopublic void readBootRecord(URL bootUrl)
Copyright © 2017 Power TAC. All rights reserved.