be.hogent.tarsos
Class Tarsos

java.lang.Object
  extended by be.hogent.tarsos.Tarsos

public final class Tarsos
extends java.lang.Object

This is the starting point of the Tarsos application suite. It's main task is to start other applications and to maintain state. Creating the needed directories, checking the runtime, configure logging... also passing, minimal parsing and checking arguments are tasks for this class.

Author:
Joren Six

Field Summary
static java.awt.Color[] COLORS
          Colors used by ptplot.
 
Method Summary
static Tarsos getInstance()
          Thread safe singleton implementation.
static boolean isMac()
           
static void main(java.lang.String... args)
          Starts Tarsos.
static void println(java.lang.String info)
          Prints info to a stream (console).
 void registerApplication(java.lang.String name, AbstractTarsosApp application)
          Register a Tarsos application.
 void run(java.lang.String... arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLORS

public static final java.awt.Color[] COLORS
Colors used by ptplot.

Method Detail

registerApplication

public void registerApplication(java.lang.String name,
                                AbstractTarsosApp application)
Register a Tarsos application.

Parameters:
name - The name (parameter) of the Tarsos application. The parameter is used in java -jar tarsos.jar application.
application - The instance that represents the Tarsos application.

run

public void run(java.lang.String... arguments)
Parameters:
arguments - The arguments for the program.

isMac

public static boolean isMac()

getInstance

public static Tarsos getInstance()
Thread safe singleton implementation.

Returns:
The only instance of the Tarsos application.

main

public static void main(java.lang.String... args)
Starts Tarsos. A command line application is started when command line arguments are present, otherwise the UI is used.

Parameters:
args - The arguments consist of a subcommand and options for the subcommand. E.g.
 java -jar annotate --in blaat.wav
 java -jar annotate -bufferCount blaat.wav
 

println

public static void println(java.lang.String info)
Prints info to a stream (console).

Parameters:
info - The information to print.