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 SummaryModifier 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.booleanReturns "true" if the game has finished and a winner is determined, otherwise it returns "false"Methods inherited from interface org.tweetyproject.agents.ProtocoladdProtocolListener, removeProtocolListener
- 
Method Details- 
hasWinnerboolean 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"
 
- 
getWinnerAgent getWinner()If the game has a winner, this methods returns it. Otherwise it throws a RuntimeException.- Returns:
- the winner of the game.
 
- 
getUtilityReturns the utility of the given agent for the final situation.- Parameters:
- agent- some agent.
- Returns:
- the utility of the agent for the final situation.
 
 
-