Package fr.ifremer.isisfish.simulator
Class SimulationPlanContextInternal
java.lang.Object
fr.ifremer.isisfish.simulator.SimulationPlanContextInternal
- All Implemented Interfaces:
SimulationPlanContext
- Direct Known Subclasses:
AnalysePlanContext
,OptimizationContextInternal
Simulation plan context.java
Replace old
AnalysePlanContext
.- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Get id.Get last simulation storage.int
Deprecated.getParam()
Get simulation parameters.getSimulation
(int number) GetSimulationStorage
for specified simulation plan number.Get plan context value.void
Must be call when new simulation is generated from plan.void
Set plan context value.
-
Field Details
-
id
Simulation id. -
number
protected int numberSimulation plan number. -
param
Simulation parameters. -
historic
-
values
Additional context values.
-
-
Constructor Details
-
SimulationPlanContextInternal
-
-
Method Details
-
getId
Get id.- Specified by:
getId
in interfaceSimulationPlanContext
- Returns:
- the id
-
getNumber
public int getNumber()Deprecated.usenextSimulation.getParameter().getSimulationPlanNumber()
Get current simulation plan simulation count. Warning, in after simulation, refer to generated simulation count, not ended simulation number. Depreciated, but no remove this method, it's just to not be used by user script.- Specified by:
getNumber
in interfaceSimulationPlanContext
- Returns:
- the number
-
incNumber
public void incNumber()Must be call when new simulation is generated from plan. -
getParam
Get simulation parameters.- Specified by:
getParam
in interfaceSimulationPlanContext
- Returns:
- simulation parameters
-
getValue
Get plan context value. Used in script.- Specified by:
getValue
in interfaceSimulationPlanContext
- Parameters:
key
- key- Returns:
- value for key.
-
setValue
Set plan context value. Used in script.- Specified by:
setValue
in interfaceSimulationPlanContext
- Parameters:
key
- keyvalue
- value
-
getLastSimulation
Get last simulation storage. Used in script.- Specified by:
getLastSimulation
in interfaceSimulationPlanContext
- Returns:
- last simulation storage
-
getSimulation
GetSimulationStorage
for specified simulation plan number.- Specified by:
getSimulation
in interfaceSimulationPlanContext
- Parameters:
number
- number- Returns:
SimulationStorage
-
getHistoric
- Specified by:
getHistoric
in interfaceSimulationPlanContext
-
nextSimulation.getParameter().getSimulationPlanNumber()