41 #ifndef WORLDDEFINITION_H_
42 #define WORLDDEFINITION_H_
45 #include "RelogoAgent.h"
46 #include "RelogoLink.h"
48 #include "repast_hpc/SharedNetwork.h"
55 class RelogoGridAdder;
56 class RelogoSpaceAdder;
68 std::vector<Projection<RelogoAgent>*> networks;
76 typedef std::vector<Projection<RelogoAgent>*>::const_iterator
proj_iter;
119 return networks.begin();
128 return networks.end();
const Point< double > & extents() const
Gets the extents along each dimension.
Definition: GridDimensions.h:90
int buffer() const
Gets the size of the grid / space buffer.
Definition: WorldDefinition.h:191
bool isWrapped() const
Gets whether or not the world wraps.
Definition: WorldDefinition.h:182
void defineNetwork(std::string name, bool directed, RelogoLinkContentManager *rlcm)
Defines a network with the specified name and whether or not the network is directed.
Definition: WorldDefinition.cpp:61
int maxX() const
Gets the maximum x coordinate of the world.
Definition: WorldDefinition.h:154
const GridDimensions dimensions() const
Gets the dimensions of the world expressed as a GridDimensions.
Definition: WorldDefinition.h:172
const Point< double > & origin() const
Gets the origin.
Definition: GridDimensions.h:83
proj_iter networks_end() const
Gets the end of an iterator over the network Projections defined in this WorldDefinition.
Definition: WorldDefinition.h:127
Subclass of RepastEdgeContentManager, used to package and rebuild edges during synchronization.
Definition: RelogoLink.h:130
proj_iter networks_begin() const
Gets the start of an iterator over the network Projections defined in this WorldDefinition.
Definition: WorldDefinition.h:118
Basic structure for specifying grid dimenions.
Definition: GridDimensions.h:58
int maxY() const
Gets the maximum y coordinate of the world.
Definition: WorldDefinition.h:163
WorldDefinition(int minX, int minY, int maxX, int maxY, bool wrapped, int buffer)
Creates a world definition with the specified parameters.
Definition: WorldDefinition.cpp:53
int minX() const
Gets the minimum x coordinate of the world.
Definition: WorldDefinition.h:136
Defines a Relogo world.
Definition: WorldDefinition.h:61
std::vector< Projection< RelogoAgent > * >::const_iterator proj_iter
An iterator over pointers to Projection<RelogoAgent>.
Definition: WorldDefinition.h:76
int minY() const
Gets the minimum y coordinate of the world.
Definition: WorldDefinition.h:145