grc_gnuradio.blks2.selector.selector Class Reference

Inheritance diagram for grc_gnuradio.blks2.selector.selector:

Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def set_input_index
def set_output_index

Public Attributes

 input_terminators
 output_terminators
 copy
 item_size
 input_index
 output_index
 num_inputs
 num_outputs

Private Member Functions

def _indexes_valid
def _connect_current
def _disconnect_current


Detailed Description

A hier2 block with N inputs and M outputs, where data is only forwarded through input n to output m.

Definition at line 25 of file selector.py.


Member Function Documentation

def grc_gnuradio.blks2.selector.selector.__init__ (   self,
  item_size,
  num_inputs,
  num_outputs,
  input_index,
  output_index 
)

SelectorHelper constructor.

Parameters:
item_size the size of the gr data stream in bytes
num_inputs the number of inputs (integer)
num_outputs the number of outputs (integer)
input_index the index for the source data
output_index the index for the destination data

Definition at line 27 of file selector.py.

def grc_gnuradio.blks2.selector.selector._indexes_valid (   self  )  [private]

Are the input and output indexes within range of the number of inputs and outputs?

Returns:
true if input index and output index are in range

Definition at line 55 of file selector.py.

def grc_gnuradio.blks2.selector.selector._connect_current (   self  )  [private]

If the input and output indexes are valid: 
disconnect the blocks at the input and output index from their terminators, 
and connect them to one another. Then connect the terminators to one another.

Definition at line 62 of file selector.py.

def grc_gnuradio.blks2.selector.selector._disconnect_current (   self  )  [private]

If the input and output indexes are valid: 
disconnect the blocks at the input and output index from one another, 
and the terminators at the input and output index from one another.
Reconnect the blocks to the terminators.

Definition at line 74 of file selector.py.

def grc_gnuradio.blks2.selector.selector.set_input_index (   self,
  input_index 
)

Change the block to the new input index if the index changed.

Parameters:
input_index the new input index

Definition at line 88 of file selector.py.

def grc_gnuradio.blks2.selector.selector.set_output_index (   self,
  output_index 
)

Change the block to the new output index if the index changed.

Parameters:
output_index the new output index

Definition at line 100 of file selector.py.


Member Data Documentation

grc_gnuradio.blks2.selector.selector.input_terminators

Definition at line 42 of file selector.py.

grc_gnuradio.blks2.selector.selector.output_terminators

Definition at line 43 of file selector.py.

grc_gnuradio.blks2.selector.selector.copy

Definition at line 44 of file selector.py.

grc_gnuradio.blks2.selector.selector.item_size

Definition at line 48 of file selector.py.

grc_gnuradio.blks2.selector.selector.input_index

Definition at line 49 of file selector.py.

grc_gnuradio.blks2.selector.selector.output_index

Definition at line 50 of file selector.py.

grc_gnuradio.blks2.selector.selector.num_inputs

Definition at line 51 of file selector.py.

grc_gnuradio.blks2.selector.selector.num_outputs

Definition at line 52 of file selector.py.


The documentation for this class was generated from the following file:
Generated on Sat Aug 23 02:00:12 2008 for GNU Radio Companion by  doxygen 1.5.4