Package net.simplace.sim
Klasse FWSimSolution
java.lang.Object
net.simplace.sim.FWSimSolution
- Alle implementierten Schnittstellen:
FWObserver,FWSimFieldContainer
Contains whole information about:
Model-Template Interfaces for external data read and write Resource parameters Output configuration Constant Values
Within the Solution creation process the different parts of the simulation session are configured to a default configuration. Project simulations can overwrite these configurations namely
interfaces and outputs. The constant- or input variables are initialized in a hierarchical setting: Solution constants overwrite defaults Project constants overwrite solution constants Simulation
constants overwrite project constants IO-relations overwrite simulation constants (e.g. initial variables) in first simulation step
The solution contains as main part the model with its components and links between these and the resources and outputs.
Structure of solution.sol.xml file has to refer to the grammar of SimSolution.dtd
- Autor:
- Andreas Enders
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungThe individual class the simulation is checked with while runningname of default db connection pool -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFWSimSolution(FWSimSession aSession, FWSimSolution aFwSimSolution) Standard constructor taking a solutionElementand aFWSimVarMapAfter Project initialization the different solution parts are set up to a working state.FWSimSolution(org.jdom2.Element aSimSolutionElement, FWSimVarMap aVarMap, String aSolutionName) Standard constructor taking a solutionElementand aFWSimVarMapAfter Project initialization the different solution parts are set up to a working state. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddLink(SimVarLink aSimVarLink) voidaddVariable(FWSimVariable<?> aVariable) Not clear if this is senseful - be careful using itvoidcheckCondition(Boolean aCheckResult, String aMessage) Called from inside the FWSimFieldContainer to log the initialization Errors.returns the project field maporg.jdom2.Elementorg.jdom2.ElementgetDynamicForm(FWObservable aObservable) org.jdom2.ElementgetEditFormXML(boolean aEnabled) returns the ProjectFieldMapreturns empty ArrayList while there are no input variables for this objectgetInterface(String aInterface) getName()Always returns name: ProjectConstants - mostly used for module overview pageintorg.jdom2.ElementgetTitle()getVariable(String aID) returns variable from Projectlistvoidinit()After standard constructor taking a solutionElementand aFWSimVarMapcall order: initInterfaces initConstants initResources initModel initOutput After Project initialization the different solution parts are set up to a working state.booleanvoidremoveLink(SimVarLink aSimVarLink) voidremoveSimFieldContainer(FWSimFieldContainer aFieldContainer) voidremoveVariable(String aID) removes variable from project field list - be careful using itvoidsetCheckerClassName(String aClassNameString) voidsetInterface(FWSimInterface<?> aInterface) voidShows the description of the solution in external browsertoString()returns the name - always ProjectConstantsorg.jdom2.ElementtoXML()voidupdate(FWObservable aFormObservable, Object aArg) This method is called whenever the observed object is changed.
-
Felddetails
-
CONNECTION_POOL_DEFAULT
name of default db connection pool -
CHECKER_CLASS
The individual class the simulation is checked with while running
-
-
Konstruktordetails
-
FWSimSolution
Standard constructor taking a solutionElementand aFWSimVarMapAfter Project initialization the different solution parts are set up to a working state.- Parameter:
aSession-aFwSimSolution-
-
FWSimSolution
public FWSimSolution(org.jdom2.Element aSimSolutionElement, FWSimVarMap aVarMap, String aSolutionName) Standard constructor taking a solutionElementand aFWSimVarMapAfter Project initialization the different solution parts are set up to a working state.- Parameter:
aSimSolutionElement-aVarMap-aSolutionName-
-
-
Methodendetails
-
init
public void init()After standard constructor taking a solutionElementand aFWSimVarMapcall order: initInterfaces initConstants initResources initModel initOutput After Project initialization the different solution parts are set up to a working state.- Parameter:
aSimSolutionElement-aVarMap-aSolutionName-
-
getInterface
- Parameter:
aInterface-- Gibt zurück:
- list of the project ids
-
setInterface
- Parameter:
aInterface-
-
getModelTemplate
- Gibt zurück:
- list of the project ids
-
getResourceAdapters
- Gibt zurück:
- a collection of all resource adapters including transformer adapters
-
getOutputAdapters
- Gibt zurück:
- the Output Adapters
-
createVariables
returns the project field map- Angegeben von:
createVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- variables from the field map
- Siehe auch:
-
addVariable
Not clear if this is senseful - be careful using it- Angegeben von:
addVariablein SchnittstelleFWSimFieldContainer- Parameter:
aVariable-- Siehe auch:
-
getVariable
returns variable from Projectlist- Angegeben von:
getVariablein SchnittstelleFWSimFieldContainer- Parameter:
aID-- Gibt zurück:
- FWSimVariable for ID in Field Map
- Siehe auch:
-
removeVariable
removes variable from project field list - be careful using it- Angegeben von:
removeVariablein SchnittstelleFWSimFieldContainer- Parameter:
aID-- Siehe auch:
-
getName
Always returns name: ProjectConstants - mostly used for module overview page- Angegeben von:
getNamein SchnittstelleFWSimFieldContainer- Gibt zurück:
- the Name of the component
- Siehe auch:
-
getOrderNumber
public int getOrderNumber()- Angegeben von:
getOrderNumberin SchnittstelleFWSimFieldContainer- Gibt zurück:
- number in the order of Components
- Siehe auch:
-
getAuthor
- Gibt zurück:
-
getDescription
- Gibt zurück:
-
getTitle
- Gibt zurück:
-
getSkipSimulation
- Gibt zurück:
- the skipSimulation
-
getOutputVariables
- Angegeben von:
getOutputVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- FWSimVarables filtered - only output Variables
- Siehe auch:
-
getInputVariables
returns empty ArrayList while there are no input variables for this object- Angegeben von:
getInputVariablesin SchnittstelleFWSimFieldContainer- Gibt zurück:
- FWSimVarables filtered - only input Variables
- Siehe auch:
-
getFieldMap
returns the ProjectFieldMap- Angegeben von:
getFieldMapin SchnittstelleFWSimFieldContainer- Gibt zurück:
- whole field map as created in createVariables()
- Siehe auch:
-
toString
returns the name - always ProjectConstants -
getContentType
- Angegeben von:
getContentTypein SchnittstelleFWSimFieldContainer- Gibt zurück:
- number in the order of Components
- Siehe auch:
-
setCheckerClassName
- Parameter:
aClassNameString- the checker class to perform checks
-
getCheckerClassName
- Gibt zurück:
- the level of checks performed
-
toXML
public org.jdom2.Element toXML()- Angegeben von:
toXMLin SchnittstelleFWSimFieldContainer- Gibt zurück:
- the SolutionElement
-
addLink
- Parameter:
aSimVarLink-- Löst aus:
SimLinkInvalidException
-
removeLink
- Parameter:
aSimVarLink-
-
removeSimFieldContainer
- Parameter:
aFieldContainer-
-
getFrequence
- Angegeben von:
getFrequencein SchnittstelleFWSimFieldContainer- Gibt zurück:
- the Frequence of the Container calling
- 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:
-
getDynamicForm
- Parameter:
aObservable-- Gibt zurück:
- the dynamic form element
-
update
Beschreibung aus Schnittstelle kopiert:FWObserverThis method is called whenever the observed object is changed. An application calls an Observable object'snotifyObserversmethod to have all the object's observers notified of the change.- Angegeben von:
updatein SchnittstelleFWObserver- Parameter:
aFormObservable- the observable object.aArg- an argument passed to thenotifyObserversmethod.
-
showDescription
public void showDescription()Shows the description of the solution in external browser -
getVarMap
- Angegeben von:
getVarMapin SchnittstelleFWSimFieldContainer- Gibt zurück:
- number in the order of Components
-
getSolutionElement
public org.jdom2.Element getSolutionElement()- Gibt zurück:
-
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
-