public class DirectGameProtocol extends SynchronousProtocol implements GameProtocol
UNLIMITED_EXECUTION| Constructor and Description | 
|---|
DirectGameProtocol(MultiAgentSystem<? extends Agent> multiAgentSystem)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Double | 
getUtility(Agent agent)
Returns the utility of the given agent for
 the final situation. 
 | 
Agent | 
getWinner()
If the game has a winner, this methods returns it. 
 | 
boolean | 
hasWinner()
Returns "true" if the game has finished and a winner
 is determined, otherwise it returns "false" 
 | 
java.lang.String | 
toString()  | 
doStep, hasTerminatedhasPerformedNoOperation, setHasPerformedNoOperationaddProtocolListener, getMultiAgentSystem, notifyActionPerformed, notifyTerminated, removeProtocolListener, stepclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddProtocolListener, removeProtocolListenerpublic DirectGameProtocol(MultiAgentSystem<? extends Agent> multiAgentSystem)
public boolean hasWinner()
GameProtocolhasWinner in interface GameProtocolpublic Agent getWinner()
GameProtocolgetWinner in interface GameProtocolpublic java.lang.Double getUtility(Agent agent)
GameProtocolgetUtility in interface GameProtocolagent - some agent.public java.lang.String toString()
toString in class java.lang.Object