Page tree
Skip to end of metadata
Go to start of metadata


Module Parameters

Module Parameters can also be managed by DELFT-FEWS similar to management of Module datasets. The difference is that where the module datasets are handled as ZIP files, with no actual interaction between the dataset and DELFT-FEWS, module parameters can be defined in a native DELFT-FEWS format and exchanged with the external module in the published interface format through the General Adapter module. A prerequisite for this exchange being meaningful is that the module adapter supports this format of the published interface, and can transform this into the native module format.

As in the module datasets, module parameters are defined in a configuration where the name is the same as the moduleInstanceId of the General Adapter module it is to be used in (though a different name may also be called by the General Adapter- see the moduleInstance configuration section).

When available on the file system, the name of the XML file for configuring Module Parameters for example for the Eden_Historical module may be:

Eden_Historical 1.00 default.xml

Eden_Historical

File name for the parameters for Eden_Historical.

1.00

Version number

default

Flag to indicate the version is the default configuration (otherwise omitted).

The structure of the module parameter XML configuration is the same as that applied in the Published Interface format. See the relevant documentation for the definition of the schema and required configuration.

Template Module Parameter File

Since 2012.01 it is possible to add location attributes to the parameter file, using a template. Below is an example of a template.

<parameters version="1.5" xmlns="http://www.wldelft.nl/fews/PI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews/PI http://fews.wldelft.nl/schemas/version1.0/pi-schemas/pi_modelparameters.xsd">
    <group id="MATCHES" name="MATCHES">
        <model>ExportParams</model>
        <parameter id="MATCH_ID" name="MATCH_ID">
            <description>Station used for matching</description>
            <stringValue>@EXTLOCID@</stringValue>
        </parameter>
    </group>
</parameters>
  • No labels