Skip to content

Commit

Permalink
xmls changed such that dataobjects are used instead of ioobjects
Browse files Browse the repository at this point in the history
  • Loading branch information
theavuik authored and Stef committed Nov 27, 2020
1 parent b1706ac commit 769cf70
Show file tree
Hide file tree
Showing 90 changed files with 669 additions and 664 deletions.
Expand Up @@ -21,11 +21,11 @@
<finalizeActions/>
</run>
<inputOutput>
<ioObject className="org.openda.model_efdc.EfdcGridTimeSeriesIoObject">
<dataObject className="org.openda.model_efdc.EfdcGridTimeSeriesIoObject">
<file>%outputFile%</file>
<id>outputIoObject</id>
<arg>%timeZone%</arg>
<arg>%startTime%</arg>
</ioObject>
</dataObject>
</inputOutput>
</blackBoxWrapperConfig>
@@ -1,66 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<blackBoxWrapperConfig xmlns="http://www.openda.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openda.org http://schemas.openda.org/blackBoxWrapperConfig.xsd">
<blackBoxWrapperConfig xmlns="http://www.openda.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openda.org http://schemas.openda.org/blackBoxWrapperConfig.xsd">

<!-- declare all the used aliases, specify the prefix and suffix of an alias key in a variable -->
<!-- declare all the used aliases, specify the prefix and suffix of an alias key in a variable -->

<aliasDefinitions defaultKeyPrefix="%" defaultKeySuffix="%" >
<alias key="instanceDir"/>
<alias key="templateDir"/>
<alias key="binDir"/>
<alias key="noosfile_1"/>
<alias key="noosfile_2"/>
<alias key="noosfile_3"/>
<alias key="statefile"/>
</aliasDefinitions>
<aliasDefinitions defaultKeyPrefix="%" defaultKeySuffix="%">
<alias key="instanceDir"/>
<alias key="templateDir"/>
<alias key="binDir"/>
<alias key="noosfile_1"/>
<alias key="noosfile_2"/>
<alias key="noosfile_3"/>
<alias key="statefile"/>
</aliasDefinitions>

<run>
<run>

<!-- for each model instance, the template directory will be cloned to create the instance directory -->
<initializeActionsUsingDirClone instanceDir="%instanceDir%%instanceNumber%" templateDir="%templateDir%"/>
<!-- for each model instance, the template directory will be cloned to create the instance directory -->
<initializeActionsUsingDirClone instanceDir="%instanceDir%%instanceNumber%" templateDir="%templateDir%"/>

<!-- computation actions -->
<!-- define actions relative to config dir. -->
<computeActions>
<action workingDirectory="%instanceDir%" windowsExe="./%binDir%/compute.bat" linuxExe="./%binDir%/compute.sh">
<arg>%instanceDir%%instanceNumber%</arg>
</action>
</computeActions>
<!-- computation actions -->
<!-- define actions relative to config dir. -->
<computeActions>
<action workingDirectory="%instanceDir%" windowsExe="./%binDir%/compute.bat" linuxExe="./%binDir%/compute.sh">
<arg>%instanceDir%%instanceNumber%</arg>
</action>
</computeActions>

<!-- actions to finalize (e.g. cleanup) an instance -->
<finalizeActions/>
<!-- actions to finalize (e.g. cleanup) an instance -->
<finalizeActions/>

</run>
</run>

<inputOutput>
<inputOutput>

<!-- noos time series 1 -->
<!-- noos time series 1 -->

<ioObject className="org.openda.exchange.ioobjects.NoosTimeSeriesIoObject">
<file>%noosfile_1%</file>
<id>noosfile_1</id>
</ioObject>
<ioObject className="org.openda.exchange.ioobjects.NoosTimeSeriesIoObject">
<file>%noosfile_1%</file>
<id>noosfile_1</id>
</ioObject>

<!-- noos time series 2 -->
<!-- noos time series 2 -->

<ioObject className="org.openda.exchange.ioobjects.NoosTimeSeriesIoObject">
<file>%noosfile_2%</file>
<id>noosfile_2</id>
</ioObject>
<ioObject className="org.openda.exchange.ioobjects.NoosTimeSeriesIoObject">
<file>%noosfile_2%</file>
<id>noosfile_2</id>
</ioObject>

