#include <config.h>
General MetaModel configuration.
◆ ModelConfig() [1/2]
ModelConfig::ModelConfig |
( |
const GraphConfig & |
graph_config | ) |
|
Builds a ModelConfig from the specified GraphConfig.
All other fields are left to their default value.
- Parameters
-
graph_config | existing environment configuration |
◆ ModelConfig() [2/2]
ModelConfig::ModelConfig |
( |
YAML::Node |
config | ) |
|
Loads the configuration from the specified YAML node.
- Parameters
-
◆ occupation_rate
float ModelConfig::occupation_rate |
Agent occupation rate. The total count of agents is set as total cell count * occupation_rate
.
◆ num_steps
fpmas::api::scheduler::TimeStep ModelConfig::num_steps |
Number of time steps to simulate.
◆ agent_interactions
Type of agent interactions.
◆ cell_interactions
Interactions ModelConfig::cell_interactions = Interactions::NONE |
Interactions between cells within the cell network. Spatial agent interactions is currently not supported, so this feature is more relevant in a pure graph model, where occupation_rate=0.
◆ dynamic_cell_edge_weights
bool ModelConfig::dynamic_cell_edge_weights = false |
If true, the weight of each edge in the cell network is incremented by the count of agents located in the cell at each iteration. This might be useful to reflect the DistributedMoveAlgorithm cost within the graph.
◆ sync_mode
SyncMode ModelConfig::sync_mode = SyncMode::GHOST_MODE |
◆ cell_size
std::size_t ModelConfig::cell_size = 0 |
Size of cells data, in bytes. This is useful to evaluate the evolution of the duration of read/write operations depending of the amount of data to transfer for each cell.
◆ agent_weight
float ModelConfig::agent_weight = 1.0f |
◆ refresh_local_contacts
fpmas::api::scheduler::TimeStep ModelConfig::refresh_local_contacts |
If agent_interactions is CONTACTS, period at which new contacts are added from the current perceptions of the agent.
- See also
- MetaAgent::create_relations_neighbors_group()
◆ refresh_distant_contacts
fpmas::api::scheduler::TimeStep ModelConfig::refresh_distant_contacts |
◆ test_cases
List of test cases for the current set up. A new model is built and simulated for each case.
The documentation for this struct was generated from the following file: