<services> <requestResponse name="computeFlightPlan" id="1" > <request> <data name="waypointList" type="arrayOfInt" /> </request> <response> <data name="flightPlan" type="arrayOfPosition" /> </response> </requestResponse> </services>See also services configuration.
interfaces element for the module configuration:requestSend elementrequestReceived elementtimeOut property.<module name="theSender" > <interfaces> <requestSend service="myRequest"/> </interfaces> </module> <module name="theReceiver" > <interfaces> <requestReceived service="myRequest" timeOut="500ms"/> </interfaces> </module>
timeOut attribute specified how long (in ms) the subscriber must wait before the response is declared as timed out. The default value is 300ms. For example:<requestSend service="position" timeOut="500ms" />A value of "none" for the
timeOut attribute specifies that there is no timeOut specified for the request, which means that the response will never *be decklared as time out regardless of the time used by the perovider to return the response.
publish Service use case is typically cases where you want to send datas to as many subscribers as necessary. A publish Service can be invoked as often as necessery (even cyclically).publish Service to publish an aircraft position (see the example below).
computeFlightPlan service definition: <services> <requestResponse name="computeFlightPlan" id="1" > <request> <data name="waypointList" type="arrayOfInt" /> </request> <response> <data name="flightPlan" type="arrayOfPosition" /> </response> </requestResponse> </services>And the
FlightManagementSystem and Display modules definitions:<applications> <application name="aircraft" id="1"> <modules> <module name="Display" id="1" > <interfaces> <requestSend service="computeFlightPlan"/> </interfaces> </module> <module name="FlightManagementSystem" id="2" > <interfaces> <requestReceived service="computeFlightPlan"/> </interfaces> </module> </modules> </application> </applications>The
Display module sends a request for the computeFlightPlan Service, with a list of Waypoints numbers. The FlightManagementSystem modules replies with the associated list of positions for the FlightPlan points. The Display module is notified of the response, allowing it to show the new FlightPlan on the Display.
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence