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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get id.Get last simulation storage.intDeprecated.getParam()Get simulation parameters.getSimulation(int number) GetSimulationStoragefor specified simulation plan number.Get plan context value.voidMust be call when new simulation is generated from plan.voidSet 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:
getIdin 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:
getNumberin interfaceSimulationPlanContext- Returns:
- the number
-
incNumber
public void incNumber()Must be call when new simulation is generated from plan. -
getParam
Get simulation parameters.- Specified by:
getParamin interfaceSimulationPlanContext- Returns:
- simulation parameters
-
getValue
Get plan context value. Used in script.- Specified by:
getValuein interfaceSimulationPlanContext- Parameters:
key- key- Returns:
- value for key.
-
setValue
Set plan context value. Used in script.- Specified by:
setValuein interfaceSimulationPlanContext- Parameters:
key- keyvalue- value
-
getLastSimulation
Get last simulation storage. Used in script.- Specified by:
getLastSimulationin interfaceSimulationPlanContext- Returns:
- last simulation storage
-
getSimulation
GetSimulationStoragefor specified simulation plan number.- Specified by:
getSimulationin interfaceSimulationPlanContext- Parameters:
number- number- Returns:
SimulationStorage
-
getHistoric
- Specified by:
getHistoricin interfaceSimulationPlanContext
-
nextSimulation.getParameter().getSimulationPlanNumber()