net.simplace.simulation.FWSimSolution
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
public final class FWSimSolution implements
net.simplace.simulation.util.FWSimFieldContainer,
net.simplace.util.FWObserver {
// Public Constructors
public FWSimSolution(FWSimSession aSession, FWSimSolution aFwSimSolution);
public FWSimSolution(Element aSimSolutionElement, FWSimVarMap aVarMap,
String aSolutionName);
// Public Instance Variables
public String CONNECTION_POOL_DEFAULT;
public FWCheckHelper.CHECK_LEVEL CHECK_LEVEL;
public String CHECKER_CLASS;
// Public Instance Methods public void
init();
After standard constructor taking a solution org.jdom.Element and a
net.simplace.simulation.util.FWSimVarMap
call order:
initInterfaces
initConstants
initResources
initModel
initOutput
After Project initialization the different solution parts are set up to a working state.
- aSimSolutionElement
- aVarMap
- aSolutionName
public
FWSimInterface getInterface(String aInterface);
returns list of the project ids
public
FWSimModel getModelTemplate();
returns list of the project ids
public Collection getResourceAdapters();
returns a collection of all resource adapters including transformer adapters
public ArrayList getOutputAdapters();
returns the Output Adapters
public String toString(); // Overrides java.lang.Object
returns the name - always ProjectConstants
public void
setCheckerClassName(String aClassNameString);
- aClassNameString the checker class to perform checks
public String getCheckerClassName();
returns the level of checks performed
public Element
getDynamicForm(
FWObservable aObservable);
returns the dynamic form element
public void showDescription();
Shows the description of the solution in external browser
}
Passed to: FWSimSession.FWSimSession(), FWSimSolution(), net.simplace.simulation.io.resources.FWSimResourceManager.referenceKeys(), FWSimEngine.registerSolution(), net.simplace.simulation.graphpanel.SimEnvGraphPanel()
Returned by: net.simplace.simulation.graphpanel.SimEnvGraphPanel.getSimSolution(), FWSimSession.getSolution()