Class ReplyMessage

java.lang.Object
de.aristaflow.adept2.model.communication.Message
de.aristaflow.adept2.base.communication.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:
  • Field Summary

    Fields inherited from class de.aristaflow.adept2.model.communication.Message

    messageID
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReplyMessage(long id, long requestID)
    Creates a reply message.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the identifier of the message this message refers to.
    final boolean
     
    final boolean
     

    Methods inherited from class de.aristaflow.adept2.model.communication.Message

    generateReplyMessage, getMessageID, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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