at.borkowski.scovillej

Class SimulationBuilder



  • public class SimulationBuilderextends Object
    A class facilitating building simulations.
    • Constructor Detail

      • SimulationBuilder

        public SimulationBuilder()
        Creates a new simulation builder with all default settings this builder has defaults for. The default phase Simulation.TICK_PHASE is added to the phase list.
    • Method Detail

      • totalTicks

        public SimulationBuilder totalTicks(long tickCount)
        Sets the total tick count for the simulation.
        Parameters:
        tickCount - the tick count
        Returns:
        this object
      • phase

        public SimulationBuilder phase(String phase)
        Adds a new phase to the phase list. If this phase is already in the phase list (for example because it is the default ("tick") phase Simulation.TICK_PHASE), it is moved to the end of the list.
        Parameters:
        phase - the name of the phase to add
        Returns:
        this object
      • service

        public SimulationBuilder service(ServiceProvider<?> service)
        Adds a service to this situation.
        Parameters:
        service - the provider of the service
        Returns:
        this object
      • create

        public Simulation create()
        Creates a simulation with the defined parameters.
        Returns:
        the simulation object

Copyright © 2015. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14