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:
-
Message- Serialized Form
-
Field Summary
Fields inherited from class de.aristaflow.adept2.model.communication.Message
messageID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the identifier of the message this message refers to.final booleanfinal booleanprocess()Methods inherited from class de.aristaflow.adept2.model.communication.Message
generateReplyMessage, getMessageID, toString
-
Constructor Details
-
ReplyMessage
public ReplyMessage(long id, long requestID) Creates a reply message.- Parameters:
id- the identifier that will be assigned to the created messagerequestID- 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:
isReplyMessagein classde.aristaflow.adept2.model.communication.Message
-
process
public final boolean process()- Specified by:
processin classde.aristaflow.adept2.model.communication.Message
-