<!-- noos time series 3 -->
<!-- noos time series 3 -->

<ioObject className="org.openda.exchange.ioobjects.NoosTimeSeriesIoObject">
<file>%noosfile_3%</file>
<id>noosfile_3</id>
</ioObject>
<ioObject className="org.openda.exchange.ioobjects.NoosTimeSeriesIoObject">
<file>%noosfile_3%</file>
<id>noosfile_3</id>
</ioObject>

<!-- simple state file -->
<!-- simple state file -->

<ioObject className="org.openda.blackbox.wrapper.DummyState">
<file>%statefile%</file>
<id>statefile</id>
</ioObject>
<dataObject className="org.openda.blackbox.wrapper.DummyState">
<file>%statefile%</file>
<id>statefile</id>
</dataObject>

</inputOutput>
</inputOutput>

</blackBoxWrapperConfig>
Expand Up @@ -22,10 +22,10 @@
<inputOutput>


<ioObject className="org.openda.blackbox.wrapper.DummyStateDataObject">
<dataObject className="org.openda.blackbox.wrapper.DummyStateDataObject">
<file>notUsed</file>
<id>DummyStateObject</id>
</ioObject>
</dataObject>


</inputOutput>
Expand Down
Expand Up @@ -18,7 +18,7 @@

<exchangeItems>

<vector id="allElementsFromIoObject" ioObjectId="DummyStateObject"/>
<vector id="allElementsFromDataObject" dataObjectId="DummyStateObject"/>

</exchangeItems>

Expand Down
Expand Up @@ -22,10 +22,10 @@
<inputOutput>


<ioObject className="org.openda.blackbox.wrapper.DummyStateDataObject">
<dataObject className="org.openda.blackbox.wrapper.DummyStateDataObject">
<file>notUsed</file>
<id>DummyStateObject</id>
</ioObject>
</dataObject>


</inputOutput>
Expand Down
Expand Up @@ -22,10 +22,10 @@
<inputOutput>


<ioObject className="org.openda.exchange.dataobjects.EsriAsciiGridDataObject">
<dataObject className="org.openda.exchange.dataobjects.EsriAsciiGridDataObject">
<file>param2D_20020102.asc</file>
<id>param2D</id>
</ioObject>
</dataObject>


</inputOutput>
Expand Down
Expand Up @@ -22,10 +22,10 @@
<inputOutput>


<ioObject className="org.openda.exchange.dataobjects.EsriAsciiGridDataObject">
<dataObject className="org.openda.exchange.dataobjects.EsriAsciiGridDataObject">
<file>param2D_20020102.asc</file>
<id>param2D</id>
</ioObject>
</dataObject>


</inputOutput>
Expand Down
Expand Up @@ -22,10 +22,10 @@
<inputOutput>


<ioObject className="org.openda.exchange.dataobjects.EsriAsciiGridDataObject">
<dataObject className="org.openda.exchange.dataobjects.EsriAsciiGridDataObject">
<file>param2D_20020102.asc</file>
<id>param2D</id>
</ioObject>
</dataObject>


</inputOutput>
Expand Down
Expand Up @@ -19,10 +19,10 @@

<inputOutput>

<ioObject className="org.openda.blackbox.wrapper.DummyParametersIoObject">
<dataObject className="org.openda.blackbox.wrapper.DummyParametersIoObject">
<file>not-needed</file>
<id>parametersIoObject</id>
</ioObject>
</dataObject>

</inputOutput>

Expand Down
Expand Up @@ -21,12 +21,12 @@
<inputOutput>

<!-- Reading the model states -->
<ioObject className="org.openda.blackbox.wrapper.DummyState">
<dataObject className="org.openda.blackbox.wrapper.DummyState">
<file>dflow1d/wlevStateFileIn.xyz</file>
<id>state</id>
</ioObject>
</dataObject>


</inputOutput>

</blackBoxWrapperConfig>
</blackBoxWrapperConfig>
Expand Up @@ -56,10 +56,10 @@

<!-- simple state file -->

<ioObject className="org.openda.blackbox.wrapper.DummyState">
<dataObject className="org.openda.blackbox.wrapper.DummyState">
<file>%statefile%</file>
<id>statefile</id>
</ioObject>
</dataObject>

