You are not logged in. Click here to log in.

Application Lifecycle Management

Search In Project

Search inClear

Connect #17065/HEAD / v10
Tags:  not added yet

DSL Element connect{}

The connect element specifies the input and output connections among the components in a model, as follows:
    ...
    model(classname:"csm.Input") {

        components {
            input    'csm.Input'
            weather  'csm.Weathr'
            sw       'csm.Sw'
            plant    'csm.Plant'

        }

        connect   {
           'input.DYN'       'weather.DYN'

           'input.DOY'       'sw.DOY'
           'input.DYN'       'sw.DYN'
           'weather.SRAD'    'sw.SRAD'
           'weather.TMAX'    'sw.TMAX'
           'weather.TMIN'    'sw.TMIN'
           'weather.RAIN'    'sw.RAIN'

           'input.DOY'       'plant.DOY'
           'input.DYN'       'plant.DYN'
           'weather.TMAX'    'plant.TMAX'
           'weather.TMIN'    'plant.TMIN'
           'weather.PAR'     'plant.PAR'
           'sw.SWFAC1'       'plant.SWFAC1'
           'sw.SWFAC2'       'plant.SWFAC2'
        }
        ...

The component connnections can be listed in any order. The variable on the left side of a connection is the output from a component, and the variable on the right side of the connection is the input to a component. In the example above, the output variable DOY (day of year) from the input component connects to input variable DOY of the sw component.

The use of connect must be used in combination with the components element. Model components have data input and output connections.

Element connect{}

Specification

Name
connect - Component output to input connections

Sub-Elements Description Type Required
<output variable> <input variable> Output to Input String Yes, if the components element is used, and there are component connections within an iteration

Parent
model{}