Class GroundedGameAgentGenerator

    • Field Detail

      • random

        private java.util.Random random
        Random numbers generator.
    • Constructor Detail

      • GroundedGameAgentGenerator

        public GroundedGameAgentGenerator​(GroundedGameSystem.AgentFaction faction)
        Creates a new agent generator.
        Parameters:
        faction - the type of the agents to be generated.
    • Method Detail

      • getFaction

        public GroundedGameSystem.AgentFaction getFaction()
        Returns the faction of the generated agents.
        Returns:
        the faction of the generated agents.
      • generateBeliefState

        protected abstract BeliefState generateBeliefState​(GroundedGameSystem mas,
                                                           SimulationParameters params)
        Generates a belief state for the agent wrt. the given MAS
        Parameters:
        mas - a grounded game system.
        params - shared simulation parameters.
        Returns:
        a belief state
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setSeed

        public void setSeed​(long seed)
        Description copied from interface: AgentGenerator
        Set the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.
        Specified by:
        setSeed in interface AgentGenerator<ArguingAgent,​GroundedGameSystem>
        Parameters:
        seed - some seed.
      • getRandom

        protected java.util.Random getRandom()
        Returns the random number generator.
        Returns:
        the random number generator.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object