public class ParamsHandler extends SimulatorTabHandler
Modifier and Type | Field and Description |
---|---|
protected List<String> |
oldSimulNames |
protected StorageChangeListener |
regionStorageListener |
protected SimulationServiceListener |
simulationListener |
protected String |
simulationName |
protected ParamsUI |
tabUI |
simulationUI
Modifier | Constructor and Description |
---|---|
protected |
ParamsHandler(ParamsUI tabUI) |
Modifier and Type | Method and Description |
---|---|
void |
addFactorWithComponent(JComponent source)
Action appelée lors du clic sur les boutons a coté des composants factorisables.
|
protected void |
afterInit() |
protected boolean |
checkAndPrepare(String fullSimulationId) |
protected void |
enableOptimization() |
protected void |
enablePreScript() |
protected void |
enableSimulationPlan() |
protected Factor |
getFactor(FactorGroup factorGroup,
String factorPath)
Recursive search for factor in factor group by path.
|
Factor |
getFactor(String factorPath)
Search factor in factor group tree by path.
|
List<String> |
getFilteredOldSimulatorNames(boolean force) |
int |
getNumberOfMonths() |
List<String> |
getOldSimulationItem()
Return old simulations.
|
List<Population> |
getPopulations()
Get population list to fill JList in paramUI.
|
SimulatorLauncher[] |
getSimulationLauncher() |
protected ComboBoxModel<String> |
getSimulParamsSelectModel() |
protected ComboBoxModel<String> |
getSimulParamsSelectModel(boolean force) |
List<Strategy> |
getStrategies()
Get strategies list to fill Jlist in ParamUI.
|
protected void |
initRegionComboModel(StorageChangeEvent evt) |
protected void |
initSensitivityParams() |
protected void |
initSimulationParams() |
protected void |
launchSimulation()
Lance la simulation.
|
void |
launchSimulation(String simulationId,
SimulatorLauncher launcher)
Launch automatically the simulation, when is possible (no other simulation)
or wait for the last automatically simulation ended.
|
void |
launchSimulationWithSensibility(String simulationId,
SimulatorLauncher launcher)
Launch simulation with factors variations parameters.
|
protected void |
loadOldSimulation() |
void |
loadOldSimulation(String simulName)
Load old simulation.
|
void |
populationSelected()
Population selection changed.
|
void |
refresh() |
protected void |
regionChange()
Called on user region selection change.
|
void |
regionChange(String regionName)
Change region in simulation launcher
|
protected void |
resetFilter() |
void |
resetOldSimulatorNames() |
protected void |
setListSimulParamsPopulationsItems() |
protected void |
setListSimulParamsStrategiesItems() |
void |
setNumberOfMonths(String months)
Change number of simulation month by parsing string value.
|
void |
setOldSimulatorNames(List<String> sn) |
void |
setPopulations(List<Population> populations)
Set parameter population.
|
protected void |
setSensitivityTabRegion() |
void |
setSimulationName(String simulationName) |
void |
setStrategies(List<Strategy> strategies)
Set parameters strategies.
|
protected void |
strategySelected() |
getFactorGroup, getParameters
setStatusMessage, setStatusMessage
protected ParamsUI tabUI
protected SimulationServiceListener simulationListener
protected StorageChangeListener regionStorageListener
protected String simulationName
protected ParamsHandler(ParamsUI tabUI)
protected void initRegionComboModel(StorageChangeEvent evt)
protected void afterInit()
public void setSimulationName(String simulationName)
public void refresh()
public void regionChange(String regionName)
regionName
- region namepublic void loadOldSimulation(String simulName)
simulName
- name of simulation to loadpublic SimulatorLauncher[] getSimulationLauncher()
protected void regionChange()
protected void initSimulationParams()
protected void setSensitivityTabRegion()
protected void initSensitivityParams()
protected void loadOldSimulation()
protected void launchSimulation()
public void launchSimulationWithSensibility(String simulationId, SimulatorLauncher launcher)
simulationId
- id of the simulation to simulatelauncher
- launcher to useSimulatorLauncher
,
SensitivityAnalysis
,
DesignPlan
protected boolean checkAndPrepare(String fullSimulationId)
public void launchSimulation(String simulationId, SimulatorLauncher launcher)
simulationId
- id of the simulation to simulatelauncher
- launcher to useSimulatorLauncher
public void populationSelected()
public void addFactorWithComponent(JComponent source)
source
- la source de l'eventpublic Factor getFactor(String factorPath)
factorPath
- factor path to searchprotected Factor getFactor(FactorGroup factorGroup, String factorPath)
factorGroup
- factor group to search tofactorPath
- factor path to searchprotected void enablePreScript()
protected void enableSimulationPlan()
protected void enableOptimization()
protected void setListSimulParamsStrategiesItems()
protected void setListSimulParamsPopulationsItems()
protected void strategySelected()
protected ComboBoxModel<String> getSimulParamsSelectModel()
protected ComboBoxModel<String> getSimulParamsSelectModel(boolean force)
protected void resetFilter()
public List<String> getOldSimulationItem()
public void resetOldSimulatorNames()
public List<Strategy> getStrategies()
public void setStrategies(List<Strategy> strategies)
strategies
- public List<Population> getPopulations()
public void setPopulations(List<Population> populations)
populations
- populations to setpublic int getNumberOfMonths()
public void setNumberOfMonths(String months)
months
- number of months to setCopyright © 1999–2020 CodeLutin. All rights reserved.