Package net.simplace.sim
Class FWSimSession
java.lang.Object
net.simplace.sim.FWSimSession
- Author:
- Andreas Enders
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Different variables have different identifies to be able to divide them within within the debugging phase of the software developing process.static enum
-
Constructor Summary
ConstructorDescriptionFWSimSession
(FWSimSolution aSolution, FileData aSolutionFile) FWSimSession
(org.jdom2.Element aSolutionElement, FWSimVarMap aVarMap, Object[][] aParameters, String aSessionName, FileData aSolutionFile) -
Method Summary
Modifier and TypeMethodDescriptionclone()
If when simulation ended finalize sets simulation to inactivevoid
finalize()
If when simulation ended finalize sets simulation to inactivesets simulation to activegetProject
(String aProjectID) void
handleModelErrorEvent
(FWSimulationErrorEvent aModelEvent) void
initProjects
(FWSimVarMap aVarMap) boolean
isActive()
void
iterationEnded
(FWSimulationControlCache aControlCache) void
void
projectEnded
(FWSimProject aFWSimProject, Integer aPercentage) void
registerModelListener
(FWSimulationListener aModelListener) Model listener gets Model Event with the current Modelvoid
removeModelListener
(FWSimulationListener aModelListener) Model listener gets Model Event with the current Modelrun()
runProject
(FWSimProject aProject) Make sure that output writers are running and system is shut down after running all projectsvoid
runSimulations
(List<FWSimSimulation> aSimulationList, boolean aSelectSimulation) Make sure that output writers are running and system is shut down after running all projectsvoid
sets simulation to activevoid
sets simulation to inactivevoid
simulationEnded
(FWSimSimulation aFWSimSimulation, Integer aPercentage) void
simulationStarted
(FWSimSimulation aFWSimSimulation, Integer aPercentage) toString()
-
Constructor Details
-
FWSimSession
public FWSimSession(org.jdom2.Element aSolutionElement, FWSimVarMap aVarMap, Object[][] aParameters, String aSessionName, FileData aSolutionFile) - Parameters:
aSolutionElement
-aVarMap
-aSessionName
-aSolutionFile
-aApplicationMode
-
-
FWSimSession
- Parameters:
aSolution
-aSolutionFile
-aApplicationMode
-
-
-
Method Details
-
getSolutionFile
- Returns:
-
getProjectFile
- Returns:
-
getDataFrame
- Returns:
-
initProjects
- Parameters:
aVarMap
-
-
getSolution
- Returns:
- the solution
-
getPoolInterface
- Returns:
- the pool interface
-
getSessionID
- Returns:
- a unique session id for unique folders etc.
-
getProjectControler
- Returns:
- the project controller
-
getProjectList
- Returns:
- list of the projects
-
getProject
- Parameters:
aProjectID
-- Returns:
- the Project
-
run
- Returns:
- The readily run projects
- Throws:
Exception
-
postprocess
public void postprocess() -
getOutputManager
- Returns:
- the output manager
-
getPostProcessManager
- Returns:
- the output manager
-
getResourceManager
- Returns:
- the Resource manager
-
getSyncManager
- Returns:
- the Sync manager
-
getChecker
- Returns:
- the used checker for this session
-
runProject
Make sure that output writers are running and system is shut down after running all projects- Parameters:
aProject
- to be run- Returns:
- the list of simulations of this project
- Throws:
Exception
-
runSimulations
public void runSimulations(List<FWSimSimulation> aSimulationList, boolean aSelectSimulation) throws Exception Make sure that output writers are running and system is shut down after running all projects- Parameters:
aProject
- to be runaSimulationList
-aSelectSimulation
-- Throws:
Exception
-
registerModelListener
Model listener gets Model Event with the current Model- Parameters:
aModelListener
-
-
removeModelListener
Model listener gets Model Event with the current Model- Parameters:
aModelListener
-
-
getModelListeners
- Returns:
- the modelListeners
-
handleModelErrorEvent
- Parameters:
aModelEvent
-
-
simulationStarted
- Parameters:
aFWSimSimulation
-aPercentage
-
-
simulationEnded
- Parameters:
aFWSimSimulation
- If you use "modelEnded" to remove the actual listener you can be sure that "ConcurrentModificationException" is prevented.aPercentage
-
-
projectEnded
- Parameters:
aFWSimProject
-aPercentage
- If you use "modelEnded" to remove the actual listener you can be sure that "ConcurrentModificationException" is prevented.
-
iterationEnded
- Parameters:
aControlCache
-aPercentage
- If you use "modelEnded" to remove the actual listener you can be sure that "ConcurrentModificationException" is prevented.
-
finalize
If when simulation ended finalize sets simulation to inactive -
clone
If when simulation ended finalize sets simulation to inactive -
isActive
public boolean isActive()- Returns:
- the isActive
-
setInActive
public void setInActive()sets simulation to inactive -
setActive
public void setActive()sets simulation to active -
getControlCache
sets simulation to active- Returns:
- The Control cache
-
toString
-