Package fr.ifremer.isisfish.simulator
Interface SimulationPlan
- All Superinterfaces:
NecessaryResult
- All Known Subinterfaces:
AnalysePlan
,AnalysePlanIndependent
,SimulationPlanIndependent
Simulation plan.
Replace old
AnalysePlan
.- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Field Summary
Fields inherited from interface fr.ifremer.isisfish.result.NecessaryResult
EMPTY_STRING_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
afterSimulation
(SimulationPlanContext context, SimulationStorage lastSimulation) Call after each simulation.boolean
beforeSimulation
(SimulationPlanContext context, SimulationStorage nextSimulation) Call before each simulation.Return plan description.void
init
(SimulationPlanContext context) Use only once before first simulation.Methods inherited from interface fr.ifremer.isisfish.result.NecessaryResult
getNecessaryResult
-
Method Details
-
getDescription
Return plan description.- Returns:
- plan description
- Throws:
Exception
-
init
Use only once before first simulation. You can modified Param for all simulation or put value in context.values.- Parameters:
context
- plan context- Throws:
Exception
-
beforeSimulation
boolean beforeSimulation(SimulationPlanContext context, SimulationStorage nextSimulation) throws Exception Call before each simulation.- Parameters:
context
- plan contextnextSimulation
- storage used for next simulation- Returns:
- true if we must do next simulation, false to stop plan
- Throws:
Exception
-
afterSimulation
boolean afterSimulation(SimulationPlanContext context, SimulationStorage lastSimulation) throws Exception Call after each simulation.- Parameters:
context
- plan contextlastSimulation
- storage used for simulation- Returns:
- true if we must do next simulation, false to stop plan
- Throws:
Exception
-