public abstract class SGStateGenerator
extends java.lang.Object
StateGenerator
class, this class requires a list of agents that will be in the world
and will create an ObjecInstance for each agent that belongs the OO-MDP object class specified by each agent's SGAgentType
.Constructor and Description |
---|
SGStateGenerator() |
Modifier and Type | Method and Description |
---|---|
abstract State |
generateState(java.util.List<SGAgent> agents)
Generates a new state with the given agents in it.
|
protected ObjectInstance |
getAgentObjectInstance(SGAgent a)
Creates an object instance belonging to the object class specified in the agent's
SGAgentType data member. |
public abstract State generateState(java.util.List<SGAgent> agents)
agents
- the agents that should be in the state.protected ObjectInstance getAgentObjectInstance(SGAgent a)
SGAgentType
data member.
The returned object instance will have the name of the agent.a
- the agent for which to create an OO-MDP state object instance