Package fr.ifremer.isisfish.simulator
Interface OptimizationContext
- All Superinterfaces:
SimulationPlanContext
- All Known Implementing Classes:
OptimizationContextInternal
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the current generation.getGeneration
(int n) Return simulation for generation nReturn last generation simulations.Return next generation, in endGeneration, this method return all time empty list.Return new simulation.newSimulation
(Factor... factors) Create simulation.Methods inherited from interface fr.ifremer.isisfish.simulator.SimulationPlanContext
getHistoric, getId, getLastSimulation, getNumber, getParam, getSimulation, getValue, setValue
-
Field Details
-
TEMP_PREFIX
- See Also:
-
-
Method Details
-
getCurrentGeneration
int getCurrentGeneration()Return the current generation. 0 for no generation (in firstGeneration) 1 for one generation simulation ...- Returns:
-
getGeneration
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
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
-