Components
With your tool, you can create a data model and interactive UI to be used in scenarios. You use components to create these elements. You can use Blank components to create placeholders for parameters and subcomponents and you can use Container components to create a tab-interface for other components.
Using Blank components and subcomponents you can create a data model in a tree structure.
Figure 1: Tree structure data model
This data model can encompass many types of data structures and there is no limit to how deep your structure can be. The data model can be referenced in your code.
The data model based on components is also a visual UI that you can present to your users. On the parameters and components, you can set visibility, default values and interactability and thereby build up a complex user interface for users of scenarios.
Figure 2: Screenshot of the interactive UI on the scenario page created by the data model
The above user interface in the scenario corresponds to the tree structure data model in figure 1. This was created using sub-components.
Types of components
You can choose between 4 component types:
Component | Description |
---|---|
Blank component | The default component, that you are going to use most of the time |
FMU component | A special component for running simulations on FMU files. FMU files contain their own parameter definitions, so the only thing you have to do is select or upload a FMU file. |
Library component | Under library components, you can choose predefined components. Read more here, component library. |
Container | A container is a component type that can contain other components. This makes it possible to set up the scenario page with tabs for the components in the container. |
Blank Component
See Blank component
Container Component
Sub Components
See Sub components
Add Component
To add a component to a tool, go to the tool and click the + Add Component Type button
Remember to save changes to the tool by clicking Save tool changes at the bottom of the window.