Constructor and Description |
---|
TaskMessage(T data)
Create a task message with data
|
TaskMessage(T content,
int flag,
java.lang.String edge,
int sourceTask)
Create a task message with data
|
TaskMessage(T content,
java.lang.String edge,
int sourceTask)
Create a task message with data
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
edge()
The edge this message is traveling
|
T |
getContent()
Returns the content of the message
|
int |
getFlag()
Returns the flag of the message
|
void |
setContent(T content) |
void |
setFlag(int flag)
Set a flag to the message
|
int |
sourceTask()
Get the source of the message
|
public TaskMessage(T data)
data
- datapublic TaskMessage(T content, java.lang.String edge, int sourceTask)
content
- dataedge
- edgesourceTask
- sourcetaskpublic TaskMessage(T content, int flag, java.lang.String edge, int sourceTask)
content
- content of the messageflag
- flagedge
- edgesourceTask
- source taskpublic T getContent()
IMessage
getContent
in interface IMessage<T>
public void setContent(T content)
public java.lang.String edge()
IMessage
public int getFlag()
IMessage
public int sourceTask()
IMessage
sourceTask
in interface IMessage<T>