Package org.tweetyproject.agents
Interface Protocol
-
- All Known Subinterfaces:
GameProtocol
- All Known Implementing Classes:
AbstractProtocol,DirectGameProtocol,GroundedGameProtocol,RigidProtocol,RoundRobinProtocol,SynchronousProtocol
public interface ProtocolA 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 Type Method Description voidaddProtocolListener(ProtocolListener listener)Adds the given listener to this protocol.booleanremoveProtocolListener(ProtocolListener listener)Removes the given protocol listener from this protocol.
-
-
-
Method Detail
-
addProtocolListener
void addProtocolListener(ProtocolListener listener)
Adds the given listener to this protocol.- Parameters:
listener- a protocol listener.
-
removeProtocolListener
boolean removeProtocolListener(ProtocolListener listener)
Removes the given protocol listener from this protocol.- Parameters:
listener- a protocol listener.- Returns:
- "true" if the listener has been removed.
-
-