Package net.simplace.sim.control
Klasse 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).- Autor:
- Andreas Enders
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected 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 -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidfinalize()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) voidsetProjectMode(FWSimProject.PROJECT_MODE aProjectMode)
-
Felddetails
-
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
-
-
Konstruktordetails
-
FWSimulationController
- Parameter:
aSession-aProjectInformationElement-aSolution-- Löst aus:
SimProjectException
-
-
Methodendetails
-
initProjectData
Default constructor from XML first step: create structure of the data to be placed in the database second step: prepare the database- Parameter:
aProjectXMLFile-Elementcontaining project information - if null test-project will be createdaSession-FWSimSession- Löst aus:
SimProjectException
-
iterate
-
generate
generates the simulations for the session- Parameter:
aProjectID-
-
select
-
finalize
public void finalize() -
getProjectIDs
- Gibt zurück:
- the linked map of all projects
-
getProject
- Parameter:
aProject-- Gibt zurück:
- newly created SimProject for the given ID
-
getFieldMap
- Gibt zurück:
- the field map of all projects
-
getProjectMode
- Gibt zurück:
- project mode
-
setProjectMode
-
getCurrentProjectID
-
getMaxIterationCount
public int getMaxIterationCount()
-