class cell_interface

Any model that will be added to a cellSpace should inherit this interface.

Public Fields

[more]static const ADEVS_PORT_TYPE in[3][3][3]
Input grid, where this cell is at 1,1,1.
[more]static const ADEVS_PORT_TYPE out
Output on this port will be sent to all neighboring cells
[more]static const ADEVS_PORT_TYPE dout[3][3][3]
Directed output ports.
[more]static const int offset_table[28][3]
Lookup table for finding offsets from port numbers

Public Methods

[more]static unsigned long get_key(int x, int y, int z, int w, int h)
Compute a key value for a location.
[more]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.
ostatic 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.

ostatic const ADEVS_PORT_TYPE out
Output on this port will be sent to all neighboring cells

ostatic const ADEVS_PORT_TYPE dout[3][3][3]
Directed output ports. Indexing is as per the input ports.

ostatic const int offset_table[28][3]
Lookup table for finding offsets from port numbers

ostatic 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.

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