net.simplace.sim.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 void init();

Initialize Model and the net.simplace.sim.model.FWSimComponent registered in this model
public FWSimVarMap call(); // From java.util.concurrent.Callable

public boolean step();

Run all model components for one day, step time and return new current date The current date from the net.simplace.sim.util.FWSimVarMap
returns is simulation continuing
public FWSimModel clone(FWSimVarMap aMap);


returns the cloned model instance using an already cloned new VarMap
public void reset(FWSimVarMap aNextVarMap);

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.sim.FWSimSimulation(), net.simplace.sim.event.FWSimulationErrorEvent(), net.simplace.sim.util.FWSimVarMap()



Returned by: clone(), net.simplace.sim.FWSimSimulation.getModel(), net.simplace.sim.event.FWSimulationEvent.getModel(), net.simplace.sim.FWSimSolution.getModelTemplate()



Type of: FWSimComponent.iSimModel