T
- type of agents in the workplace.public final class WorkplaceConfiguration<T extends Agent>
extends java.lang.Object
Configuration of a single workplace.
Modifier and Type | Field and Description |
---|---|
private AfterStepAction<T,?> |
afterStep |
private java.util.List<T> |
agents |
private BeforeStepAction<T> |
beforeStep |
private Step<T> |
step |
Constructor and Description |
---|
WorkplaceConfiguration(java.util.List<T> agents,
Step<T> step,
AfterStepAction<T,?> afterStep) |
WorkplaceConfiguration(java.util.List<T> agents,
Step<T> step,
AfterStepAction<T,?> afterStep,
BeforeStepAction<T> beforeStep) |
WorkplaceConfiguration(PopulationGenerator<T> generator,
Step<T> step,
AfterStepAction<T,?> afterStep) |
WorkplaceConfiguration(PopulationGenerator<T> generator,
Step<T> step,
AfterStepAction<T,?> afterStep,
BeforeStepAction<T> beforeStep) |
Modifier and Type | Method and Description |
---|---|
AfterStepAction<T,?> |
afterStep() |
java.util.List<Agent> |
agents() |
Step<Agent> |
step() |
java.lang.String |
toString() |
Workplace<T> |
toWorkplace(long id,
Manager manager) |
private final AfterStepAction<T extends Agent,?> afterStep
private final BeforeStepAction<T extends Agent> beforeStep
public WorkplaceConfiguration(PopulationGenerator<T> generator, Step<T> step, AfterStepAction<T,?> afterStep)
public WorkplaceConfiguration(PopulationGenerator<T> generator, Step<T> step, AfterStepAction<T,?> afterStep, BeforeStepAction<T> beforeStep)
public WorkplaceConfiguration(java.util.List<T> agents, Step<T> step, AfterStepAction<T,?> afterStep)
public WorkplaceConfiguration(java.util.List<T> agents, Step<T> step, AfterStepAction<T,?> afterStep, BeforeStepAction<T> beforeStep)