Package net.simplace.sim.model
Klasse FWSimModel
java.lang.Object
net.simplace.sim.model.FWSimModel
- Alle implementierten Schnittstellen:
Callable<FWSimVarMap>
Implemented as
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)- Autor:
- Andreas Enders
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFWSimModel(HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVarMap aVarMap, org.jdom2.Element aSimModelElement) creating Template Model - called for creating the model in the beginning -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcall()clone(FWSimVarMap aMap) getSimComponent(String aComponentName) voidinit()Initialize Model and theFWSimComponentregistered in this modelvoidreset(FWSimVarMap aNextVarMap) booleanstep()Run all model components for one day, step time and return new current date The current date from theFWSimVarMaptoString()
-
Konstruktordetails
-
FWSimModel
public FWSimModel(HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVarMap aVarMap, org.jdom2.Element aSimModelElement) throws SimLinkInvalidExceptioncreating Template Model - called for creating the model in the beginning- Parameter:
aFieldMap-aVarMap-aSimModelElement-- Löst aus:
SimLinkInvalidException
-
-
Methodendetails
-
init
public void init()Initialize Model and theFWSimComponentregistered in this model -
call
- Angegeben von:
callin SchnittstelleCallable<FWSimVarMap>- Siehe auch:
-
step
public boolean step()Run all model components for one day, step time and return new current date The current date from theFWSimVarMap- Gibt zurück:
- is simulation continuing
-
clone
- Parameter:
aMap-- Gibt zurück:
- the cloned model instance using an already cloned new VarMap
-
reset
- Parameter:
aNextVarMap-
-
toString
-
getCurrentDate
- Gibt zurück:
- the current model date
-
getStartDate
- Gibt zurück:
- start date
-
getEndDate
- Gibt zurück:
- end date
-
getSimComponent
- Parameter:
aComponentName-- Gibt zurück:
- the SimComponent instance registered within this model
-
getFieldMap
- Gibt zurück:
- the global fieldMap - same for all model instances
-
getVarMap
- Gibt zurück:
- the individual VarMap - different for each model instance
-
getSimComponents
- Gibt zurück:
- all
FWSimComponentregistered within this model
-
getSimLinks
- Gibt zurück:
- a Map including all SimLinks
-