Package net.simplace.sim
Class FWSimSimulation
java.lang.Object
net.simplace.sim.FWSimSimulation
- All Implemented Interfaces:
Callable<FWSimVarMap>
A simulation is the runnable and configured simulation model. It runs in an own
Thread implementing the Runnable interface.
It consists of a Name, ProjectID of the including project, FWSimModel and a List of FWSimVariables
that the simulation is able to store as start configuration.- Author:
- Andreas Enders
-
Constructor Summary
ConstructorsConstructorDescriptionFWSimSimulation(FWSimVarMap aVarMap, FWSimModel aModel) Default constructor for the simulation object. -
Method Summary
Modifier and TypeMethodDescriptioncall()called by theThreadto start it runningbooleanvoidfinish()Finish a model rungetID()getModel()getName()getResultCache(String aName) getVariableValue(String aName) inthashCode()voidinit()Initialize a simulation runvoidregisterResultCache(FWSimResultCache aCache) voidsetValue(String aColName, FWSimVariable.DATA_TYPE aDataType, Object aObject) sets value to the solution.toString()
-
Constructor Details
-
FWSimSimulation
Default constructor for the simulation object. Simulation signifies one run of the model containing all needed configurations. They can be run simultaneously if in same project.- Parameters:
aVarMap-aModel-aFilterListHeader- only initial Values in this filter list are stored as initial values
-
-
Method Details
-
call
called by theThreadto start it running- Specified by:
callin interfaceCallable<FWSimVarMap>- See Also:
-
init
public void init()Initialize a simulation run -
finish
public void finish()Finish a model run -
registerResultCache
- Parameters:
aCache-
-
setValue
sets value to the solution. Values can be used in modeling process- Parameters:
aColName-aDataType-aObject-
-
getVarMap
- Returns:
- the SimVarMap of the implemented Model as a template
-
getName
- Returns:
- the id of the simulation
-
getID
- Returns:
- the iD
-
getVariableValue
- Parameters:
aName-- Returns:
- the Value of the end state (after model ended)
-
getResultCache
- Parameters:
aName-- Returns:
- the Result references
-
getCacheNames
- Returns:
- the Result Cache Names
-
getModel
- Returns:
- the running Model
-
clone
- Parameters:
aSimulationNumber-- Returns:
- a clone of FWSimSimulation object
-
equals
-
hashCode
public int hashCode() -
toString
-