DSL Element components{}
The components element specifies the components in the model and instantiates objects of each, as follows:
....
model(classname:"csm.Input") {
components {
input 'csm.Input'
weather 'csm.Weathr'
sw 'csm.Sw'
plant 'csm.Plant'
}
....
The components can be listed in any order.
The use of components is optional as modelers can specify and connect components outside of a simulation file by creating a model component that performs this task (e.g. in a model's "main" component). However, specifying components in a simulation file increases flexibility enabling the creation of many model instances from a model base more easily.
Element components{}
Specification
Name |
components - The components in a model |
Sub-Elements | Description | Type | Required |
<component object> "<component name>" | Model object and component | String | Yes, if component connnections are made in a simulation file |