A 3D cellspace.
Inheritance:
Public Fields
-
static const int SIX_POINT
- Flag indicating a six point neighborhood
-
static const int TWENTY_SIX_POINT
- Flag indicating a twenty six point neighborhood
Public Methods
-
cellSpace()
- Creates a 0x0x0 cellspace
-
cellSpace(const cellSpace& src)
- Copy constructor
-
const cellSpace& operator=(const cellSpace& src)
- Assignment operator
-
cellSpace(int type, int width, int height = 1, int depth = 1)
- Create an W x H x D cellspace with NULL model entries in the cells
-
void add(devs* model, int x, int y = 0, int z = 0)
- Insert a model at the x,y,z position
-
netExec* getNetExec()
- Get the network executive for this coupled model
-
const devs* getModel(int x, int y = 0, int z = 0) const
- Get the model at location x,y,z
-
devs* getMutableModel(int x, int y = 0, int z = 0)
- Get a mutatable version of the model at x,y,z
-
ADEVS_PORT_TYPE getPort(int x, int y = 0, int z = 0) const
- Get the port number assigned to coordinate x, y, z
-
coord_t getCoordinates(ADEVS_PORT_TYPE port) const
- Get the coordinate assigned to a port
-
int getWidth() const
- Get the width of the cellspace
-
int getHeight() const
- Get the height of the cellspace
-
int getDepth() const
- Get the depth of the cellspace
-
~cellSpace()
- Destructor
-
object* clone() const
- Returns a copy of this cellSpace
Public Members
-
struct coord_t
- A coordinate in the cell space
Inherited from devsn:
Public Methods
-
void initialize(ADEVS_TIME_TYPE t0)
-
devsn* typeIsNetwork()
Inherited from devs:
Public Fields
-
basic_sim_support_t bsim_support
Public Methods
-
virtual atomic* typeIsAtomic()
-
virtual netExec* typeIsNetExec()
-
const devsn* getParent() const
-
devsn* getParent()
-
void setParent(devsn* parent)
-
static void prefer_thread(int thread_id)
Inherited from object:
Documentation
A 3D cellspace. This class is meant to be useful for solving PDEs, simulating
next event cellspaces, and other types of models represented as spaces of discrete
interacting points. It can support a six point (Von Neuman) or 26 point (Moore)
neighborhood.
struct coord_t
- A coordinate in the cell space
int x
- Coordinate x, y, and z values
int y
int z
coord_t(int x = 0, int y = 0, int z = 0)
- Default constructor
coord_t(const int* src)
- Assigne the values in a 3 element array to the coordinates x, y, and z
coord_t(const coord_t& src)
- Copy constructor
const coord_t& operator=(const coord_t& src)
- Assignment operator
static const int SIX_POINT
- Flag indicating a six point neighborhood
static const int TWENTY_SIX_POINT
- Flag indicating a twenty six point neighborhood
cellSpace()
- Creates a 0x0x0 cellspace
cellSpace(const cellSpace& src)
- Copy constructor
const cellSpace& operator=(const cellSpace& src)
- Assignment operator
cellSpace(int type, int width, int height = 1, int depth = 1)
- Create an W x H x D cellspace with NULL model entries in the cells
void add(devs* model, int x, int y = 0, int z = 0)
- Insert a model at the x,y,z position
netExec* getNetExec()
- Get the network executive for this coupled model
const devs* getModel(int x, int y = 0, int z = 0) const
- Get the model at location x,y,z
devs* getMutableModel(int x, int y = 0, int z = 0)
- Get a mutatable version of the model at x,y,z
ADEVS_PORT_TYPE getPort(int x, int y = 0, int z = 0) const
- Get the port number assigned to coordinate x, y, z
coord_t getCoordinates(ADEVS_PORT_TYPE port) const
- Get the coordinate assigned to a port
int getWidth() const
- Get the width of the cellspace
int getHeight() const
- Get the height of the cellspace
int getDepth() const
- Get the depth of the cellspace
~cellSpace()
- Destructor
object* clone() const
- Returns a copy of this cellSpace
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.