Package net.sf.tweety.agents.sim
Interface GameProtocol
-
-
Method Summary
Modifier and Type Method Description DoublegetUtility(Agent agent)Returns the utility of the given agent for the final situation.AgentgetWinner()If the game has a winner, this methods returns it.booleanhasWinner()Returns "true" if the game has finished and a winner is determined, otherwise it returns "false"-
Methods inherited from interface net.sf.tweety.agents.Protocol
addProtocolListener, removeProtocolListener
-
-
-
-
Method Detail
-
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.
-
-