main
Class FunSiPJar

java.lang.Object
  extended by main.FunSiPJar

public class FunSiPJar
extends java.lang.Object

This class is just meant as the main-contact point when the jar-file is launched. This class then performs the necessary commandline parameter checking, and launches the selected targets from the jar file.

Author:
Michiel Van Bel

Field Summary
static boolean RUN_FROM_JAR
          Accesible boolean indicating whether or not the program is running as a jar-file.
static java.lang.String USER_DIR
          Accesible string indicating the prefix used for selecting outputdirectories.
 
Constructor Summary
FunSiPJar(java.lang.String[] args)
          Constructor method for FunSiPJar.
 
Method Summary
static void main(java.lang.String[] args)
          Main method (indicated by the manifest file).
static java.lang.String setCorrectFilePath(java.lang.String path)
          Changes the pathname when running from a jar-file (some indicators change for some weird reason).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_DIR

public static java.lang.String USER_DIR
Accesible string indicating the prefix used for selecting outputdirectories.


RUN_FROM_JAR

public static boolean RUN_FROM_JAR
Accesible boolean indicating whether or not the program is running as a jar-file.

Constructor Detail

FunSiPJar

public FunSiPJar(java.lang.String[] args)
Constructor method for FunSiPJar. Checks whether or not the -c flag is defined. If so, launch FunSiP with remaining parameters. If not, launch FunSiPGui.

Method Detail

main

public static void main(java.lang.String[] args)
Main method (indicated by the manifest file). Launches the content of the jar-file. In this case, launches the FunSiP-program: either the gui version of the direct non-interactive version (specified by the -c flag).

Parameters:
args - The commandline parameters, used when launching the jar-file.

setCorrectFilePath

public static java.lang.String setCorrectFilePath(java.lang.String path)
Changes the pathname when running from a jar-file (some indicators change for some weird reason).

Parameters:
path - The original pathname.
Returns:
The new pathname.