net.simplace.simulation.FWSimSimulation
A simulation is the runnable and configured simulation model. It runs in an own java.lang.Thread implementing the java.lang.Runnable interface.
It consists of a Name, ProjectID of the including project, net.simplace.simulation.model.FWSimModel and a List of net.simplace.simulation.util.FWSimVariables
that the simulation is able to store as start configuration.
public final class FWSimSimulation implements java.lang.Runnable {
// Public Constructors
public FWSimSimulation(FWSimVarMap aVarMap, FWSimModel aModel, List
aFilterListHeader);
// Public Instance Methods public void run(); // From java.lang.Runnable
called by the java.lang.Thread to start it running
public void init();
Initialize a simulation run
public void finish();
Finish a model run
public void
setValue(String aColName,
FWSimVariable.DATA_TYPE aDataType,
Object aObject);
sets value to the solution. Values can be used in modeling process
- aColName
- aDataType
- aObject
public
FWSimVarMap getVarMap();
returns the SimVarMap of the implemented Model as a template
public List getInitialValues();
returns the SimVarMap of the implemented Model as a template
public String getName();
returns the id of the simulation
public String getID();
returns the iD
public Object
getVariableValue(String aName);
returns the Value of the end state (after model ended)
public Object
getInitialVariableValue(String aName);
returns the Value of the original VarMap (before model started)
public
FWSimResultCache getResultCache(String aName);
returns the Result references
public Set getCacheNames();
returns the Result Cache Names
public
FWSimModel getModel();
returns the running Model
public
FWSimSimulation clone(Integer aSimulationNumber);
returns a clone of FWSimSimulation object
public boolean equals(Object aObj); // Overrides java.lang.Object
public int hashCode(); // Overrides java.lang.Object
public String toString(); // Overrides java.lang.Object
}
Passed to: net.simplace.simulation.control.FWSimulationGenerator.addSimulation(), net.simplace.simulation.control.FWSimulationGenerator.generate(), net.simplace.simulation.control.generators.SimpleSimulationGenerator.generate(), net.simplace.simulation.control.generators.EquidistantCalSimGenerator.generate(), net.simplace.simulation.control.generators.DefaultSimulationGenerator.generate(), FWSimSession.modelEnded(), FWSimSession.modelStarted(), net.simplace.simulation.io.output.adapter.CacheOutputAdapter.registerSimulation(), FWSimProject.updateSimulations(), net.simplace.simulation.control.FWSimulationGenerator.updateSimulations()
Returned by: clone(), net.simplace.simulation.wrapper.SimplaceWrapper.createSimulation(), FWSimProject.getSelectedSimulation(), net.simplace.simulation.control.FWSimulationGenerator.getSimulation(), net.simplace.simulation.control.FWSimulationSelector.select(), net.simplace.simulation.control.selectors.WeightedLeastDifferenceSelector.select(), net.simplace.simulation.control.selectors.LeastSquareSelector.select(), net.simplace.simulation.control.selectors.LeastDifferenceSelector.select(), FWSimProject.selectSimulation(), net.simplace.simulation.control.FWSimulationSelector.selectSimulation()
Type of: net.simplace.simulation.wrapper.SimplaceWrapper.iPreparedSimulation