|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.e1.mxdublin.Sender
public class Sender
Class that acts like MaxObject Sender 's'. The send/sendto message will send the atom to a PD/Max receiver. The factory can be used to always return the same instance based upon name.
| Field Summary | |
|---|---|
protected String |
name
The sender name. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
static Sender |
factory(String name)
Return same sender based on name. |
String |
getName()
Returns sender name. |
void |
rename(String newName)
Rename the sender and will update the factory reference. |
boolean |
send()
Sends 'bang' to the receiver |
boolean |
send(Atom atom)
Sends the atom with specified value to the receiver. |
boolean |
send(Atom[] list)
Sends 'list' with specified value to the receiver. |
boolean |
send(PyObject pyobj)
Sends a 'list' from python value. |
boolean |
send(String msg,
Atom[] args)
Sends a message with specified value to the receiver |
static boolean |
sendto(String obj)
Sends 'bang' to the receiver. |
static boolean |
sendto(String obj,
Atom event)
Sends a atom the to receiver. |
static boolean |
sendto(String obj,
float i)
Sends 'float' with specified value to the receiver. |
static boolean |
sendto(String obj,
int i)
Sends 'int' with specified value to the receiver. |
static boolean |
sendto(String obj,
String msg)
Sends a message to the receiver. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String name
| Method Detail |
|---|
public boolean send()
public boolean send(Atom atom)
atom - the atom value
public boolean send(Atom[] list)
list - the list of atom to send
public boolean send(String msg,
Atom[] args)
msg - the message to sendargs - arguments to the message
public boolean send(PyObject pyobj)
pyobj - python value
public static boolean sendto(String obj)
obj - the receiver name
public static boolean sendto(String obj,
int i)
obj - the receiver namei - the integer value to send
public static boolean sendto(String obj,
float i)
i - the float value to send
public static boolean sendto(String obj,
String msg)
obj - the receiver namemsg - message to send
public static boolean sendto(String obj,
Atom event)
obj - the receiver nameevent - the atom to sendpublic String getName()
public void rename(String newName)
newName - the new destination name of the senderpublic static Sender factory(String name)
name - the name of the sender
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||