</inputOutput>

Expand Down
Expand Up @@ -56,10 +56,10 @@

<!-- simple state file -->

<ioObject className="org.openda.blackbox.wrapper.DummyState">
<dataObject className="org.openda.blackbox.wrapper.DummyState">
<file>%statefile%</file>
<id>statefile</id>
</ioObject>
</dataObject>

</inputOutput>

Expand Down
Expand Up @@ -56,10 +56,10 @@

<!-- simple state file -->

<ioObject className="org.openda.blackbox.wrapper.DummyState">
<dataObject className="org.openda.blackbox.wrapper.DummyState">
<file>%statefile%</file>
<id>statefile</id>
</ioObject>
</dataObject>

</inputOutput>

Expand Down
Expand Up @@ -12,13 +12,13 @@
<inputOutput>

<!-- dummy test object that contains the start time / end time exchange items -->
<ioObject className="org.openda.blackbox.wrapper.DummyTimeInfoIoObject">
<dataObject className="org.openda.blackbox.wrapper.DummyTimeInfoIoObject">
<file>noRealFile</file>
<id>timeInfoIoObject</id>
<arg>2010-07-16 23:59:59</arg>
<arg>2010-07-17 00:01:01</arg>
</ioObject>
</dataObject>

</inputOutput>
</inputOutput>

</blackBoxWrapperConfig>
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<blackBoxWrapperConfig xmlns="http://www.openda.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openda.org http://schemas.openda.org/blackBoxWrapperConfig.xsd">
<blackBoxWrapperConfig xmlns="http://www.openda.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openda.org http://schemas.openda.org/blackBoxWrapperConfig.xsd">

<!-- no aliases -->
<aliasDefinitions/>
Expand All @@ -22,10 +24,10 @@
<inputOutput>

<!-- one test io object -->
<ioObject className="org.openda.blackbox.wrapper.DummyAstroIoObject">
<dataObject className="org.openda.blackbox.wrapper.DummyAstroIoObject">
<file>no file needed</file>
<id>DummyAstroIoObject</id>
</ioObject>
</dataObject>

</inputOutput>

Expand Down
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<ioObjectStochObserver xmlns="http://www.openda.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openda.org http://schemas.openda.org/openDaStochObserver.xsd">
<dataObjectStochObserver xmlns="http://www.openda.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openda.org http://schemas.openda.org/openDaStochObserver.xsd">
<uncertaintyModule workingDirectory="." className="org.openda.uncertainties.UncertaintyEngine">
<arg>stochObsUncertainties.xml</arg>
</uncertaintyModule>
<ioObject workingDirectory="." className="org.openda.model_swan.SwanResults">
<dataObject workingDirectory="." className="org.openda.model_swan.SwanResults">
<fileName>meas_l21triad_loc.tab</fileName>
</ioObject>
</ioObjectStochObserver>
</dataObject>
</dataObjectStochObserver>
12 changes: 6 additions & 6 deletions core/xmlSchemas/examples/wrappers/d3dBbWrapperConfig.xml
Expand Up @@ -30,25 +30,25 @@
<inputOutput>

<!-- u/v rougness -->
<ioObject className="nl.deltares.openda.models.d3dflow.D3dField2DFile">
<dataObject className="nl.deltares.openda.models.d3dflow.D3dField2DFile">
<file>%runid%.mdf</file>
<id>roughness</id>
<arg>rgh</arg>
</ioObject>
</dataObject>

<!-- depth -->
<ioObject className="nl.deltares.openda.models.d3dflow.D3dField2DFile">
<dataObject className="nl.deltares.openda.models.d3dflow.D3dField2DFile">
<file>%runid%.mdf</file>
<id>depth</id>
<arg>dep</arg>
</ioObject>
</dataObject>

<!-- time series results -->
<ioObject className="nl.deltares.openda.models.d3dflow.D3dResults">
<dataObject className="nl.deltares.openda.models.d3dflow.D3dResults">
<file>trih-%runid%.dat</file>
<id>trih-file</id>
<arg>%NATIVE_DLL_DIR%</arg>
</ioObject>
</dataObject>
</inputOutput>

</blackBoxWrapperConfig>

0 comments on commit 769cf70

Please sign in to comment.