class cellSpace

A 3D cellspace.

Inheritance:


Public Fields

[more]static const int SIX_POINT
Flag indicating a six point neighborhood
[more]static const int TWENTY_SIX_POINT
Flag indicating a twenty six point neighborhood

Public Methods

[more] cellSpace()
Creates a 0x0x0 cellspace
[more] cellSpace(const cellSpace& src)
Copy constructor
[more]const cellSpace& operator=(const cellSpace& src)
Assignment operator
[more] 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
[more]void add(devs* model, int x, int y = 0, int z = 0)
Insert a model at the x,y,z position
[more]netExec* getNetExec()
Get the network executive for this coupled model
[more]const devs* getModel(int x, int y = 0, int z = 0) const
Get the model at location x,y,z
[more]port_t getPort(int x, int y = 0, int z = 0) const
Get the port number assigned to edge coordinate x, y, z
[more]coord_t getCoordinates(port_t port) const
Get the coordinate assigned to a port
[more]int getWidth() const
Get the width of the cellspace
[more]int getHeight() const
Get the height of the cellspace
[more]int getDepth() const
Get the depth of the cellspace
[more] ~cellSpace()
Destructor
[more]object* clone() const
Returns a copy of this cellSpace
[more]int getDistance(devs* model)
Get a distance number for a cell, used with the cellsim simulator

Public Members

[more]struct coord_t
A coordinate in the cell space


Inherited from devsn:

Public Methods

ovoid init()


Inherited from devs:

Public Methods

oADEVS_TIME_TYPE timeCurrent() const
oADEVS_TIME_TYPE timeLast() const
oADEVS_TIME_TYPE timeNext() const
oADEVS_TIME_TYPE elapsed() const
oADEVS_TIME_TYPE sigma() const
oADEVS_TIME_TYPE ta() const
ovoid hold(ADEVS_TIME_TYPE dt)
ovoid passivate()
ovoid setTimeCurrent(ADEVS_TIME_TYPE T)
ovoid setTimeLast(ADEVS_TIME_TYPE T)
ovoid setTimeNext(ADEVS_TIME_TYPE T)
oType getType() const
obasic_sim* getAttachedSimulator()
ovoid setAttachedSimulator(basic_sim* sim)

Public Members

otypedef 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.
ostruct coord_t
A coordinate in the cell space

oint x
Coordinate x, y, and z values

oint y

oint z

o coord_t(int x = 0, int y = 0, int z = 0)
Default constructor

o coord_t(const coord_t& src)
Copy constructor

oconst coord_t& operator=(const coord_t& src)
Assignment operator

ostatic const int SIX_POINT
Flag indicating a six point neighborhood

ostatic const int TWENTY_SIX_POINT
Flag indicating a twenty six point neighborhood

o cellSpace()
Creates a 0x0x0 cellspace

o cellSpace(const cellSpace& src)
Copy constructor

oconst cellSpace& operator=(const cellSpace& src)
Assignment operator

o 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

ovoid add(devs* model, int x, int y = 0, int z = 0)
Insert a model at the x,y,z position

onetExec* getNetExec()
Get the network executive for this coupled model

oconst devs* getModel(int x, int y = 0, int z = 0) const
Get the model at location x,y,z

oport_t getPort(int x, int y = 0, int z = 0) const
Get the port number assigned to edge coordinate x, y, z

ocoord_t getCoordinates(port_t port) const
Get the coordinate assigned to a port

oint getWidth() const
Get the width of the cellspace

oint getHeight() const
Get the height of the cellspace

oint getDepth() const
Get the depth of the cellspace

o ~cellSpace()
Destructor

oobject* clone() const
Returns a copy of this cellSpace

oint 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++.