Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Below an example of csv-file which defines the values of the attributes

Code Block
languagexml
id,variableinputVariable,inputLocationId,ruleId,lowerBound,upperBound,ruleOutcome
H4301,input1,H-2001,ruleA,1,10,1
H4301,input2,H-2002,ruleA,2,4,1
H4301,input1,H-2001,ruleB,10,20,2
H4301,input2,H-2002,ruleB,4,10,2
H4301,input1,H-2001,ruleC,20,30,3

...

Code Block
languagexml
<locationSet id="example">
   <csvFile>
      <file>multi_variate_thresholds.csv</file>
      <id>%id%</id>
      <x>%x%</x>
      <y>%y%</y>
      <attributeFile>
         <csvFile>multi_variate_thresholds_attribute.csv</csvFile>
         <id>%id%</id>
         <attribute id="inputLocationId">
            <text>%inputLocationId%</text>
         </attribute>
         <attribute id="variableinputVariable">
            <text>%variable%<<text>%inputVariable%</text>
         </attribute>
         <attribute id="ruleId">
            <text>%ruleId%</text>
         </attribute>
         <attribute id="lowerBound">
            <number>%lowerBound%</number>
         </attribute>
         <attribute id="upperBound">
            <number>%upperBound%</number>
         </attribute>
         <attribute id="ruleOutcome">
            <number>%ruleOutcome%</number>
         </attribute>
      </attributeFile>
   </csvFile>
</locationSet>

...

Code Block
languagexml
<transformation id="test">
   <multipleLocationAttributes>
      <multipleVariateThresholds>
         <ruleId>ruleId</ruleId>
         <variableAttributeId>variable<<variableAttributeId>inputVariable</variableAttributeId>
         <inputLocationAttributeId>inputLocationId</inputLocationAttributeId>
         <lowerBoundAttributeId>lowerBound</lowerBoundAttributeId>
         <lowerBoundInclusiveAttributeId>lowerBoundInclusive</lowerBoundInclusiveAttributeId>
         <upperBoundAttributeId>upperBound</upperBoundAttributeId>
         <upperBoundInclusiveAttributeId>upperBoundInclusive</upperBoundInclusiveAttributeId>
         <ruleOutcomeAttributeId>ruleOutcome</ruleOutcomeAttributeId>
         <outputVariable>
            <variableId>output</variableId>
         </outputVariable>
      </multipleVariateThresholds>
   </multipleLocationAttributes>
</transformation>

...