public class Message extends java.lang.Object
Messageand therefore inherit the following characteristics:
setLength(long)and retrieved by
TimeStampfor the purpose of transfer time measurements. They can be managed with the functions
removeTimeStamps(). This is especially important when dealing with time measurements.
Messagecontains several output functions (
#printContent(PrintWriter)) that can be overridden if needed.
Generator). Generally a generator contains an element of the class
MessageFactory, which copies a given default message on to the heap with the help of the copy constructor (can be overwritten). By using the port concept, a message is passed from one model component to the next, whereby a reference to each message is additionally passed on during the process of the handshake protocol between two components. Messages are usually deleted in so-called sinks (
IPPacketare two implemented examples.
LabelMessagehas one additional label whereas
IPPacketincludes the most important fields of the IP header like source and destination id, a group and type field as well as a member for a tag usually used for scheduling. Special Methods to access and set these fields start with
The length field of a message does not have to be used (initialized) as the
default length is
|Modifier and Type||Field and Description|
public static final int DEFAULT_MESSAGE_LENGTH