#include <adevs_cellspace.h>
Public Types | |
typedef Devs< CellEvent< X > > | Cell |
A component model in the CellSpace. | |
Public Member Functions | |
CellSpace (long int width, long int height=1, long int depth=1) | |
Create an Width x Height x Depth CellSpace with NULL model entries in the cell locations. | |
void | add (Cell *model, long int x, long int y=0, long int z=0) |
Insert a model at the x,y,z position. | |
const Cell * | getModel (long int x, long int y=0, long int z=0) const |
Get the model at location x,y,z. | |
Cell * | getModel (long int x, long int y=0, long int z=0) |
Get a mutable version of the model at x,y,z. | |
long int | getWidth () const |
Get the width of the CellSpace. | |
long int | getHeight () const |
Get the height of the CellSpace. | |
long int | getDepth () const |
Get the depth of the CellSpace. | |
void | getComponents (Set< Cell * > &c) |
void | route (const CellEvent< X > &event, Cell *model, Bag< Event< CellEvent< X > > > &r) |
~CellSpace () | |
Destructor. |