<services> <event name="directTo" id="1" > <data name="waypoint" type="int" /> </event > </services>
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>
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>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence