tacticalEnvCommon.jar Jar file in the global deployment because this library must be shared between the tacticalEnv Application and the UA application. If you don't do that, you would encounter a ClassCast exception[3]
: <applications> <deployment> <lib url="tacticalEnvCommon.jar" /> </deployment> ... </applications>The UA Application has the following module configuration:
<application name="uaappli"> <deployment> <lib url="UAApplication.jar" /> <lib url="UAAppliHelper.jar" /> </deployment> <modules> <module name="uaappli"> <interfaces> <eventReceived service="worldConfig" uri="http://dassault-aviation.com/tacticalenv"/> <eventReceived service="flightplansModel" uri="http://dassault-aviation.com/tacticalenv"/> <eventReceived service="worldModel" uri="http://dassault-aviation.com/tacticalenv"/> <eventReceived service="waypointsModel" uri="http://dassault-aviation.com/tacticalenv"/> <subscribe service="aircraftsModel" uri="http://dassault-aviation.com/tacticalenv"/> </interfaces> </module> </modules> </application>It will be notified from the following services:
worldConfig service to set the center of the mapworldModel service to set the FEBA and the ZonesflightplansModel and waypointsModel services to set the flightplan and the WaypointsaircraftsModel service to update the position of the Aircraft<properties> <application name="uaappli" > <module name="uaappli" > <moduleProperty key="uaImpl" value="SyntheticMapSample.jar" /> <moduleProperty key="uaPath" value="org.da.arinc.syntheticmap.SyntheticMapSample" /> <moduleProperty key="a661Config" value="arinc/arincserver.properties" /> <moduleProperty key="includeServer" value="true" /> </module> </application> <application name="tacticalenv"> <module name="tacticalenv"> <moduleProperty key="scenario" value="tacticalEnv.xml" /> </module> </application> </properties>In these properties, we specify that:
tacticalEnv.xml file for the scenariotacticalEnv.xml file for the scenarioSyntheticMapSample.jarorg.da.arinc.syntheticmap.SyntheticMapSamplearinc/arincserver.properties filefilelist.xml file for our configuration, as for all our other tutorials:
java -jar protoframework.jar config=filelist.xml
As you see, in this configuration, the Aircraft does not move. In the next step, we will very simply make it move alongside the FlightPlan.
activate: to specify that the tactical environment can moveupdatePeriod: to specify the updating period of the tactical environment<properties> <application name="uaappli" > <module name="uaappli" > <moduleProperty key="uaImpl" value="SyntheticMapSample.jar" /> <moduleProperty key="uaPath" value="org.da.arinc.syntheticmap.SyntheticMapSample" /> <moduleProperty key="a661Config" value="arinc/arincserver.properties" /> <moduleProperty key="includeServer" value="true" /> </module> </application> <application name="tacticalenv"> <module name="tacticalenv"> <moduleProperty key="scenario" value="tacticalEnv.xml" /> <moduleProperty key="activate" value="true" /> <moduleProperty key="updatePeriod" value="1s" /> </module> </application> </properties>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence