latitude
and longitude
each time you send the event.<services> <event name="directTo" id="1" > <data name="waypoint" type="int" /> </event> </services>Note that it is allowed to have an event Service without any associated datas.
copyDatas
attribute of the service. For example:<services> <event name="directTo" copyDatas="true" > <data name="waypoint" type="int" /> </event > </services>
interfaces
element for the module configuration:eventSend
elementeventReceived
element<module name="theSender" > <interfaces> <eventSend service="myEvent"/> </interfaces> </module> <module name="theReceiver" > <interfaces> <eventReceived service="myEvent"/> </interfaces> </module>
event
Service use case is typically cases where you want to send events associated with datas. An event
Service must be invoked when states of the system change[2]
publish
Service would be much more adaptedevent
Service to invoke a DirectTo order demanding the aircraft to go to a specified Waypoint.
directTo
service definition: <services> <event name="directTo" id="1" > <data name="waypoint" type="int" /> </event > </services>And the
LeftDisplay
, RightDisplay
and FlightManagementSystem
modules definition:<applications> <application name="aircraft" id="1"> <modules> <module name="LeftDisplay" id="1" > <interfaces> <eventSend service="directTo" attach="attach"/> </interfaces> </module> <module name="RightDisplay" id="2" > <interfaces> <eventSend service="directTo" attach="attach"/> </interfaces> </module> <module name="FlightManagementSystem" id="3" > <interfaces> <eventReceived service="directTo"/> </interfaces> </module> </modules> </application> </applications>The
LeftDisplay
and RightDisplay
modules provide the directTo
Service (for example when clicking on a "DirectTo" button on the Display). The FlightManagementSystem
module is notified of the event, allowing it to perform a "DirectTo" to the specified Waypoint.Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence