public class SimulationBuilderextends Object
Constructor and Description |
---|
SimulationBuilder() Creates a new simulation builder with all default settings this builder has defaults for. |
Modifier and Type | Method and Description |
---|---|
Simulation | create() Creates a simulation with the defined parameters. |
SimulationBuilder | member(SimulationMember member) Adds a simulation member to the simulation. |
SimulationBuilder | phase(String phase) Adds a new phase to the phase list. |
SimulationBuilder | service(ServiceProvider<?> service) Adds a service to this situation. |
SimulationBuilder | totalTicks(long tickCount) Sets the total tick count for the simulation. |
public SimulationBuilder()
Simulation.TICK_PHASE
is added to the phase list.public SimulationBuilder totalTicks(long tickCount)
tickCount
- the tick countpublic SimulationBuilder phase(String phase)
Simulation.TICK_PHASE
), it is moved to the end of the list.phase
- the name of the phase to addpublic SimulationBuilder member(SimulationMember member)
member
- the member to addpublic SimulationBuilder service(ServiceProvider<?> service)
service
- the provider of the servicepublic Simulation create()
Copyright © 2015. All rights reserved.