org.jscience.architecture.traffic
Class TrafficStarter

java.lang.Object
  extended by org.jscience.architecture.traffic.TrafficStarter

public class TrafficStarter
extends java.lang.Object

The general class which is used to start up the editor or simulator


Field Summary
protected static int EDITOR
          DOCUMENT ME!
protected  java.lang.String filename
          DOCUMENT ME!
protected  boolean loadFile
          DOCUMENT ME!
protected  boolean noFurtherOptions
          DOCUMENT ME!
protected  java.lang.String[] params
          DOCUMENT ME!
protected static int SIMULATOR
          DOCUMENT ME!
protected  boolean splashScreen
          DOCUMENT ME!
protected static int type
          DOCUMENT ME!
 
Constructor Summary
protected TrafficStarter(java.lang.String[] params, int startType)
          Make a new GLDStarter
 
Method Summary
 Controller getController()
          Method which gives the right controller for starting
static int getProgramModus()
          Indicates what kind of program is running in this VM (EDITOR or SIMULATOR).
 java.lang.String getStarterName()
          Method which gives the right main class name for error messages
 void illegalParametersError()
          This method is called when a command line parameter is encountered that we do not understand.
 void processOption(java.lang.String option)
          Each option parameter (parameter that begins with a dash) is processed by this method
 void processParams()
          Process the command line parameters that where specified when the program was started.
 void start()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected static int type
DOCUMENT ME!


EDITOR

protected static final int EDITOR
DOCUMENT ME!

See Also:
Constant Field Values

SIMULATOR

protected static final int SIMULATOR
DOCUMENT ME!

See Also:
Constant Field Values

splashScreen

protected boolean splashScreen
DOCUMENT ME!


loadFile

protected boolean loadFile
DOCUMENT ME!


noFurtherOptions

protected boolean noFurtherOptions
DOCUMENT ME!


filename

protected java.lang.String filename
DOCUMENT ME!


params

protected java.lang.String[] params
DOCUMENT ME!

Constructor Detail

TrafficStarter

protected TrafficStarter(java.lang.String[] params,
                         int startType)
Make a new GLDStarter

Parameters:
params - The command line parameters with which the real main class was loaded.
startType - The type of the controller
Method Detail

getProgramModus

public static int getProgramModus()
Indicates what kind of program is running in this VM (EDITOR or SIMULATOR). The method returns -1 if the program is not yet running.

Returns:
DOCUMENT ME!

processParams

public void processParams()
Process the command line parameters that where specified when the program was started.


processOption

public void processOption(java.lang.String option)
Each option parameter (parameter that begins with a dash) is processed by this method

Parameters:
option - option, including dash sign

illegalParametersError

public void illegalParametersError()
This method is called when a command line parameter is encountered that we do not understand. It prints an error message.


start

public void start()
DOCUMENT ME!


getController

public Controller getController()
Method which gives the right controller for starting

Returns:
DOCUMENT ME!

getStarterName

public java.lang.String getStarterName()
Method which gives the right main class name for error messages

Returns:
DOCUMENT ME!