Function | invoke services or be notified from services |
Distribution | UserInputs-bin- |
Jar files | userInputs.jar |
Modules | userInputs |
Provided services | through module configuration |
Required services | through module configuration |
Optional properties | triggered blocking keepHistory historySize showTimeStamp timeStampFormat filterEventsForHistory guiPosition |
guiPosition
property allows to specify the position of the userInput GUI. The format is <x position;>;<y position;
. For example:<properties> <application name="userInputs" > <module name="userInputs" > <moduleProperty key="guiPosition" value="500;500" /> </module> </application> </properties>
triggered
enumeration property allows to specify in what cases the GUI will be updated when a service is received:always
(the default): the data content of each service will be updated whenever this service is receivedevent
: only the data content of event Services and request-response Services will be updated whenever a service is receivednever
: the data content of a service will never be updated whenever this service is receivedPosition
service which would be updated each 100 ms).
blocking
boolean property specifies if the update of the GUI blocks the execution (default is false).
keepHistory
: true if the content of incoming services at the time of the reception is stored. It means that that values of the datas at the time of the reception of the service will be memorized and shown when clicking on the service in the logger area (by default only the last value of the datas for the service will be shown)historySize
: the maximum size of the history (-1 is used for a history with no maximum size). it means that if new services are shown in the logger area after this size has been reached, older services will be removed and clicking on them in the area will show the last version of the datas rather than the one at time of the receptionshowTimeStamp
: true to show the timestamp of the reception for each service. The format of the timestamp depends on the timeStampFormat
propertytimeStampFormat
: specifies the format of the time stampfilterEventsForHistory
: true if only event services will be kept for the historykeepHistory
property is set to true, the content of incoming services at the time of the reception will be stored. It means that that values of the datas at the time of the reception of the service will be memorized and shown when clicking on the service in the logger area (by default only the last value of the datas for the service will be shown).<properties> <application name="userInputs" > <module name="userInputs" > <moduleProperty key="keepHistory" value="true" /> <moduleProperty key="showTimeStamp" value="true" /> </module> </application> </properties>
showTimeStamp
and timeStampFormat
properties specifies if and how the time stamp of the reception for each service are shown in the Logger area:showTimeStamp
: true to show the timestamp of the reception for each service. The format of the timestamp depends on the timeStampFormat
propertytimeStampFormat
: specifies the format of the time stamptimeStampFormat
value is fromStart
(the default), then the timestamp shows the time in seconds and milliseconds since the start of the frameworktimeStampFormat
value is systemTime
, then the timestamp shows the time in milliseconds using the system time (number of milliseconds since epoch)<properties> <application name="Inputs" > <module name="userInputs" > <moduleProperty key="keepHistory" value="true" /> <moduleProperty key="showTimeStamp" value="true" /> </module> </application> </properties>The following properties file shows the timestamp in milliseconds using the system time:
<properties> <application name="Inputs" > <module name="userInputs" > <moduleProperty key="keepHistory" value="true" /> <moduleProperty key="showTimeStamp" value="true" /> <moduleProperty key="timeStampFormat" value="system" /> </module> </application> </properties>
<interfaces> <subscribe service="aircraft" /> <subscribe service="scenario" /> <subscribe service="caslist" /> <eventSend service="casactions" /> </interfaces>
computeFlightPlan
Service:<applications> <application name="aircraft"> <modules> <module name="Display" > <interfaces> <requestSend service="computeFlightPlan"/> </interfaces> </module> <module name="FlightManagementSystem" > <interfaces> <requestReceived service="computeFlightPlan"/> </interfaces> </module> </modules> </application> <application name="debug"> <deployment> <lib url="userInputs.jar" /> </deployment> <modules> <module name="debugModule"> <interfaces> <listen service="computeFlightPlan"/> </interfaces> </module> </modules> </application> </applications>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence