|
| AbstractRelogoAgent (AgentId id, Observer *observer) |
|
virtual int | pxCor () const =0 |
| Gets the patch x coordinate of the agent's location. More...
|
|
virtual int | pyCor () const =0 |
| Gets the patch y coordinate of the agent's location. More...
|
|
template<typename AgentType > |
void | inRadius (AgentSet< RelogoAgent > &inSet, double radius, AgentSet< AgentType > &outSet) const |
| Gets all the agents in the inSet within the specified radius for this RelogoAgent and put them in the outSet. More...
|
|
template<typename PatchType > |
PatchType * | patchAt (double dx, double dy) const |
| Gets the patch at direction dx, dy from the this agent. More...
|
|
template<typename AgentType > |
void | turtlesHere (AgentSet< AgentType > &set) const |
| Gets all the turtles on this turtle's patch and puts them into the specifed set. More...
|
|
template<typename AgentType > |
AgentSet< AgentType > | turtlesHere () const |
| Gets all the turtles on this turtle's patch and returns them in an AgentSet. More...
|
|
template<typename PatchType > |
PatchType * | patchAtHeadingAndDistance (float heading, double distance) |
| Gets the patch at the specified heading and distance from this patch or turtle. More...
|
|
template<typename AgentType > |
void | turtlesOn (AgentSet< AgentType > &out) const |
| Gets the turtles that are on this patch or if this is a Turtle get the turtles that are on the patch this turtle is on. More...
|
|
template<typename AgentType > |
AgentSet< AgentType > | turtlesOn () const |
| Gets the turtles that are on this patch or if this is a Turtle get the turtles that are on the patch this turtle is on. More...
|
|
| RelogoAgent (repast::AgentId id, Observer *observer) |
| Creates a RelogoAgent with the specified id and managed by the specified Observer. More...
|
|
virtual repast::AgentId & | getId () |
| Gets the id of this RelogoAgent. More...
|
|
virtual const repast::AgentId & | getId () const |
| Gets the const id of this RelogoAgent. More...
|
|
Point< double > | location () const |
| Gets the location of this RelogoAgent. More...
|
|
virtual void | hatchCopy () |
| If this ReLogo agent is 'hatched', makes an appropriate copy, setting instance variables as appropriate.
|
|
double | xCor () const |
| Gets the x coordinate of the agent's location. More...
|
|
double | yCor () const |
| Gets the y coordinate of the agent's location. More...
|
|
double | distance (RelogoAgent *obj) const |
| Gets the distance from this RelogoAgent to the specified agent. More...
|
|
double | distancexy (double x, double y) const |
| Gets the distance from this RelogoAgent to the specified point. More...
|
|
Abstract base class for turtles and patches.
This contains some methods that can apply to either.