pilot
Class Pilot

java.lang.Object
  |
  +--pilot.Pilot

public class Pilot
extends java.lang.Object


Field Summary
protected static javax.swing.JButton btnJessViewer
           
protected static int indexSituations_
           
protected static int indexStates_
           
protected static Sampler sampler_
          The sampler property points to the thread that measures the contol values.
protected static Situations situations_
          The situations property points to the object that manages the situations of the application.
protected static States states_
          The states property points to the object that manages the states of the application.
protected static javax.swing.JTable tblSituations_
           
protected static javax.swing.JTable tblStates_
           
protected static int WINDOW_SIZE
          The window size determines the number of past states and situations that are visible in the application.
 
Constructor Summary
Pilot()
           
 
Method Summary
static void addState(java.util.Vector data, int column, javax.swing.JTable table)
          The method addState appends a state to the right of the table that shows the data of the states.
static void appendState(java.util.Vector data, javax.swing.JTable table, int index)
          The method appendState appends a state to the right of the table that shows the data of the states.
static void initializeGUI()
          The method initializeGUI initializes the user interface.
static java.lang.Object[] initPanel(StatesAndSituations ss)
          The method initPanel initializes the panels for states and situations.
static void main(java.lang.String[] args)
          The main method of the application.
static java.util.Vector readChoicesControls(pilot.Element root, java.lang.String type)
          The method readChoicesControls read the choices of the controls in the xml code.
static void readConstraintsSituations(pilot.Element root)
          The method readConstraintsSituations loads the information about the constraints of situations.
static void readControlFile(java.lang.String filename, java.lang.String path)
          The method readVariableList reads and xml file and loads the control information in the data structure for states.
static void readSituationFile(java.lang.String filename, java.lang.String path)
          The method readSituationFile reads the xml file and loads the information about situations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

states_

protected static States states_
The states property points to the object that manages the states of the application.

situations_

protected static Situations situations_
The situations property points to the object that manages the situations of the application.

sampler_

protected static Sampler sampler_
The sampler property points to the thread that measures the contol values.

btnJessViewer

protected static javax.swing.JButton btnJessViewer

tblStates_

protected static javax.swing.JTable tblStates_

tblSituations_

protected static javax.swing.JTable tblSituations_

indexStates_

protected static int indexStates_

indexSituations_

protected static int indexSituations_

WINDOW_SIZE

protected static final int WINDOW_SIZE
The window size determines the number of past states and situations that are visible in the application.
Constructor Detail

Pilot

public Pilot()
Method Detail

main

public static void main(java.lang.String[] args)
The main method of the application. All objects are initialized and data files are read. The user interface is set up.
Parameters:
args - The arguments of the application.

initializeGUI

public static void initializeGUI()
The method initializeGUI initializes the user interface.

initPanel

public static java.lang.Object[] initPanel(StatesAndSituations ss)
The method initPanel initializes the panels for states and situations.
Parameters:
ss - State or situation.
Returns:
A 2-dimensional array with the panel and the table in the panel.

readControlFile

public static void readControlFile(java.lang.String filename,
                                   java.lang.String path)
The method readVariableList reads and xml file and loads the control information in the data structure for states.
Parameters:
filename - The xml filename with the data about the controls.
path - Pathname where the xml file resides.

readSituationFile

public static void readSituationFile(java.lang.String filename,
                                     java.lang.String path)
The method readSituationFile reads the xml file and loads the information about situations.
Parameters:
filename - The xml filename with the data about the situations
path - Pathname where the xml file resides.

readChoicesControls

public static java.util.Vector readChoicesControls(pilot.Element root,
                                                   java.lang.String type)
The method readChoicesControls read the choices of the controls in the xml code.
Parameters:
root - The xml element of the control
type - The type of control
Returns:
A vector containing the choices.

readConstraintsSituations

public static void readConstraintsSituations(pilot.Element root)
The method readConstraintsSituations loads the information about the constraints of situations.
Parameters:
root - The root element of a situation.

addState

public static void addState(java.util.Vector data,
                            int column,
                            javax.swing.JTable table)
The method addState appends a state to the right of the table that shows the data of the states.
Parameters:
data - The data vector that will be added.
column - The column where the data should be added
table - The table where the data should be added

appendState

public static void appendState(java.util.Vector data,
                               javax.swing.JTable table,
                               int index)
The method appendState appends a state to the right of the table that shows the data of the states.
Parameters:
data - The data vector that will be added.
table - The table where the data should be added
index - The actual index of the data