com.e1.mxdublin
Class Receiver
java.lang.Object
com.e1.mxdublin.Receiver
- Direct Known Subclasses:
- PyReceiver
public abstract class Receiver
- extends Object
Process data that the user has sended to the 'dr' object box. Only one
receiver can be bind to a 'dr' object. To use a 'dr' object, you need
to create a pdj/mxj object with the name of the receiver [pdj dr
]. Afterwards, you need to create a Java object (extends
Receiver) that listen to this pd/max object. All the message will
be forwarded to the process method.
|
Constructor Summary |
Receiver(String name)
Creates the receiver and bind to this name. |
|
Method Summary |
void |
dispose()
Stop processing messages; this will unbind the name with the
receiver. |
abstract 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 |
Receiver
public Receiver(String name)
- Creates the receiver and bind to this name.
- Parameters:
name - the name to bind with the dr object
process
public abstract void process(Atom[] args)
- Process atoms received from the inlet of the 'dr' object box.
- Parameters:
args - the atoms received from the inlet
dispose
public void dispose()
- Stop processing messages; this will unbind the name with the
receiver.