Home
Categories
Dictionnary
Download
Project Details
Changes Log
Who We Are
FAQ
License

Using the Client


    1  Configuration file
    2  Start the Client
    3  Connect the Client
    4  Start the associated Server
    5  Send commands to the Server
    6  See also

This tutorial explains how to open and use the client. We will use existing files in the "config" and "samples" directories of the J661 project binary release.

Configuration file

We will use the arincWindowJFX.properties properties File which is in the "config" directory:
      graphics=DefGraphics.xml
      ui=LookAndFeel.xml
      pictures=DefPictures.xml
      lf=JavaFX
      supplement=6
      warnForUndefAttrs=false
      serverInputPort=8080
      serverOutputPort=8081
      serverInputSize=50000
      serverOutputSize=200
      server.autoVisible=true
      logServerArea=true
      windowManager=windows
      server.windows=../samples/simpleWindow.xml
      server.computeLayerSize=false
      server.superLayer=true
      server.menus=true
      server.uiCombo=true
      logMaximumLines=50
      maximumQueueSize=50


The major characteristics of this configuration are explained in the Server tutorial. Note that concerning the communication:

Start the Client

We will use the Client launcher:

      java −jar arincClient.jar
As the configuration file is not defined here, the Client will ask for it. Look for the arincWindowJFX.properties properties File which is in the "config" directory.
After setting the configuration file, the Client will ask for Additional Definition Files (SuperLayer). It is because the cockpit configuration defines a SuperLayer cockpit:

      windowManager=windows
      server.windows=../samples/simpleWindow.xml
      server.superLayer=true

In this case the Client will ask for an additional SuperLayer Definition File to be able to change the cockpit configuration at runtime. As we won't use this capability in this tutorial (and keep a fixed cockpit configuration), we will just type cancel in the dialog box.
One window will appear:

Connect the Client

You can connect the client by clicking on the "Connect" button. You can also disconnect at any moment by clicking on the same button again.

Start the associated Server

The configuration we used is the same as the one used for the Server tutorial. Start a Server as explained in this tutorial. You will have two other Windows for the Server: The Server Display Window:



The Server options Window:


Note that the Server is automatically connected at start.

Send commands to the Server

We will change the fill color of the triangle: The display of the Server should be:

See Also


Category: tutorials Category: client Category: user Category: cockpit

Copyright 2016 Dassault Aviation. All Rights Reserved. Documentation and source under the GPL v2 licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help