Package 

Class Engine

  • All Implemented Interfaces:
    it.unibo.alchemist.core.interfaces.Simulation , java.lang.Runnable

    
    public final class Engine<T, P extends Position<out P>>
     implements Simulation<T, P>
                        

    This class implements a simulation. It offers a wide number of static factories to ease the creation process.

    • Constructor Detail

      • Engine

        Engine(Environment<T, P> e)
        Builds a simulation for a given environment.
        Parameters:
        e - the environment at the initial time
      • Engine

        Engine(Environment<T, P> e, long maxSteps)
        Builds a simulation for a given environment.
        Parameters:
        e - the environment at the initial time
        maxSteps - the maximum number of steps to do
      • Engine

        Engine(Environment<T, P> e, long maxSteps, Time t)
        Builds a simulation for a given environment.
        Parameters:
        e - the environment at the initial time
        maxSteps - the maximum number of steps to do
        t - the maximum time to reach
      • Engine

        Engine(Environment<T, P> e, Time t)
        Builds a simulation for a given environment.
        Parameters:
        e - the environment at the initial time
        t - the maximum time to reach