public class GroundedGameProtocol extends RoundRobinProtocol implements GameProtocol
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
log
Logger
|
| Constructor and Description |
|---|
GroundedGameProtocol(GroundedGameSystem system)
Creates a new grounded game protocol for the given grounded game systems.
|
| 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 GroundedGameProtocol(GroundedGameSystem system)
system - a grounded game system.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