Class Simulation<E>

    • Constructor Summary

      Constructors 
      Constructor Description
      Simulation()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract E getLastResult()
      gets the last result of the simulation
      abstract E run()
      runs the simulation
      java.util.ArrayList<E> run​(int iterations)
      runs the simulation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Simulation

        public Simulation()
    • Method Detail

      • run

        public abstract E run()
        runs the simulation
        Returns:
        the result of the simulation
      • getLastResult

        public abstract E getLastResult()
        gets the last result of the simulation
        Returns:
        the last result
      • run

        public java.util.ArrayList<E> run​(int iterations)
        runs the simulation
        Parameters:
        iterations - the number of iterations to run the simulation
        Returns:
        an array list with the results