fpmas 1.6
Public Member Functions | List of all members
fpmas::api::model::OutOfMobilityFieldException Class Reference

#include <exceptions.h>

Inheritance diagram for fpmas::api::model::OutOfMobilityFieldException:
Inheritance graph
[legend]
Collaboration diagram for fpmas::api::model::OutOfMobilityFieldException:
Collaboration graph
[legend]

Public Member Functions

 OutOfMobilityFieldException (fpmas::api::graph::DistributedId agent_id, fpmas::api::graph::DistributedId cell_id)
 
 OutOfMobilityFieldException (fpmas::api::graph::DistributedId agent_id, fpmas::api::model::DiscretePoint agent_location, fpmas::api::model::DiscretePoint cell_point)
 
- Public Member Functions inherited from fpmas::api::model::OutOfFieldException
 OutOfFieldException (const char *what)
 

Detailed Description

Exception that might be thrown when attempting to move to a Cell outside of the SpatialAgent's mobility field.

Constructor & Destructor Documentation

◆ OutOfMobilityFieldException() [1/2]

fpmas::api::model::OutOfMobilityFieldException::OutOfMobilityFieldException ( fpmas::api::graph::DistributedId  agent_id,
fpmas::api::graph::DistributedId  cell_id 
)
inline

OutOfMobilityFieldException constructor.

Parameters
agent_idid of the agent to move
cell_idid that does not correspond to any Cell in the agent's mobility field

◆ OutOfMobilityFieldException() [2/2]

fpmas::api::model::OutOfMobilityFieldException::OutOfMobilityFieldException ( fpmas::api::graph::DistributedId  agent_id,
fpmas::api::model::DiscretePoint  agent_location,
fpmas::api::model::DiscretePoint  cell_point 
)
inline

OutOfMobilityFieldException constructor adapted to GridAgents.

Parameters
agent_idid of the agent to move
agent_locationlocation of the agent
cell_pointpoint that does not correspond to any GridCell in the agent's mobility field

The documentation for this class was generated from the following file: