<application name="Aircraft" id="1">See also the identification article for the constraints on naming and identification. Note that the identification can be omitted. For example, the following definition is valid:
<application name="Aircraft" >
deployment element declares the Jar files which contain the Java code for each application[2]
<application name="Aircraft"> <deployment> <lib url="aircraft.jar" /> </deployment> ... </application>Note that the deployment is not necessary if the application do not contain any Java module.
deployment element can be put at the top of the applications elements children. For example:<applications> <deployment> <lib url="commonLibrary.jar" /> </deployment> <application name="Aircraft"> <deployment> <lib url="aircraft.jar" /> </deployment> ... </application> <application name="Cockpit"> <deployment> <lib url="cockpit.jar" /> </deployment> ... </application> </applications>
modules element declares the list of modules which are hosted in the application. Each module child element declares one module.modules element and put the unique module directly under the application.
Aircraft application hosts four modules:InertialNavSystem module computes the current position of the aircraftFlightManagementSystem module computes the Flight plan and sends the events during the aircraft route on the Flight planGuidanceSystem module computes the aircraft trajectoryCockpit module<application name="Aircraft" id="1"> <deployment> <lib url="aircraft.jar" /> </deployment> <modules> <module name="InertialNavSystem" id="1" > ... </module> <module name="FlightManagementSystem" id="2" > ... </module> <module name="GuidanceSystem" id="3" > ... </module> <module name="Cockpit" id="4" > ... </module> </modules> </application>
Aircraft application hosts four modules:InertialNavSystem module computes the current position of the aircraftFlightManagementSystem module computes the Flight plan and sends the events during the aircraft route on the Flight planGuidanceSystem module computes the aircraft trajectoryCockpit module<application name="Aircraft"> <deployment> <lib url="aircraft.jar" /> </deployment> <modules> <module name="InertialNavSystem" > <implementation path="org.da.aircraft.ins.INS" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> <defaultSendEntryPoint method="send" /> </implementation> <interfaces> <push service="position" /> </interfaces> </module> <module name="FlightManagementSystem" > <implementation path="org.da.aircraft.fms.FMS" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> <defaultSendEntryPoint method="send" /> </implementation> <interfaces> <subscribe service="position"/> <eventSend service="flightPlanEvents" /> <requestReceived service="computeFlightPlan"/> </interfaces> </module> <module name="GuidanceSystem" > <implementation path="org.da.aircraft.guidance.Guidance" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> <defaultSendEntryPoint method="send" /> </implementation> <interfaces> <eventReceived service="flightPlanEvents" /> <subscribe service="position"/> </interfaces> </module> <module name="Cockpit"> <implementation path="org.da.aircraft.mmi.Cockpit" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> <defaultSendEntryPoint method="send" /> </implementation> <interfaces> <eventReceived service="flightPlanEvents" /> <requestSend service="computeFlightPlan"/> </interfaces> </module> </modules> </application>
Cockpit application hosts only one module:Cockpit modulemodules element with only the Cockpit module under itCockpit module directly under the application element<application name="Cockpit"> <deployment> <lib url="cockpit.jar" /> </deployment> <modules> <module name="Cockpit" > ... </module> </modules> </application>or:
<application name="Cockpit"> <deployment> <lib url="cockpit.jar" /> </deployment> <module name="Cockpit" > ... </module> </application>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence