Package net.sf.tweety.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 Type Method Description void
addProtocolListener(ProtocolListener listener)
Adds the given listener to this protocol.boolean
removeProtocolListener(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.
-
-