public class SimpleMessage extends Message
Modifier and Type | Field and Description |
---|---|
protected Object |
data |
protected String |
message |
protected ProcessingUnit |
owner |
Constructor and Description |
---|
SimpleMessage(String message,
Object data,
ProcessingUnit source) |
SimpleMessage(String message,
ProcessingUnit source) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
void |
write(PrintWriter writer,
Janitor janitor)
Writes the message to the specified PrintWriter.
|
protected String message
protected Object data
protected ProcessingUnit owner
public SimpleMessage(String message, ProcessingUnit source)
public SimpleMessage(String message, Object data, ProcessingUnit source)
public void write(PrintWriter writer, Janitor janitor)
Message
public String getMessage()