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