41 #ifndef RELOGOAGENT_H_
42 #define RELOGOAGENT_H_
44 #include "repast_hpc/Point.h"
45 #include "repast_hpc/AgentId.h"
51 class RelogoContinuousSpaceAdder;
54 template<
typename GPTransformer,
typename Adder>
66 template<
typename GPTransformer,
typename Adder>
82 _observer(observer), _location(0, 0), _id(id) {
140 virtual int pxCor()
const = 0;
147 virtual int pyCor()
const = 0;
double yCor() const
Gets the y coordinate of the agent's location.
Definition: RelogoAgent.cpp:53
double distancexy(double x, double y) const
Gets the distance from this RelogoAgent to the specified point.
Definition: RelogoAgent.cpp:61
Repast SharedContinuousSpace specialized for Relogo.
Definition: RelogoAgent.h:55
double distance(RelogoAgent *obj) const
Gets the distance from this RelogoAgent to the specified agent.
Definition: RelogoAgent.cpp:57
Base agent for Relogo.
Definition: RelogoAgent.h:60
Agent identity information.
Definition: AgentId.h:60
virtual repast::AgentId & getId()
Gets the id of this RelogoAgent.
Definition: RelogoAgent.h:93
Interface for agent classes.
Definition: AgentId.h:206
virtual const repast::AgentId & getId() const
Gets the const id of this RelogoAgent.
Definition: RelogoAgent.h:102
An "Adder" for adding RelogoAgents to RelogoSpaces.
Definition: RelogoContinuousSpaceAdder.h:54
virtual int pxCor() const =0
Gets the patch x coordinate of the agent's location.
virtual int pyCor() const =0
Gets the patch y coordinate of the agent's location.
Creates a the relogo world given some parameters.
Definition: WorldCreator.h:65
Point< double > location() const
Gets the location of this RelogoAgent.
Definition: RelogoAgent.h:111
RelogoAgent(repast::AgentId id, Observer *observer)
Creates a RelogoAgent with the specified id and managed by the specified Observer.
Definition: RelogoAgent.h:81
virtual void hatchCopy()
If this ReLogo agent is 'hatched', makes an appropriate copy, setting instance variables as appropria...
Definition: RelogoAgent.h:119
double xCor() const
Gets the x coordinate of the agent's location.
Definition: RelogoAgent.cpp:49
Implementation of a logo Observer.
Definition: Observer.h:110