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]devs* getMutableModel(int x, int y = 0, int z = 0)
Get a mutatable version of the model at x,y,z
[more]ADEVS_PORT_TYPE getPort(int x, int y = 0, int z = 0) const
Get the port number assigned to coordinate x, y, z
[more]coord_t getCoordinates(ADEVS_PORT_TYPE 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

Public Members

[more]struct coord_t
A coordinate in the cell space


Inherited from devsn:

Public Methods

ovoid initialize(ADEVS_TIME_TYPE t0)
odevsn* typeIsNetwork()


Inherited from devs:

Public Fields

obasic_sim_support_t bsim_support

Public Methods

ovirtual atomic* typeIsAtomic()
ovirtual netExec* typeIsNetExec()
oconst devsn* getParent() const
odevsn* getParent()
ovoid setParent(devsn* parent)
ostatic 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.
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 int* src)
Assigne the values in a 3 element array to the coordinates x, y, and z

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

odevs* getMutableModel(int x, int y = 0, int z = 0)
Get a mutatable version of the model at x,y,z

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

ocoord_t getCoordinates(ADEVS_PORT_TYPE 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


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.