template<class X> class adevs::CellSpace

This class describes a 3D cell space whose components accept and produce CellEvent objects This class is meant to be useful for solving PDEs, simulating next event cell spaces, and other types of models represented as a space of discrete interacting points.

Inheritance:


Public Methods

[more] 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
[more]void add(Cell* model, long int x, long int y = 0, long int z = 0)
Insert a model at the x,y,z position
[more]const Cell* getModel(long int x, long int y = 0, long int z = 0) const
Get the model at location x,y,z
[more]Cell* getModel(long int x, long int y = 0, long int z = 0)
Get a mutable version of the model at x,y,z
[more]long int getWidth() const
Get the width of the CellSpace
[more]long int getHeight() const
Get the height of the CellSpace
[more]long int getDepth() const
Get the depth of the CellSpace
[more]void getComponents(Set<Cell*>& c)
[more]void route(const CellEvent<X>& event, Cell* model, Bag<Event<CellEvent<X> > >& r)
[more] ~CellSpace()
Destructor

Public Members

[more]typedef Devs<CellEvent<X> > Cell
A component model in the CellSpace


Inherited from Network:

Public Methods

oNetwork<X> * typeIsNetwork()


Inherited from Devs:

Public Methods

ovirtual Atomic<X> * typeIsAtomic()
oconst Network<X> * getParent() const
oNetwork<X> * getParent()
ovoid setParent(Network<X>* parent)
ovirtual bool model_transition()


Documentation

This class describes a 3D cell space whose components accept and produce CellEvent objects This class is meant to be useful for solving PDEs, simulating next event cell spaces, and other types of models represented as a space of discrete interacting points. Output events produced by component models must be of type CellEvent. The CellEvent (x,y,z) coordinate indicates the target cell for the event. The corresponding input event will have the same (x,y,z) value as the output event. Targets that are outside of the CellSpace will become external output events for the CellSpace model. Similarly, CellEvent objects that are injected into the CellSpace (i.e., external input events) will be delivered the appropriate target cell.
otypedef Devs<CellEvent<X> > Cell
A component model in the CellSpace

o 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

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

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

oCell* getModel(long int x, long int y = 0, long int z = 0)
Get a mutable version of the model at x,y,z

olong int getWidth() const
Get the width of the CellSpace

olong int getHeight() const
Get the height of the CellSpace

olong int getDepth() const
Get the depth of the CellSpace

ovoid getComponents(Set<Cell*>& c)

ovoid route(const CellEvent<X>& event, Cell* model, Bag<Event<CellEvent<X> > >& r)

o ~CellSpace()
Destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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