The purpose of the GenericInput atom is to provide a list of variables that can be referenced and used by other atoms (e.g. by a
InputFileGenerator or the ranges for a
Sweep study).
The context menu of the GenericInput atom in the Tree View provides actions for adding variables as children of the
GenericInput atom. Variables of several types are supported and the input components depend on the type (e.g. check box for a
BooleanVariable).
The content of the Properties View for the GenericInput atom is automatically generated from its children.
If you click on a GenericInput atom in the Tree View, you can edit the values of all variables in the Properties View:
If you click on a variable atom in the Tree View, you can edit its name in the Properties View. You can also edit additional attributes if they exist (e.g. the available options for a StringItemVariable). (The name of a variable atom can also be changed using the
Rename action of the context menu in the Tree View.)
./src/model/genericInput/genericInput.js
A new GenericInput atom is created either by:
- using the context menu of a
Models atom in the Tree View or
- calling the corresponding factory method of the
Models atom in the source code of the Editor view:
...
let genericInput = models.createGenericInput();
The context menu of the GenericInput atom allows to add child atoms:
DoubleVariable
IntegerVariable
QuantityVariable
BooleanVariable
StringVariable
StringItemVariable
FilePathVariable
DirectoryPathVariable