com.e1.mxdublin
Class PyReceiver
java.lang.Object
com.e1.mxdublin.Receiver
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
PyReceiver
public PyReceiver(String name,
PyObject calle)
- Creates a receiver bond to a python function.
- Parameters:
name - the name of the dr receviercalle - the python function to call
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