Class QueryProtocol
java.lang.Object
dev.agenor.runtime.dialogue.protocol.QueryProtocol
- All Implemented Interfaces:
Protocol
Query protocol for information retrieval.
Flow:
Initiator Participant
| |
|-------- QUERY ------------->|
| |
|<------- INFORM/REFUSE ------|
| |
- Since:
- 0.5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedPerformatives(ProtocolState state, boolean isInitiator) Gets the set of allowed performatives in a given state.getId()nextState(ProtocolState current, Performative received, boolean isInitiator) Computes the next state given a performative.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.agenor.core.dialogue.protocol.Protocol
isValid, senderPerforms
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
QueryProtocol
public QueryProtocol()
-
-
Method Details
-
getId
-
getDisplayName
- Specified by:
getDisplayNamein interfaceProtocol- Returns:
- human-readable name for display
-
getInitialState
- Specified by:
getInitialStatein interfaceProtocol- Returns:
- the initial state when a conversation starts
-
nextState
Description copied from interface:ProtocolComputes the next state given a performative. -
allowedPerformatives
Description copied from interface:ProtocolGets the set of allowed performatives in a given state.- Specified by:
allowedPerformativesin interfaceProtocol- Parameters:
state- the current stateisInitiator- true if this agent initiated the protocol- Returns:
- set of valid performatives
-