![]() |
fpmas 1.6
|
Classes | |
| class | Agent |
| class | AgentGroup |
| class | AgentPtr |
| class | AgentTask |
| class | Behavior |
| class | Cell |
| class | CellBehavior |
| class | CellNetworkBuilder |
| struct | DiscretePoint |
| class | DistributedMoveAlgorithm |
| class | EndCondition |
| class | GridAgent |
| class | GridAgentBase |
| class | GridCell |
| class | GridCellFactory |
| class | Model |
| class | MoveAgentGroup |
| class | OutOfFieldException |
| class | OutOfMobilityFieldException |
| class | RandomAgent |
| class | Range |
| class | SpatialAgent |
| class | SpatialAgentBehavior |
| class | SpatialAgentBuilder |
| class | SpatialAgentFactory |
| class | SpatialAgentMapping |
| class | SpatialModel |
Typedefs | |
| typedef api::graph::DistributedNode< AgentPtr > | AgentNode |
| typedef api::graph::DistributedEdge< AgentPtr > | AgentEdge |
| typedef api::graph::DistributedGraph< AgentPtr > | AgentGraph |
| typedef api::graph::SetLocalNodeEvent< AgentPtr > | SetAgentLocalEvent |
| typedef api::graph::DistributedGraph< AgentPtr >::SetLocalNodeCallback | SetAgentLocalCallback |
| typedef api::graph::SetDistantNodeEvent< AgentPtr > | SetAgentDistantEvent |
| typedef api::graph::DistributedGraph< AgentPtr >::SetDistantNodeCallback | SetAgentDistantCallback |
| typedef int | GroupId |
| typedef std::type_index | TypeId |
| typedef api::utils::PtrWrapper< api::model::Agent > | WeakAgentPtr |
| typedef std::vector< std::reference_wrapper< AgentGroup > > | GroupList |
| using | LoadBalancing = fpmas::api::graph::LoadBalancing< AgentPtr > |
| typedef long | DiscreteCoordinate |
| typedef SpatialAgentMapping< GridCell > | GridAgentMapping |
Enumerations | |
| enum | SpatialModelLayers : fpmas::api::graph::LayerId { CELL_SUCCESSOR = -1 , LOCATION = -2 , MOVE = -3 , PERCEIVE = -4 , PERCEPTION = -5 , NEW_LOCATION = -6 , NEW_MOVE = -7 , NEW_PERCEIVE = -8 } |
Functions | |
| float | euclidian_distance (const DiscretePoint &p1, const DiscretePoint &p2) |
| bool | operator< (const DiscretePoint &p1, const DiscretePoint &p2) |
| bool | operator== (const DiscretePoint &p1, const DiscretePoint &p2) |
| bool | operator!= (const DiscretePoint &p1, const DiscretePoint &p2) |
| std::ostream & | operator<< (std::ostream &os, const DiscretePoint &point) |
| bool | operator< (const GridCell &c1, const GridCell &c2) |
Agent model API namespace.
AgentNode type.
AgentEdge type.
AgentGraph type.
| typedef api::graph::DistributedGraph<AgentPtr>::SetLocalNodeCallback fpmas::api::model::SetAgentLocalCallback |
Callback API used to handle SetAgentLocalEvent instances.
| typedef api::graph::DistributedGraph<AgentPtr>::SetDistantNodeCallback fpmas::api::model::SetAgentDistantCallback |
Callback API used to handle SetAgentDistantEvent instances.
| typedef int fpmas::api::model::GroupId |
Group ID type.
| typedef std::type_index fpmas::api::model::TypeId |
Agent type ID type.
| typedef std::vector<std::reference_wrapper<AgentGroup> > fpmas::api::model::GroupList |
A type used to represent lists of AgentGroups.
| using fpmas::api::model::LoadBalancing = typedef fpmas::api::graph::LoadBalancing<AgentPtr> |
AgentPtr LoadBalancing specialization.
| typedef long fpmas::api::model::DiscreteCoordinate |
Integer coordinate type.
SpatialAgentMapping specialization for grid based models.
Predefined graph layers reserved by FPMAS to implement the DistributedMoveAlgorithm. Does not conflict with the FPMAS_DEFINE_GROUPS macro.
| float fpmas::api::model::euclidian_distance | ( | const DiscretePoint & | p1, |
| const DiscretePoint & | p2 | ||
| ) |
Computes the euclidian distance between p1 and p2.
| bool fpmas::api::model::operator< | ( | const DiscretePoint & | p1, |
| const DiscretePoint & | p2 | ||
| ) |
Default DiscretePoint comparison operator.
p1 and p2 are first compared againt the x coordinate, and compared againt the y coordinate iff p1.x == p2.x.
| bool fpmas::api::model::operator== | ( | const DiscretePoint & | p1, |
| const DiscretePoint & | p2 | ||
| ) |
Checks the equality of two DiscretePoints.
p1 and p2 are equals if and only if their two coordinates are equal.
p1 and p2 are equal | bool fpmas::api::model::operator!= | ( | const DiscretePoint & | p1, |
| const DiscretePoint & | p2 | ||
| ) |
Equivalent to !(p1==p2).
| std::ostream & fpmas::api::model::operator<< | ( | std::ostream & | os, |
| const DiscretePoint & | point | ||
| ) |
Default GridCell comparison operator.
Effectively compares GridCell::location().