net.simplace.simulation.model.FWSimModel
Implemented as java.util.concurrent.Callable so that more than one can be run in same time
Can access resources via Resource Manager Singleton
Manages the VarMap
Manages the state in time and the settings of the model run
Can write outputs via Output Manager Singleton
Implemented simulation modules
Model parts are implemented from abstract simulation modules (init, clone (mit reset), process)
public class FWSimModel implements java.util.concurrent.Callable {
// Public Constructors
public FWSimModel(HashMap aFieldMap, FWSimVarMap aVarMap, Element
aSimModelElement) throws SimLinkInvalidException;
// Public Instance Methods public
FWSimVarMap call();
// From java.util.concurrent.Callable
public
FWSimModel clone(
FWSimVarMap aMap);
returns the cloned model instance using an already cloned new VarMap
public String toString(); // Overrides java.lang.Object
public LocalDateTime getCurrentDate();
returns the current model date
public LocalDateTime getStartDate();
returns start date
public LocalDateTime getEndDate();
returns end date
public
FWSimComponent getSimComponent(String aComponentName);
returns the SimComponent instance registered within this model
public HashMap getFieldMap();
returns the global fieldMap - same for all model instances
public
FWSimVarMap getVarMap();
returns the individual VarMap - different for each model instance
public List getSimComponents();
returns all {@link FWSimComponent} registered within this model
public
MultiHashMap getSimLinks();
returns a Map including all SimLinks
}
Passed to: FWSimComponent.createSimComponent(), FWSimComponent.createSimComponent(), net.simplace.simulation.event.FWSimModelErrorEvent(), net.simplace.simulation.event.FWSimModelEvent(), net.simplace.simulation.FWSimSimulation(), net.simplace.simulation.util.FWSimVarMap()
Returned by: clone(), net.simplace.simulation.FWSimSimulation.getModel(), net.simplace.simulation.event.FWSimModelEvent.getModel(), net.simplace.simulation.FWSimSolution.getModelTemplate()
Type of: FWSimComponent.iSimModel