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

Modules data sharing



If two modules are hosted in two different applications, they won't share their datas for any Services. The modules hosted in the same application will share the datas for the same services. On the contrary, if two modules are hosted in two different applications, they will not share the their datas for all Services.

Examples

The two following example use the same service specification:
      <services>
         <event name="directTo" id="1" >
            <data name="waypoint" type="int" />
         </event >
      </services>

First example: Shared datas between modules

For the following applications specification, the Display and FlightManagementSystem modules share the same waypoint data: When the Display module sends the directTo event to the FlightManagementSystem module, the FlightManagementSystem is notified but the value of the waypoint is not copied from one module to another, because they share the same reference:
      <applications>
         <application name="aircraft" id="1" >
            <modules>
               <module name="Display" id="1" >
                  <interfaces>
                     <eventSend service="directTo" attach="attach"/>
                  </interfaces>
               </module>
               <module name="FlightManagementSystem" id="3" >
                  <interfaces>
                     <eventReceived service="directTo"/>
                  </interfaces>
               </module>
            </modules>
         </application>
      </applications>

Second example: Unshared datas between modules

For the following applications specification, the Display and FlightManagementSystem modules use separate waypoint data: When the Display module sends the directTo event to the FlightManagementSystem module, the FlightManagementSystem is notified and the value of the waypoint is copied from one module to another:
      <applications>
         <application name="Display" id="1" >
            <modules>
               <module name="Display" id="1" >
                  <interfaces>
                     <eventSend service="directTo" attach="attach"/>
                  </interfaces>
               </module>
            </modules>
         </application>
         <application name="System" id="2" >
            <modules>
               <module name="FlightManagementSystem" id="3" >
                  <interfaces>
                     <eventReceived service="directTo"/>
                  </interfaces>
               </module>
            </modules>
         </application>
      </applications>

See also


Categories: concepts

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