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
-
-
Constructor Summary
Constructors Constructor Description ReplyMessage(long id, long requestID)
Creates a reply message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getRequestID()
Returns the identifier of the message this message refers to.boolean
isReplyMessage()
boolean
process()
-
-
-
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 classde.aristaflow.adept2.model.communication.Message
-
process
public final boolean process()
- Specified by:
process
in classde.aristaflow.adept2.model.communication.Message
-
-