![]() |
fpmas 1.6
|
#include "dist_move_algo.h"#include "fpmas/api/model/exceptions.h"#include "../serializer.h"#include <type_traits>

Go to the source code of this file.
Namespaces | |
| namespace | fpmas |
| namespace | fpmas::model |
| namespace | fpmas::model::detail |
| namespace | nlohmann |
| namespace | fpmas::io |
| namespace | fpmas::io::json |
| namespace | fpmas::io::datapack |
Macros | |
| #define | FPMAS_MOBILITY_RANGE(RANGE) const decltype(RANGE)& mobilityRange() const override {return RANGE;} |
| #define | FPMAS_PERCEPTION_RANGE(RANGE) const decltype(RANGE)& perceptionRange() const override {return RANGE;} |
Typedefs | |
| template<typename CellType , typename TypeIdBase = CellType> | |
| using | fpmas::model::Cell = CellBase< api::model::Cell, CellType, TypeIdBase > |
Spatial models implementation.
| #define FPMAS_MOBILITY_RANGE | ( | RANGE | ) | const decltype(RANGE)& mobilityRange() const override {return RANGE;} |
Utility macro to define the fpmas::api::model::SpatialAgent::mobilityRange() method for the current agent so that it returns the specified RANGE.
This macro must be called within the class definition of a SpatialAgent.
Using this macro is not required: the mobilityRange() method can be manually defined.
| RANGE | reference to the agent mobility range. The specified range might be a class member, a static variable, or any other variable which lifetime exceeds the one of the current agent. |
| #define FPMAS_PERCEPTION_RANGE | ( | RANGE | ) | const decltype(RANGE)& perceptionRange() const override {return RANGE;} |
Utility macro to define the fpmas::api::model::SpatialAgent::perceptionRange() method for the current agent so that it returns the specified RANGE.
This macro must be called within the class definition of a SpatialAgent.
Using this macro is not required: the perceptionRange() method can be manually defined.
| RANGE | reference to the agent perception range. The specified range might be a class member, a static variable, or any other variable which lifetime exceeds the one of the current agent. |