Class GroundedGameProtocol

  • All Implemented Interfaces:
    net.sf.tweety.agents.Protocol, net.sf.tweety.agents.sim.GameProtocol

    public class GroundedGameProtocol
    extends net.sf.tweety.agents.RoundRobinProtocol
    implements net.sf.tweety.agents.sim.GameProtocol
    This class implements a round robin protocol for the grounded game.
    Author:
    Matthias Thimm
    • Method Summary

      Modifier and Type Method Description
      Double getUtility​(net.sf.tweety.agents.Agent agent)  
      net.sf.tweety.agents.Agent getWinner()  
      boolean hasWinner()  
      String toString()  
      • Methods inherited from class net.sf.tweety.agents.RoundRobinProtocol

        doStep, hasTerminated
      • Methods inherited from class net.sf.tweety.agents.RigidProtocol

        hasPerformedNoOperation, setHasPerformedNoOperation
      • Methods inherited from class net.sf.tweety.agents.AbstractProtocol

        addProtocolListener, getMultiAgentSystem, notifyActionPerformed, notifyTerminated, removeProtocolListener, step
      • Methods inherited from interface net.sf.tweety.agents.Protocol

        addProtocolListener, removeProtocolListener
    • Constructor Detail

      • GroundedGameProtocol

        public GroundedGameProtocol​(GroundedGameSystem system)
        Creates a new grounded game protocol for the given grounded game systems.
        Parameters:
        system - a grounded game system.
    • Method Detail

      • hasWinner

        public boolean hasWinner()
        Specified by:
        hasWinner in interface net.sf.tweety.agents.sim.GameProtocol
      • getWinner

        public net.sf.tweety.agents.Agent getWinner()
        Specified by:
        getWinner in interface net.sf.tweety.agents.sim.GameProtocol
      • getUtility

        public Double getUtility​(net.sf.tweety.agents.Agent agent)
        Specified by:
        getUtility in interface net.sf.tweety.agents.sim.GameProtocol