Any model that will be added to a cellSpace should inherit this interface.
Public Fields
-
static const ADEVS_PORT_TYPE in[3][3][3]
-
Input grid, where this cell is at 1,1,1.
-
static const ADEVS_PORT_TYPE out
- Output on this port will be sent to all neighboring cells
-
static const ADEVS_PORT_TYPE dout[3][3][3]
- Directed output ports.
-
static const int offset_table[28][3]
- Lookup table for finding offsets from port numbers
Public Methods
-
static unsigned long get_key(int x, int y, int z, int w, int h)
-
Compute a key value for a location.
-
static void get_coord(int& x, int& y, int& z, int w, int h, int key)
-
Get the cell coordinates from a key.
Documentation
Any model that will be added to a cellSpace should inherit this interface. It provides
essential input and output ports and methods for establishing the location
of a cell within the cellspace.
static const ADEVS_PORT_TYPE in[3][3][3]
-
Input grid, where this cell is at 1,1,1. To find the input from the
cell displaced from this cell by +1 or -1, add the displacement value
to 1 to get the correct input port index. For example, the cell
at the relative position -1,-1,0 provides input on port 0,0,1.
static const ADEVS_PORT_TYPE out
- Output on this port will be sent to all neighboring cells
static const ADEVS_PORT_TYPE dout[3][3][3]
- Directed output ports. Indexing is as per the input ports.
static const int offset_table[28][3]
- Lookup table for finding offsets from port numbers
static unsigned long get_key(int x, int y, int z, int w, int h)
-
Compute a key value for a location. Arguments should be such
that 0 <= x < w and 0 <= y < h.
static void get_coord(int& x, int& y, int& z, int w, int h, int key)
-
Get the cell coordinates from a key. The coordinate is assigned
to the x, y, and z references passed to the method.
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.