Package org.tweetyproject.agents.sim
Interface GameProtocol
- All Superinterfaces:
Protocol
- All Known Implementing Classes:
DirectGameProtocol
,GroundedGameProtocol
Classes implementing this interface represent protocols
for games in the game theoretic meaning.
- Author:
- Matthias Thimm
-
Method Summary
Modifier and TypeMethodDescriptiongetUtility
(Agent agent) Returns the utility of the given agent for the final situation.If the game has a winner, this methods returns it.boolean
Returns "true" if the game has finished and a winner is determined, otherwise it returns "false"Methods inherited from interface org.tweetyproject.agents.Protocol
addProtocolListener, removeProtocolListener
-
Method Details
-
hasWinner
boolean hasWinner()Returns "true" if the game has finished and a winner is determined, otherwise it returns "false"- Returns:
- "true" if the game has finished and a winner is determined, otherwise it returns "false"
-
getWinner
Agent getWinner()If the game has a winner, this methods returns it. Otherwise it throws a RuntimeException.- Returns:
- the winner of the game.
-
getUtility
-