Introduction to TSAFE

What do you need:

For running TSAFE: For compiling TSAFE: or (use the latest stable versions to make sure that everything is working correctly)

Contents of the archive

Installing TSAFE

Extract the complete zip archive to a folder of your choice.

Starting TSAFE

  1. Start the "DELAY_server.py" in the "server/" directory.
    It will read data from the file test1.txt.
    It should start with the message "Serving data on port 4500".
  2. Start the "Tsafe.jar".
  3. Click the Data Sources tab and change the "Data Files" to the right path.
    You will find the data filess  in the folder "datafiles/".
  4. Click the map tab and change the path to the "Background Image".
    You will find the map in the folder "datafiles/".
  5. Click "Save configuration".
  6. Leave everything else untouched and click on "Launch TSAFE"
    It can take a while till the map is loaded and the first flights show on the screen.

Programming with Eclipse

Importing the Project in Eclipse:
  1. Start Eclipse.
  2. File -> Import
  3. Choose "Existing Project into Workspace" and click on "Next".
  4. Enter the path to the extracted archive and click on "Finish"
  5. Windows -> Preferences
  6. Java -> Build Path -> Classpath Variables
  7. Click on "New" and enter the following:
    Name: LIB_FIGIO
    Path: {path to extracted archive}/lib/figio.lib
  8. Click on "OK" two times.
Using the Ant script to make a jar file:
  1. Window -> Show View -> Ant
  2. Make a right click in the Ant view and choose "Add Buildfiles ..."
  3. Double click on the build.xml
  4. If you click on the play button in the Ant view, the script generates
    a jar file and copies it, and all the stuff which is needed to run it,
    in the "build/" directory.
(the steps you have to do can slighty differ, depending on the version and your
configuration of Eclipse)

Programming with Make

Make is only used for compiling and running TSAFE. You have to use a normal
texteditor to change the sourcecode.
  1. Change the "ROOT_PATH" in the "env.mk" file to the path
    where you have extracted the archive.
  2. Change to the directory where you have extracted the archive.
  3. Type "make " and one of the following options:

The makefile has only been tested with Linux, however there is a version of make
available for windows, so it should be possible to use it on windows.

More information

See the user's guide for more information on how to install and run TSAFE.