visad
Class MessageEvent
- java.lang.Object
-
- visad.MessageEvent
-
public class MessageEvent extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description static intID_GENERIC
-
Constructor Summary
Constructors Constructor and Description MessageEvent(int id)Create a message event with the given IDMessageEvent(int id, int originator, java.lang.String str, RemoteData data)Create a message event with the given IDs, string and dataMessageEvent(int id, RemoteData data)Create a message event with the given ID and dataMessageEvent(int id, java.lang.String str)Create a message event with the given ID and stringMessageEvent(int id, java.lang.String str, RemoteData data)Create a message event with the given ID, string and dataMessageEvent(RemoteData data)Create a message event with the given dataMessageEvent(java.lang.String str)Create a message event with the given stringMessageEvent(java.lang.String str, RemoteData data)Create a message event with the given string and data
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RemoteDatagetData()Get the data associated with this message.intgetId()Get this message's ID.intgetOriginatorId()Get the ID of the originator of this message.java.lang.StringgetString()Get the string associated with this message.java.lang.StringtoString()
-
-
-
Field Detail
-
ID_GENERIC
public static final int ID_GENERIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageEvent
public MessageEvent(int id)
Create a message event with the given ID- Parameters:
id- Message ID
-
MessageEvent
public MessageEvent(java.lang.String str)
Create a message event with the given string- Parameters:
str- Message String
-
MessageEvent
public MessageEvent(RemoteData data)
Create a message event with the given data- Parameters:
data- Message Data
-
MessageEvent
public MessageEvent(int id, java.lang.String str)Create a message event with the given ID and string- Parameters:
id- Message IDstr- Message String
-
MessageEvent
public MessageEvent(int id, RemoteData data)Create a message event with the given ID and data- Parameters:
id- Message IDdata- Message Data
-
MessageEvent
public MessageEvent(java.lang.String str, RemoteData data)Create a message event with the given string and data- Parameters:
str- Message Stringdata- Message Data
-
MessageEvent
public MessageEvent(int id, java.lang.String str, RemoteData data)Create a message event with the given ID, string and data- Parameters:
id- Message IDstr- Message Stringdata- Message Data
-
MessageEvent
public MessageEvent(int id, int originator, java.lang.String str, RemoteData data)Create a message event with the given IDs, string and data- Parameters:
id- Message IDoriginator- Originator ID.str- Message Stringdata- Message Data
-
-
Method Detail
-
getId
public int getId()
Get this message's ID.- Returns:
- The message ID.
-
getOriginatorId
public int getOriginatorId()
Get the ID of the originator of this message.- Returns:
- The originator's ID.
-
getString
public java.lang.String getString()
Get the string associated with this message.- Returns:
- The message string.
-
getData
public RemoteData getData()
Get the data associated with this message.- Returns:
- The message Data.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG