Class ReplyMessage

  • All Implemented Interfaces:
    Serializable

    public abstract class ReplyMessage
    extends de.aristaflow.adept2.model.communication.Message
    This class is the base class for all reply messages used in the ADEPT system, i. e. every reply message must be derived from this class. Request messages, i. e. messages which are the first messages in request reply chains, must be directly derived from the class Message.
    Author:
    Markus Lauer
    See Also:
    Message, Serialized Form
    • Constructor Detail

      • ReplyMessage

        public ReplyMessage​(long id,
                            long requestID)
        Creates a reply message.
        Parameters:
        id - the identifier that will be assigned to the created message
        requestID - the identifier of the message this message corresponds to.
    • Method Detail

      • getRequestID

        public long getRequestID()
        Returns the identifier of the message this message refers to.
        Returns:
        the identifier of the answered message.
      • isReplyMessage

        public final boolean isReplyMessage()
        Overrides:
        isReplyMessage in class de.aristaflow.adept2.model.communication.Message
      • process

        public final boolean process()
        Specified by:
        process in class de.aristaflow.adept2.model.communication.Message