Overview of libraries |
|
<< Click to show table of contents >> Navigation: Connection to Plant Simulation >
|
To enable a Plant Simulation model to interact with the SimUI architecture, several libraries within the class library are provided for Plant Simulation.
Folder SimUIObjects
oToolboxCtrl (use within instance): Functions to create toolbox data (JSON based)
oToolboxDef_Class (use within instance): Toolbox definition for SimUI with Plant Simulation tables and variables
•Library SimJSON
oSimJSONCtrl (use within instance): Various functions to interpret and encode model data in JSON / SimJSON format
oSimJSONImport: Logics and Parameter for importing JSON data
oSimJSONExport: Logics and Parameter to encode model JSON data
oSimJSONResult: Logics and Parameter to encode result JSON data
•Library Plant2Controller
oPlant2Controller (use within instance): Communication interface with the SimController
oErrorCtrl (use within instance): Frame to administer error handling in the model
oModelStartCtrl (use within instance): Logics and parameter for starting the model (either duplicate a template or use a defined root model)
oAutoexec_template: Template for an autoexec method to automatically trigger a simulation run with interaction with the SimController
oEndsim_template: Template method for an endsim method within the root frame of the Plant Simulation model to register the end of a simulation run with the SimController
oEndm_error_demo: Template method for an endsim method with exemplary demonstrations on how the ErrorCtrl is either automatically invoked or how specific error messages can be sent (including automatically stopping and saving the simulation model)
oExtended parameters and methods here
•Folder SimUIObjects_Public:
oThis folder holds specific subclasses for adjustments and/or usage.
oThese subclasses were created to generate a user specific set of toolboxes, StartCtrl and especially a SimJSONCtrl with result definitions.
oThe subclasses are used so that class code in the library can be updated and that settings can be transferred to other models (settings in root model frame would be lost).
▪ToolboxDef
▪ToolboxCtrl
▪SimJSONCtrl
▪Plant2Controller
▪ModelStartCtrl
▪Autoexec (optional if code is transferred to another autoexec)
Example:
•Folder VSMStat_Gathering_Example
oExemplary code outside of the SimUI-Libraries since this code is related to example gathering and therefore must be filled by the simulation expert/user
oCollect simulation results in data tables suitable for export
oSeveral exemplary interface method-calls to SimJSONResult, to:
▪Register a new result view section (if not already defined in SimJSON result)
▪Register a result data table
▪Register a result view widget within a result view section to visualize result data table entries within the front end
© SimPlan AG - Hanau District Court, Commercial Register (Part B) 6845 - info@simplan.de - www.simplan.de