public class RegionSet extends Object implements Regions
| Constructor and Description |
|---|
RegionSet() |
RegionSet(Region... regions) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegion(Region r) |
Iterable<Agent> |
getAllAgents() |
Iterable<Cell> |
getAllCells() |
Iterable<PotentialAgent> |
getAllPotentialAgents() |
Iterable<Region> |
getAllRegions() |
Extent |
getExtent() |
String |
getID() |
int |
getNumCells() |
Collection<Regions> |
getRegions() |
void |
initialise(ModelData data,
RunInfo info,
Region region)
Initialisation: Initialises regions and updates extent.
|
void |
setID(String id) |
public RegionSet()
public RegionSet(Region... regions)
regions - one or several regionspublic void initialise(ModelData data, RunInfo info, Region region) throws Exception
initialise in interface Initialisabledata - model datainfo - run informationregion - region the initialisable object belongs toExceptionInitialisable.initialise(org.volante.abm.data.ModelData,
org.volante.abm.schedule.RunInfo, org.volante.abm.data.Region)public Iterable<Region> getAllRegions()
getAllRegions in interface RegionsRegions.getAllRegions()public Iterable<Agent> getAllAgents()
getAllAgents in interface RegionsRegions.getAllAgents()public Iterable<Cell> getAllCells()
getAllCells in interface RegionsRegions.getAllCells()public Iterable<PotentialAgent> getAllPotentialAgents()
getAllPotentialAgents in interface RegionsRegions.getAllPotentialAgents()public void addRegion(Region r)
r - public Collection<Regions> getRegions()
public Extent getExtent()
getExtent in interface RegionsRegions.getExtent()public String getID()
getID in interface RegionsRegions.getID()public void setID(String id)
id - public int getNumCells()
getNumCells in interface RegionsRegions.getNumCells()