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 FWSimProject
s 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
Modifier and TypeFieldDescriptionprotected LinkedHashMap<String,
FWSimVariable<?>> initial field map as given by the createVariables()-Method in the SimComponent implementationprotected FWSimProject.PROJECT_MODE
FWSimProject.PROJECT_MODE
of the running projectprotected final FWSimSession
The solution connected to this simulation -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finalize()
void
generates the simulations for the sessionint
getProject
(String aProject) void
initProjectData
(FileData aProjectXMLFile) Default constructor from XML first step: create structure of the data to be placed in the database second step: prepare the databaseboolean
void
select
(FWSimProject aProject)
-
Field Details
-
iFieldMap
initial field map as given by the createVariables()-Method in the SimComponent implementation -
iProjectMode
FWSimProject.PROJECT_MODE
of 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
-Element
containing 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()
-