fpmas-metamodel 1.0
|
#include <metamodel.h>
Public Member Functions | |
void | buildCells (const ModelConfig &config) override |
void | buildAgents (const ModelConfig &config) override |
virtual std::string | getName () const =0 |
virtual fpmas::api::model::Model & | getModel ()=0 |
virtual fpmas::api::model::AgentGroup & | cellGroup ()=0 |
virtual fpmas::api::model::AgentGroup & | agentGroup ()=0 |
virtual DotOutput & | getDotOutput ()=0 |
virtual BasicMetaModel * | init ()=0 |
virtual void | run ()=0 |
A generic MetaModel extension where Spatial Agents are moving on an arbitrary graph.
Agents randomly move to out neighbors of their location cells.
|
overridevirtual |
Builds a graph according to the specified config.environment
:
config.num_cells
nodes are built, with an average output degree of config.output_degree
.The parameter config.p
is passed to the SMALL_WORLD graph builder to determine the proportion of edges to relink in the Small-World build process.
config | Model configuration |
Implements MetaModel< SpatialModel< SyncMode, MetaGraphCell >, MetaGraphAgent >.
|
overridevirtual |
Builds GraphAgents on the spatial graph.
A total of num_cells*config.occupation_rate
agents are randomly and uniformly initialized on the spatial graph.
config | Model configuration |
Implements MetaModel< SpatialModel< SyncMode, MetaGraphCell >, MetaGraphAgent >.