Class DefaultRunEnvironmentBuilder
java.lang.Object
repast.simphony.engine.environment.DefaultRunEnvironmentBuilder
- All Implemented Interfaces:
RunEnvironmentBuilder
Builder for creating a RunEnvironment object. The user can customize the RunEnv used
for each run using this object.
- Author:
- Nick Collier
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRunEnvironmentBuilder(Runner runner, boolean isBatch) Creates a RunEnvironmentBuilder that will use the specified schedule runner to run each run of the simulation. -
Method Summary
Modifier and TypeMethodDescriptionCreates the Runtime to be used for the next simulation run.Gets the parameters to be used in the next simulation run.Gets the schedule factory used to create the schedule for simulation runs.Gets the schedule runner used to run each run of the simulation.voidsetParameters(Parameters parameters) Sets the parameters to be used in the next simulation run.voidsetScheduleFactory(IScheduleFactory scheduleFactory) Sets the schedule factory used to create the schedule for simulation runs.
-
Constructor Details
-
DefaultRunEnvironmentBuilder
Creates a RunEnvironmentBuilder that will use the specified schedule runner to run each run of the simulation.- Parameters:
runner-isBatch- whether or not this is operating in batch mode.
-
-
Method Details
-
getScheduleRunner
Gets the schedule runner used to run each run of the simulation.- Specified by:
getScheduleRunnerin interfaceRunEnvironmentBuilder- Returns:
- the schedule runner used to run each run of the simulation.
-
getScheduleFactory
Gets the schedule factory used to create the schedule for simulation runs.- Specified by:
getScheduleFactoryin interfaceRunEnvironmentBuilder- Returns:
- the schedule factory used to create the schedule for simulation runs.
-
setScheduleFactory
Sets the schedule factory used to create the schedule for simulation runs.- Specified by:
setScheduleFactoryin interfaceRunEnvironmentBuilder- Parameters:
scheduleFactory- the new schedule factory
-
getParameters
Gets the parameters to be used in the next simulation run.- Specified by:
getParametersin interfaceRunEnvironmentBuilder- Returns:
- the parameters to be used in the next simulation run.
-
setParameters
Sets the parameters to be used in the next simulation run.- Specified by:
setParametersin interfaceRunEnvironmentBuilder- Parameters:
parameters- the parameters to be used in the next simulation run.
-
createRunEnvironment
Creates the Runtime to be used for the next simulation run. Each simulation run gets a new runtime.- Specified by:
createRunEnvironmentin interfaceRunEnvironmentBuilder- Returns:
- the Runtime to be used for the next simulation run.
-