|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.simulator.SimulationPlanContext
public class SimulationPlanContext
Simulation plan context.java
Replace old AnalysePlanContext.
| Field Summary | |
|---|---|
protected String |
id
Simulation id. |
protected int |
number
Simulation plan number. |
protected SimulationParameter |
param
Simulation parameters. |
protected Map<String,Object> |
values
Additional context values. |
| Constructor Summary | |
|---|---|
SimulationPlanContext(String id,
SimulationParameter param)
|
|
| Method Summary | |
|---|---|
String |
getId()
Get id. |
SimulationStorage |
getLastSimulation()
Get last simulation storage. |
int |
getNumber()
Deprecated. use nextSimulation.getParameter().getSimulationPlanNumber() |
SimulationParameter |
getParam()
Get simulation parameters. |
SimulationStorage |
getSimulation(int number)
Get SimulationStorage for specified simulation plan number. |
Object |
getValue(String key)
Get plan context value. |
void |
incNumber()
Must be call when new simulation is generated from plan. |
void |
setValue(String key,
Object value)
Set plan context value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected int number
protected SimulationParameter param
protected Map<String,Object> values
| Constructor Detail |
|---|
public SimulationPlanContext(String id,
SimulationParameter param)
| Method Detail |
|---|
public String getId()
public int getNumber()
nextSimulation.getParameter().getSimulationPlanNumber()
public void incNumber()
public SimulationParameter getParam()
public Object getValue(String key)
key - key
public void setValue(String key,
Object value)
key - keyvalue - valuepublic SimulationStorage getLastSimulation()
public SimulationStorage getSimulation(int number)
SimulationStorage for specified simulation plan number.
number - number
SimulationStorage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||