Package jade.core.behaviours
Interface ReceiverBehaviour.Handle
-
- Enclosing class:
- ReceiverBehaviour
public static interface ReceiverBehaviour.HandleAn interface representing ACL messages due to arrive within a time limit. This interface is used to create aReceiverBehaviourobject to receive an ACL message within a user specified time limit. When the user tries to read the message represented by the handle, either gets it or gets an exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ACLMessagegetMessage()Tries to retrieve theACLMessageobject represented by this handle.
-
-
-
Method Detail
-
getMessage
ACLMessage getMessage() throws ReceiverBehaviour.TimedOut, ReceiverBehaviour.NotYetReady
Tries to retrieve theACLMessageobject represented by this handle.- Returns:
- The ACL message, received by the associated
ReceiverBehaviour, if any. - Throws:
ReceiverBehaviour.TimedOut- If the associatedReceiverBehaviourdid not receive a suitable ACL message within the time limit.ReceiverBehaviour.NotYetReady- If the associatedReceiverBehaviouris still waiting for a suitable ACL message to arrive.- See Also:
ReceiverBehaviour(Agent a, ReceiverBehaviour.Handle h, long millis)
-
-