Package org.tweetyproject.agents
Interface Protocol
- All Known Subinterfaces:
GameProtocol
- All Known Implementing Classes:
AbstractProtocol
,DirectGameProtocol
,GroundedGameProtocol
,RigidProtocol
,RoundRobinProtocol
,SynchronousProtocol
public interface Protocol
A protocol gives instructions in which order agents have to be asked
for actions in a multi-agent system.
- Author:
- Matthias Thimm
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProtocolListener
(ProtocolListener listener) Adds the given listener to this protocol.boolean
removeProtocolListener
(ProtocolListener listener) Removes the given protocol listener from this protocol.
-
Method Details
-
addProtocolListener
Adds the given listener to this protocol.- Parameters:
listener
- a protocol listener.
-
removeProtocolListener
Removes the given protocol listener from this protocol.- Parameters:
listener
- a protocol listener.- Returns:
- "true" if the listener has been removed.
-