input object is the input of a BRAHMS Python Process. The object passed in is constructed anew by the bindings before every call.
- On the first event called, EVENT_MODULE_INIT, only the fields
event is present (this is because time and the input/output interfaces are not yet instantiated).
- Analogous to the
Event object passed to a native BRAHMS process. Sub-fields
flags are as in
- Component Time, converted to a Python representation.
- The process input interface, converted to a Python representation. In particular, any available data on the input interface are present in this field. The field has a sub-field for each input set,
<set name>, described below. The sub-field
default will always be present, representing the Default Set. If you don't use Sets, it is in this latter field that you will find all of your input ports.
- iif.<set name>
- The set structure has two sub-fields,
ports, described below.
- iif.<set name>.ports
- Input ports are available in this
1xN struct object, in the order they sit in the set. Each entry is a structure having sub-fields for the
structure and content (
data) on the port.
- iif.<set name>.index
- It is possible to find named inputs by walking through the
ports field, and checking the
name of each port. This supplementary field provides an associative index to make it easier to find named ports (see the example below).
Py Source Code (against 1262)
. . .
['event' ] ['type' ] = = EVENT_INIT_CONNECT :
. . .
['event' ] ['flags' ] &
['iif' ] ['default' ] ['index' ] ['in' ]
['in' ] =
['iif' ] ['default' ] ['ports' ] [
. . .
['event' ] ['type' ] = = EVENT_RUN_SERVICE :
['in' ] ['data' ]
. . .