Defines a Relogo world.
More...
#include <WorldDefinition.h>
◆ WorldDefinition()
repast::relogo::WorldDefinition::WorldDefinition |
( |
int |
minX, |
|
|
int |
minY, |
|
|
int |
maxX, |
|
|
int |
maxY, |
|
|
bool |
wrapped, |
|
|
int |
buffer |
|
) |
| |
Creates a world definition with the specified parameters.
These parameter will be applied when the world is created using a WorldCreator.
- Parameters
-
minX | the minimum x coordinate of the world |
minY | the minimum y coordinate of the world |
maxX | the maximum x coordinate of the world |
maxY | the maximum y coordinate of the world |
wrapped | whether or not the space is periodic, wrapped as a torus |
buffer | the size of the grid and space buffer between process grid and space representations |
◆ buffer()
int repast::relogo::WorldDefinition::buffer |
( |
| ) |
const |
|
inline |
Gets the size of the grid / space buffer.
- Returns
- the size of the grid / space buffer.
◆ defineNetwork() [1/2]
Defines the default network and whether or not the network is directed.
Any network related calls that don't specify a name will use this network. The network will use RelogoEdge-s by default
- Parameters
-
directed | if true, the network will be directed, otherwise it will be undirected |
◆ defineNetwork() [2/2]
void repast::relogo::WorldDefinition::defineNetwork |
( |
std::string |
name, |
|
|
bool |
directed, |
|
|
RelogoLinkContentManager * |
rlcm |
|
) |
| |
Defines a network with the specified name and whether or not the network is directed.
The network will use the default RelogoEdge.
- Parameters
-
name | the name of the network |
directed | if true, the network will be directed, otherwise it will be undirected |
◆ dimensions()
const GridDimensions repast::relogo::WorldDefinition::dimensions |
( |
| ) |
const |
|
inline |
◆ isWrapped()
bool repast::relogo::WorldDefinition::isWrapped |
( |
| ) |
const |
|
inline |
Gets whether or not the world wraps.
- Returns
- true if the world wraps, otherwise false.
◆ maxX()
int repast::relogo::WorldDefinition::maxX |
( |
| ) |
const |
|
inline |
Gets the maximum x coordinate of the world.
- Returns
- the maximum x coordinate of the world.
◆ maxY()
int repast::relogo::WorldDefinition::maxY |
( |
| ) |
const |
|
inline |
Gets the maximum y coordinate of the world.
- Returns
- the maximum y coordinate of the world.
◆ minX()
int repast::relogo::WorldDefinition::minX |
( |
| ) |
const |
|
inline |
Gets the minimum x coordinate of the world.
- Returns
- the minimum x coordinate of the world.
◆ minY()
int repast::relogo::WorldDefinition::minY |
( |
| ) |
const |
|
inline |
Gets the minimum y coordinate of the world.
- Returns
- the minimum y coordinate of the world.
◆ networks_begin()
proj_iter repast::relogo::WorldDefinition::networks_begin |
( |
| ) |
const |
|
inline |
◆ networks_end()
proj_iter repast::relogo::WorldDefinition::networks_end |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
- /home/nick/Documents/repos/repast.hpc/src/relogo/WorldDefinition.h
- /home/nick/Documents/repos/repast.hpc/src/relogo/WorldDefinition.cpp