public class ConstantSGStateGenerator extends SGStateGenerator
generateState(List)
method. This reassignment is done
each time the generateState(List)
method is called on a copy of the originally provided state.Modifier and Type | Field and Description |
---|---|
protected State |
srcState
The source state that will be copied and returned by the
generateState(List) method. |
Constructor and Description |
---|
ConstantSGStateGenerator(State srcState)
Initializes.
|
Modifier and Type | Method and Description |
---|---|
State |
generateState(java.util.List<Agent> agents)
Generates a new state with the given agents in it.
|
getAgentObjectInstance
protected State srcState
generateState(List)
method.public ConstantSGStateGenerator(State srcState)
srcState
- The source state that will be copied and returned by the generateState(List)
method.public State generateState(java.util.List<Agent> agents)
SGStateGenerator
generateState
in class SGStateGenerator
agents
- the agents that should be in the state.