public class SimulationPlanContext extends Object
AnalysePlanContext.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
SimulationPlanContext(String id,
SimulationParameter param) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected String id
protected int number
protected SimulationParameter param
public SimulationPlanContext(String id, SimulationParameter param)
public String getId()
public int getNumber()
nextSimulation.getParameter().getSimulationPlanNumber()public void incNumber()
public SimulationParameter getParam()
public Object getValue(String key)
key - keypublic void setValue(String key, Object value)
key - keyvalue - valuepublic SimulationStorage getLastSimulation()
public SimulationStorage getSimulation(int number)
SimulationStorage for specified simulation plan number.number - numberSimulationStorageCopyright © 1999–2013 CodeLutin. All rights reserved.