Interface OptimizationContext

All Superinterfaces:
SimulationPlanContext
All Known Implementing Classes:
OptimizationContextInternal

public interface OptimizationContext extends SimulationPlanContext
Version:
$Revision$ Last update: $Date$ by : $Author$
Author:
poussin
  • Field Details

  • Method Details

    • getCurrentGeneration

      int getCurrentGeneration()
      Return the current generation. 0 for no generation (in firstGeneration) 1 for one generation simulation ...
      Returns:
    • getGeneration

      List<SimulationStorage> getGeneration(int n)
      Return simulation for generation n
      Parameters:
      n - generation number
      Returns:
    • getLastSimulations

      List<SimulationStorage> getLastSimulations()
      Return last generation simulations.
      Returns:
    • getNextSimulations

      List<SimulationStorage> getNextSimulations()
      Return next generation, in endGeneration, this method return all time empty list.
      Returns:
    • newSimulation

      SimulationStorage newSimulation()
      Return new simulation. This new simulation is automaticaly added to next simulation.
      Returns:
      new Simulation
    • newSimulation

      SimulationStorage newSimulation(Factor... factors)
      Create simulation. This new simulation is automatically added to next simulations. Database will be modified with factors in parameters
      Parameters:
      factors - factors used to modify simulation
      Returns:
      simulation modified with factors