Class DirectGameProtocol
java.lang.Object
org.tweetyproject.agents.AbstractProtocol
org.tweetyproject.agents.RigidProtocol
org.tweetyproject.agents.SynchronousProtocol
org.tweetyproject.agents.dialogues.lotteries.sim.DirectGameProtocol
- All Implemented Interfaces:
Protocol
,GameProtocol
This class implements a direct protocol for argumentation games.
- Author:
- Matthias Thimm
-
Field Summary
Fields inherited from class org.tweetyproject.agents.SynchronousProtocol
UNLIMITED_EXECUTION
-
Constructor Summary
Constructors -
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"toString()
Methods inherited from class org.tweetyproject.agents.AbstractProtocol
addProtocolListener, removeProtocolListener
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.tweetyproject.agents.Protocol
addProtocolListener, removeProtocolListener
-
Constructor Details
-
DirectGameProtocol
-
-
Method Details
-
hasWinner
public boolean hasWinner()Description copied from interface:GameProtocol
Returns "true" if the game has finished and a winner is determined, otherwise it returns "false"- Specified by:
hasWinner
in interfaceGameProtocol
- Returns:
- "true" if the game has finished and a winner is determined, otherwise it returns "false"
-
getWinner
Description copied from interface:GameProtocol
If the game has a winner, this methods returns it. Otherwise it throws a RuntimeException.- Specified by:
getWinner
in interfaceGameProtocol
- Returns:
- the winner of the game.
-
getUtility
Description copied from interface:GameProtocol
Returns the utility of the given agent for the final situation.- Specified by:
getUtility
in interfaceGameProtocol
- Parameters:
agent
- some agent.- Returns:
- the utility of the agent for the final situation.
-
toString
-