Base agent for Relogo.
More...
#include <RelogoAgent.h>
|
class | RelogoContinuousSpaceAdder |
|
class | WorldCreator |
|
template<typename GPTransformer , typename Adder > |
class | RelogoSharedContinuousSpace |
|
◆ RelogoAgent()
Creates a RelogoAgent with the specified id and managed by the specified Observer.
- Parameters
-
id | the id of this RelogoAgent |
observer | the observer that will manage this agent. |
◆ distance()
double repast::relogo::RelogoAgent::distance |
( |
RelogoAgent * |
obj | ) |
const |
Gets the distance from this RelogoAgent to the specified agent.
- Returns
- the distance from this RelogoAgent to the specified agent.
◆ distancexy()
double repast::relogo::RelogoAgent::distancexy |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
Gets the distance from this RelogoAgent to the specified point.
- Returns
- the distance from this RelogoAgent to the specified point.
◆ getId() [1/2]
◆ getId() [2/2]
virtual const repast::AgentId& repast::relogo::RelogoAgent::getId |
( |
| ) |
const |
|
inlinevirtual |
◆ location()
Point<double> repast::relogo::RelogoAgent::location |
( |
| ) |
const |
|
inline |
◆ pxCor()
virtual int repast::relogo::RelogoAgent::pxCor |
( |
| ) |
const |
|
pure virtual |
◆ pyCor()
virtual int repast::relogo::RelogoAgent::pyCor |
( |
| ) |
const |
|
pure virtual |
◆ xCor()
double repast::relogo::RelogoAgent::xCor |
( |
| ) |
const |
Gets the x coordinate of the agent's location.
- Returns
- the x coordinate of the agent's location.
◆ yCor()
double repast::relogo::RelogoAgent::yCor |
( |
| ) |
const |
Gets the y coordinate of the agent's location.
- Returns
- the y coordinate of the agent's location.
The documentation for this class was generated from the following files:
- /home/nick/Documents/repos/repast.hpc/src/relogo/RelogoAgent.h
- /home/nick/Documents/repos/repast.hpc/src/relogo/RelogoAgent.cpp