Package net.simplace.sim.control
Class FWSimulationController
java.lang.Object
net.simplace.sim.control.FWSimulationController
SimulationController initializes the project part of the simulations. It can be asked for
- project mode of simulation
FWSimProject.PROJECT_MODE.
- field map of project data
- Map of the FWSimProjects with name as key.
- FWSimVariable.CONTENT_TYPE of the project information (res or sim)
SimulationController can perform the reading of the configuration either from simple xml
or resources (XML, Database, CSV).- Author:
- Andreas Enders
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LinkedHashMap<String,FWSimVariable<?>> initial field map as given by the createVariables()-Method in the SimComponent implementationprotected FWSimProject.PROJECT_MODEFWSimProject.PROJECT_MODEof the running projectprotected final FWSimSessionThe solution connected to this simulation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize()voidgenerates the simulations for the sessionintgetProject(String aProject) voidinitProjectData(FileData aProjectXMLFile) Default constructor from XML first step: create structure of the data to be placed in the database second step: prepare the databasebooleanvoidselect(FWSimProject aProject)
-
Field Details
-
iFieldMap
initial field map as given by the createVariables()-Method in the SimComponent implementation -
iProjectMode
FWSimProject.PROJECT_MODEof the running project -
iSession
The solution connected to this simulation
-
-
Constructor Details
-
FWSimulationController
- Parameters:
aSession-aProjectInformationElement-aSolution-- Throws:
SimProjectException
-
-
Method Details
-
initProjectData
Default constructor from XML first step: create structure of the data to be placed in the database second step: prepare the database- Parameters:
aProjectXMLFile-Elementcontaining project information - if null test-project will be createdaSession-FWSimSession- Throws:
SimProjectException
-
iterate
-
generate
generates the simulations for the session- Parameters:
aProjectID-
-
select
-
finalize
public void finalize() -
getProjectIDs
- Returns:
- the linked map of all projects
-
getProject
- Parameters:
aProject-- Returns:
- newly created SimProject for the given ID
-
getFieldMap
- Returns:
- the field map of all projects
-
getProjectMode
- Returns:
- project mode
-
getCurrentProjectID
-
getMaxIterationCount
public int getMaxIterationCount()
-