Home
Categories
Dictionary
Glossary
Download
Project Details
Changes Log
What Links Here
FAQ
License

Scenario data constraints



Data existence

Each data defined in the scenario must be defined for one of the provided Services. Data which do not exist will be ignored.

The Data will be silently ignored if the "checkDatas" property is set to false, else a warning will be emitted during the Scenario parsing

Data type

The datas defined in the scenario must have one of the following types:

The scenario engine uses recursion with the types. This means that there is no limit on the depth of the types. For example you can use the following structure in the engine:
      <types>
         <simpleType name="bool" baseType="boolean" />
         <simpleType name="int" baseType="int" />
         <simpleType name="string" baseType="string" />
         <arrayType name="arrayofInt" baseType="int" />
         <structType name="element" >
            <field name="elementID" type="int" />
            <field name="elementName" type="string" />
         </structType>
         <arrayType name="arrayofElements" baseType="element" />
         <structType name="struct" >
            <field name="fieldBool" type="bool" />
            <field name="fieldInt" type="int" />
            <field name="fieldArray" type="arrayofInt" />
            <field name="fieldArray2" type="arrayofElements" />
         </structType>
         <arrayType name="structArray" type="struct" />
      </types>

Examples

Declaration of a simple type

scenarioSimpleType

Declaration of an array

scenarioArrayType

Declaration of an array of structure

We have the following types definition:
      <types>
         <simpleType name="bool" baseType="boolean" />
         <simpleType name="int" baseType="int" />
         <structType name="struct" >
            <field name="fieldBool" type="bool" />
            <field name="fieldInt" type="int" />
         </structType>
         <arrayType name="structArray" type="struct" />
      </types>
And the scenario:
scenarioArrayStructType

Declaration of an array of structure with an array field

We have the following types definition:
      <types>
         <simpleType name="bool" baseType="boolean" />
         <simpleType name="int" baseType="int" />
         <arrayType name="arrayInt" type="int" />
         <structType name="struct" >
            <field name="fieldBool" type="bool" />
            <field name="fieldArray" type="arrayInt" />
         </structType>
         <arrayType name="structArray" type="struct" />
      </types>
And the scenario:
scenarioArrayStructArrayType

See also


Categories: builtin-applis

Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence