fpmas 1.6
spatial_agent_mapping.h
Go to the documentation of this file.
1#ifndef FPMAS_SPATIAL_AGENT_MAPPING_H
2#define FPMAS_SPATIAL_AGENT_MAPPING_H
3
10
11namespace fpmas { namespace model {
12
32
39 };
40
48 class UniformAgentMapping : public api::model::SpatialAgentMapping<api::model::Cell> {
49 private:
50 std::unordered_map<DistributedId, std::size_t> mapping;
51
52 public:
75 api::model::AgentGroup& cell_group,
76 std::size_t agent_count
77 );
78
79 std::size_t countAt(api::model::Cell* cell) override;
80 };
81}}
82#endif
Definition: communication.h:251
Definition: model.h:547
Definition: spatial_model.h:90
Definition: spatial_model.h:656
Definition: spatial_agent_mapping.h:48
std::size_t countAt(api::model::Cell *cell) override
Definition: spatial_agent_mapping.cpp:30
UniformAgentMapping(api::communication::MpiCommunicator &comm, api::model::AgentGroup &cell_group, std::size_t agent_count)
Definition: spatial_agent_mapping.cpp:12
Definition: generator.h:113
UniformRandomBitGenerator< Generator_t >::result_type result_type
Definition: generator.h:120
Definition: fpmas.cpp:3
Definition: spatial_agent_mapping.h:27
static void seed(random::mt19937_64::result_type seed)
Definition: spatial_agent_mapping.cpp:8
static random::mt19937_64 rd
Definition: spatial_agent_mapping.h:31