com.e1.mxdublin
Class PyReceiver

java.lang.Object
  extended by com.e1.mxdublin.Receiver
      extended by com.e1.mxdublin.PyReceiver

public class PyReceiver
extends Receiver

Bind a 'dr' object box to a python function.


Field Summary
 boolean filterArguments
          Filter arguments to pass to the python function: if it is a bang, the function will be called with no arguments.
 
Constructor Summary
PyReceiver(String name, PyObject calle)
          Creates a receiver bond to a python function.
 
Method Summary
 void process(Atom[] args)
          Process atoms received from the inlet of the 'dr' object box.
 
Methods inherited from class com.e1.mxdublin.Receiver
dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterArguments

public boolean filterArguments
Filter arguments to pass to the python function: if it is a bang, the function will be called with no arguments. If there is only 1 atom in the list, the function will be called with the single element.

Constructor Detail

PyReceiver

public PyReceiver(String name,
                  PyObject calle)
Creates a receiver bond to a python function.

Parameters:
name - the name of the dr recevier
calle - the python function to call
Method Detail

process

public void process(Atom[] args)
Description copied from class: Receiver
Process atoms received from the inlet of the 'dr' object box.

Specified by:
process in class Receiver
Parameters:
args - the atoms received from the inlet