Function | replay a recorder scenario defined in an XML file |
Distribution | scenarioEngine-bin- |
Jar files | playerEngine.jar |
Modules | player |
Provided services | none |
Required services | none |
Optional properties | scenario scenarios speed bufferSize autoStart autoAdjust guiPosition |
Image |
<x position;>;<y position;
acDatas
and fuelState
services will be replayed:<interfaces> <subscribed service="acDatas"/> <eventReceived service="fuelState"/> </interfaces>
<application name="player"> <module name="replay1"> <moduleProperty value="true" key="autoStart"/> <moduleProperty key="scenario" value="recordedSystem.xml"/> <moduleProperty value="10000" key="bufferSize"/> </module> <module name="replay2"> <moduleProperty value="true" key="autoStart"/> <moduleProperty key="scenario" value="recordedClock.xml"/> <moduleProperty value="10000" key="bufferSize"/> </module> </application>Or only one player playing the two scenarios which will allow to manage the speed consistently for the two scenarios:
<application name="player"> <module name="replay"> <moduleProperty value="true" key="autoStart"/> <moduleArrayProperty key="scenarios"> <value value="recordedSystem.xml" /> <value value="recordedClock.xml" /> </moduleArrayProperty> <moduleProperty value="10000" key="bufferSize"/> </module> </application>
<applications> <application name="eventAppli" > <deployment> <lib url="samples1Event.jar" /> </deployment> <modules> <module name="EventModule" > <implementation path="org.da.samples.protoframework.event.EventModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> </implementation> <interfaces> <eventSend service="event" attach="attach"/> <subscribe service="published" /> </interfaces> </module> </modules> </application> <application name="publishAppli" > <deployment> <lib url="samples1Publish.jar" /> </deployment> <modules> <module name="PublishModule" > <implementation path="org.da.samples.protoframework.publish.PublishModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> <defaultSendEntryPoint method="publish" /> </implementation> <interfaces> <eventReceived service="event"/> <cyclic service="published" frequency="200ms" attach="attach"/> </interfaces> </module> </modules> </application> </applications>Suppose that we have recorded a scenario using the recorder application. We can for example replace the
publishAppli
by the player to get the published
service:<applications> <application name="eventAppli" > <deployment> <lib url="samples1Event.jar" /> </deployment> <modules> <module name="EventModule" > <implementation path="org.da.samples.protoframework.event.EventModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> </implementation> <interfaces> <eventSend service="event" attach="attach"/> <subscribe service="published" /> </interfaces> </module> </modules> </application> <application name="player" > <deployment> <lib url="playerEngine.jar" /> </deployment> <modules> <module name="player" > <interfaces> <push service="published" /> </interfaces> </module> </modules> </application> </applications>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence