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<SGAgent> agents)
Generates a new state with the given agents in it.
|
getAgentObjectInstanceprotected 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<SGAgent> agents)
SGStateGeneratorgenerateState in class SGStateGeneratoragents - the agents that should be in the state.