Class GroundedGameAgentGenerator
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.sim.GroundedGameAgentGenerator
-
- All Implemented Interfaces:
net.sf.tweety.agents.sim.AgentGenerator<ArguingAgent,GroundedGameSystem>
- Direct Known Subclasses:
GroundedGameT1AgentGenerator,GroundedGameT2AgentGenerator,GroundedGameT3AgentGenerator
public abstract class GroundedGameAgentGenerator extends Object implements net.sf.tweety.agents.sim.AgentGenerator<ArguingAgent,GroundedGameSystem>
Generates new arguing agents for a grounded game. Encapsulates common characteristics for specific models.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description GroundedGameAgentGenerator(GroundedGameSystem.AgentFaction faction)Creates a new agent generator.
-
Method Summary
Modifier and Type Method Description booleanequals(Object obj)ArguingAgentgenerate(GroundedGameSystem mas, net.sf.tweety.agents.sim.SimulationParameters params)protected abstract BeliefStategenerateBeliefState(GroundedGameSystem mas, net.sf.tweety.agents.sim.SimulationParameters params)Generates a belief state for the agent wrt.GroundedGameSystem.AgentFactiongetFaction()Returns the faction of the generated agents.protected RandomgetRandom()Returns the random number generator.inthashCode()voidsetSeed(long seed)StringtoString()
-
-
-
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.
-
generate
public ArguingAgent generate(GroundedGameSystem mas, net.sf.tweety.agents.sim.SimulationParameters params)
- Specified by:
generatein interfacenet.sf.tweety.agents.sim.AgentGenerator<ArguingAgent,GroundedGameSystem>
-
generateBeliefState
protected abstract BeliefState generateBeliefState(GroundedGameSystem mas, net.sf.tweety.agents.sim.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
-
setSeed
public void setSeed(long seed)
- Specified by:
setSeedin interfacenet.sf.tweety.agents.sim.AgentGenerator<ArguingAgent,GroundedGameSystem>
-
getRandom
protected Random getRandom()
Returns the random number generator.- Returns:
- the random number generator.
-
-