public abstract class GroundedGameAgentGenerator extends java.lang.Object implements AgentGenerator<ArguingAgent,GroundedGameSystem>
Modifier and Type | Field and Description |
---|---|
private GroundedGameSystem.AgentFaction |
faction
The faction of the agents to be generated
|
private java.util.Random |
random
Random numbers generator.
|
Constructor and Description |
---|
GroundedGameAgentGenerator(GroundedGameSystem.AgentFaction faction)
Creates a new agent generator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ArguingAgent |
generate(GroundedGameSystem mas,
SimulationParameters params)
Generates a new agent for the given multi-agent system.
|
protected abstract BeliefState |
generateBeliefState(GroundedGameSystem mas,
SimulationParameters params)
Generates a belief state for the agent wrt.
|
GroundedGameSystem.AgentFaction |
getFaction()
Returns the faction of the generated agents.
|
protected java.util.Random |
getRandom()
Returns the random number generator.
|
int |
hashCode() |
void |
setSeed(long seed)
Set the seed for the generation.
|
java.lang.String |
toString() |
private GroundedGameSystem.AgentFaction faction
private java.util.Random random
public GroundedGameAgentGenerator(GroundedGameSystem.AgentFaction faction)
faction
- the type of the agents to be generated.public GroundedGameSystem.AgentFaction getFaction()
public ArguingAgent generate(GroundedGameSystem mas, SimulationParameters params)
AgentGenerator
generate
in interface AgentGenerator<ArguingAgent,GroundedGameSystem>
mas
- some multi-agent system.params
- this object can be used for sharing parameters across
the generating components of a simulation.protected abstract BeliefState generateBeliefState(GroundedGameSystem mas, SimulationParameters params)
mas
- a grounded game system.params
- shared simulation parameters.public java.lang.String toString()
toString
in class java.lang.Object
public void setSeed(long seed)
AgentGenerator
setSeed
in interface AgentGenerator<ArguingAgent,GroundedGameSystem>
seed
- some seed.protected java.util.Random getRandom()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object