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
-
port_t getPort(int x, int y = 0, int z = 0) const
- Get the port number assigned to edge coordinate x, y, z
-
coord_t getCoordinates(port_t 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
-
int getDistance(devs* model)
- Get a distance number for a cell, used with the cellsim simulator
Public Members
-
struct coord_t
- A coordinate in the cell space
Inherited from devsn:
Public Methods
-
void init()
Inherited from devs:
Public Methods
-
ADEVS_TIME_TYPE timeCurrent() const
-
ADEVS_TIME_TYPE timeLast() const
-
ADEVS_TIME_TYPE timeNext() const
-
ADEVS_TIME_TYPE elapsed() const
-
ADEVS_TIME_TYPE sigma() const
-
ADEVS_TIME_TYPE ta() const
-
void hold(ADEVS_TIME_TYPE dt)
-
void passivate()
-
void setTimeCurrent(ADEVS_TIME_TYPE T)
-
void setTimeLast(ADEVS_TIME_TYPE T)
-
void setTimeNext(ADEVS_TIME_TYPE T)
-
Type getType() const
-
basic_sim* getAttachedSimulator()
-
void setAttachedSimulator(basic_sim* sim)
Public Members
-
typedef enum Enumeration of possible model types
Inherited from object:
Documentation
A 3D cellspace. This class is meant to be useful for solving PDEs, simulating
next event cells, 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 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
port_t getPort(int x, int y = 0, int z = 0) const
- Get the port number assigned to edge coordinate x, y, z
coord_t getCoordinates(port_t 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
int getDistance(devs* model)
- Get a distance number for a cell, used with the cellsim simulator
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.