![]() |
fpmas 1.6
|
#include <spatial_model.h>
Static Public Attributes | |
static const api::model::GroupId | TEMP_GROUP_ID = -2 |
Protected Member Functions | |
void | build_agents (api::model::SpatialModel< CellType > &model, api::model::GroupList groups, api::model::SpatialAgentFactory< CellType > &factory, api::model::SpatialAgentMapping< MappingCellType > &agent_mapping) |
void | build_agents (api::model::SpatialModel< CellType > &model, api::model::GroupList groups, std::function< api::model::SpatialAgent< CellType > *()> factory, api::model::SpatialAgentMapping< MappingCellType > &agent_mapping) |
Additional Inherited Members | |
![]() | |
virtual void | build (SpatialModel< CellType > &model, GroupList groups, SpatialAgentFactory< CellType > &factory, SpatialAgentMapping< MappingCellType > &agent_mapping)=0 |
virtual void | build (SpatialModel< CellType > &model, GroupList groups, std::function< SpatialAgent< CellType > *()> factory, SpatialAgentMapping< MappingCellType > &agent_mapping)=0 |
Base implementation of an api::model::SpatialAgentBuilder.
The build_agents() methods implements the generic agent creation process.
Extensions must finalize the api::model::SpatialAgentBuilder implementation by implementing the build() methods, eventually using the provided build_agents() methods and adding model specific behaviors.
|
protected |
|
protected |
Same as build_agents(api::model::SpatialModel<CellType>&, api::model::GroupList, api::model::SpatialAgentFactory<CellType>&, api::model::SpatialAgentMapping<MappingCellType>&) but build agents using calls to factory()
.
|
static |
FPMAS reserved group id used by the SpatialAgentBuilder temporary group used to build() agents.