|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.e1.mxdublin.core.SeqEvent
com.e1.mxdublin.evlist.EvAbstractItem
com.e1.mxdublin.evlist.EvSender
public class EvSender
Event that will send atoms to the specified receiver.
<atom value>: event content
The ! sign can be used to specify a bang
Example usage:
evlist.add(1, new EvSender("! @sender courge")); // sends a bang
evlist.add("2:5", new EvSender("36 @sender note"));
| Field Summary | |
|---|---|
Atom[] |
arg
|
protected static Atom |
BANG
|
Sender |
sender
|
| Fields inherited from class com.e1.mxdublin.evlist.EvAbstractItem |
|---|
gp, len_tm |
| Fields inherited from class com.e1.mxdublin.core.SeqEvent |
|---|
mandatory |
| Constructor Summary | |
|---|---|
EvSender(String arg)
|
|
EvSender(String arg,
GroupProperties props)
|
|
| Method Summary | |
|---|---|
void |
appendDefinedProperties(StringBuffer sb)
Appends the string representation of the defined properties. |
Object |
clone()
Clone the abstract event. |
String |
getValue()
Returns event representation in string format. |
boolean |
isLike(EvAbstractItem comp)
Returns true if the content of this event is the same than event item 'comp'. |
void |
play()
Sends the atom to currently assigned sender. |
boolean |
setProperty(String name,
String value)
Set property. |
void |
setValue(String v)
Sets event definition using a string. |
| Methods inherited from class com.e1.mxdublin.evlist.EvAbstractItem |
|---|
bang, cancel, compareTo, equals, fromXML, getGroupProperties, getTm, isSameGroupProperties, loadElement, repr, run, setProperties, setTm, setTm, stop, toString, toXML |
| Methods inherited from class com.e1.mxdublin.core.SeqEvent |
|---|
eventDebug |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Atom[] arg
public Sender sender
protected static Atom BANG
| Constructor Detail |
|---|
public EvSender(String arg)
public EvSender(String arg,
GroupProperties props)
| Method Detail |
|---|
public void play()
play in class EvAbstractItempublic void setValue(String v)
EvAbstractItem
setValue in class EvAbstractItemv - String valuepublic String getValue()
EvAbstractItem
getValue in class EvAbstractItempublic void appendDefinedProperties(StringBuffer sb)
EvAbstractItem
appendDefinedProperties in class EvAbstractItemsb - the StringBuffer to append the properties values
public boolean setProperty(String name,
String value)
EvAbstractItem
setProperty in class EvAbstractItemname - property namevalue - property value
public boolean isLike(EvAbstractItem comp)
EvAbstractItem
isLike in class EvAbstractItemcomp - the event item to compare
public Object clone()
EvAbstractItem
clone in class EvAbstractItemObject.clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||