Package net.simplace.sim.control
Klasse FWSimulationControlContainer
java.lang.Object
net.simplace.sim.control.FWSimulationControlContainer
- Alle implementierten Schnittstellen:
FWSimFieldContainer
- Bekannte direkte Unterklassen:
FWSimulationGenerator,FWSimulationIterator,FWSimulationSelector
The simulation generator creates for existing project (
has to be implemented in extending classes.
FWSimProject )
a range of simulations ( FWSimSimulation ). This abstract class has 2
implementations:
SimpleSimulationGenerator: Final class used for FWSimProject.PROJECT_MODE.SIMULATION and
FWSimVariable.CONTENT_TYPE.sim. It just delivers the (few) simulations in
the selected project.
DefaultSimulationGenerator: Class used for all FWSimProject.PROJECT_MODEs but
FWSimVariable.CONTENT_TYPE.res. Use this class to override and create own
SimGenerator plug-ins.
Method
Ungültige Referenz
#generate(FWSimSimulation)
- Autor:
- Andreas Enders
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected FWSimulationControlCacheCache reference to access data directly in the control processprotected HashMap<String, FWSimCalibrationVariable<?>> Variables that are used as calibration variables that are interchanged between the generated simulationsprotected net.simplace.sim.control.FWSimulationControlContainer.ConstraintVariables that are used as constraints of initiation of calibration variablesprotected org.jdom2.ElementElementthe Simulation creator is configured from.protected FWSimVarMapCentrally used VarMap referenceprotected LinkedHashMap<String, FWSimVariable<?>> initial field map as given by the createVariables()-Method in the SimComponent implementationregistered links of the SimComponent implementationprotected LinkedHashMap<String, FWSimVariable<?>> Variables that are used as inputs defining the needed configurations for running the generatorprotected StringName of componentprotected HashMap<String, FWSimVariable<?>> Variables that are used as parameters of initiation of calibration variablesprotected FWSimSessionthe current used sessionprotected FWSimVarMapCentrally used VarMap reference -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedFWSimulationControlContainer(org.jdom2.Element aContainerElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap) Default constructor of the abstract class that has to be called from overriding classes. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddProcessTime(long aProcessTime) adds the processTimevoidaddVariable(FWSimVariable<?> aVariable) Add Variable to the Filed map.voidcheckCondition(Boolean aCheckResult, String aMessage) Called from inside the FWSimFieldContainer to log the initialization Errors.protected booleanevaluate(FWSimVarMap aVarMap, Boolean aDefault) Evaluate whether aVarMap satisfies the given constraintorg.jdom2.Elementorg.jdom2.ElementgetEditFormXML(boolean aEnabled) returns the input variables from FieldMapgetName()intgetVariable(String aKey) protected abstract voidinit()The model initialization function.booleanprotected voidvoidremoveVariable(String aID) Remove variable from FieldMap - handle with care!voidsetPropertyValue(String aKey, Object aValue) org.jdom2.ElementtoXML()Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden net.simplace.sim.util.FWSimFieldContainer
createVariables
-
Felddetails
-
iName
Name of component -
iCache
Cache reference to access data directly in the control process -
iControlMap
Centrally used VarMap reference -
iSimulationMap
Centrally used VarMap reference -
iFieldMap
initial field map as given by the createVariables()-Method in the SimComponent implementation -
iInputMap
registered links of the SimComponent implementation -
iContainerElement
protected org.jdom2.Element iContainerElementElementthe Simulation creator is configured from. -
iInputs
Variables that are used as inputs defining the needed configurations for running the generator -
iCals
Variables that are used as calibration variables that are interchanged between the generated simulations -
iParams
Variables that are used as parameters of initiation of calibration variables -
iSession
the current used session -
iConstraint
protected net.simplace.sim.control.FWSimulationControlContainer.Constraint iConstraintVariables that are used as constraints of initiation of calibration variables
-
-
Konstruktordetails
-
FWSimulationControlContainer
public FWSimulationControlContainer() -
FWSimulationControlContainer
protected FWSimulationControlContainer(org.jdom2.Element aContainerElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap) Default constructor of the abstract class that has to be called from overriding classes.- Parameter:
aContainerElement-aSession-aFieldMap-
-
-
Methodendetails
-
readInputCalAndConstraint
protected void readInputCalAndConstraint() -
init
protected abstract void init()The model initialization function. Will be called only once, before running the model using process(). -
getOrderNumber
public int getOrderNumber()- Angegeben von:
getOrderNumberin SchnittstelleFWSimFieldContainer- Gibt zurück:
- number in the order of Components
- Siehe auch:
-
getContentType
- Angegeben von:
getContentTypein SchnittstelleFWSimFieldContainer- Gibt zurück:
- number in the order of Components
- Siehe auch:
-
addVariable
Add Variable to the Filed map. This should be called in implementing classes within the method "createVariables".- Angegeben von:
addVariablein SchnittstelleFWSimFieldContainer- Parameter:
aVariable-
-
evaluate
Evaluate whether aVarMap satisfies the given constraint- Parameter:
aVarMap-aDefault-- Gibt zurück:
- the boolean result of the evaluation
-
getVariable
- Angegeben von:
getVariablein SchnittstelleFWSimFieldContainer- Parameter:
aKey-- Gibt zurück:
- one SimVariable registered for given key
- Löst aus:
SimFieldMissingException- if Variable is Null
-
setPropertyValue
- Parameter:
aKey-aValue-- Löst aus:
SimFieldMissingException- if Variable is Null
-
removeVariable
Remove variable from FieldMap - handle with care!- Angegeben von:
removeVariablein SchnittstelleFWSimFieldContainer- Parameter:
aID-- Siehe auch:
-
getName
- Angegeben von:
getNamein SchnittstelleFWSimFieldContainer- Gibt zurück:
- the Name of the component
- Siehe auch:
-
getInputVariables
returns the input variables from FieldMap- Angegeben von:
getInputVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- FWSimVarables filtered - only input Variables
- Siehe auch:
-
getOutputVariables
- Angegeben von:
getOutputVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- the OutputVariables from the FieldMap
- Siehe auch:
-
addProcessTime
public void addProcessTime(long aProcessTime) adds the processTime- Parameter:
aProcessTime-
-
getFieldMap
- Angegeben von:
getFieldMapin SchnittstelleFWSimFieldContainer- Gibt zurück:
- whole field map as created in createVariables()
- Siehe auch:
-
getVarMap
- Angegeben von:
getVarMapin SchnittstelleFWSimFieldContainer- Gibt zurück:
- number in the order of Components
-
toXML
public org.jdom2.Element toXML()- Angegeben von:
toXMLin SchnittstelleFWSimFieldContainer- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
getCreateFormXML
public org.jdom2.Element getCreateFormXML()- Angegeben von:
getCreateFormXMLin SchnittstelleFWSimFieldContainer- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
getEditFormXML
public org.jdom2.Element getEditFormXML(boolean aEnabled) - Angegeben von:
getEditFormXMLin SchnittstelleFWSimFieldContainer- Parameter:
aEnabled-- Gibt zurück:
- a xml element with all the settings of this component()
- Siehe auch:
-
getFrequence
- Angegeben von:
getFrequencein SchnittstelleFWSimFieldContainer- Gibt zurück:
- the Frequence of the Container calling
-
checkCondition
Beschreibung aus Schnittstelle kopiert:FWSimFieldContainerCalled from inside the FWSimFieldContainer to log the initialization Errors.- Angegeben von:
checkConditionin SchnittstelleFWSimFieldContainer- Parameter:
aCheckResult-aMessage-
-
isConditionCheck
public boolean isConditionCheck()- Angegeben von:
isConditionCheckin SchnittstelleFWSimFieldContainer
-