ds.ov2.gui
Class Ov_demo

java.lang.Object
  extended by ds.ov2.gui.Ov_demo

public class Ov_demo
extends Object

Root class for the application logic of the graphical demonstrator. Having such a root class was a nice idea, which however got only little support. So only very little is done here: The constructor parses the command line and creates the interlocked instances of Card_protocols, Gui_actions and Progress_messages.

Apart from the standard swing accelerator keys the following key strokes are defined.

q and CTRL-Q
immediately quit the application

The OV-chip graphical demonstrator recognizes the following options.

-load-ptls-params-file file
Load a set of PTLS parameters from file on startup.
-jcop-port p
Set the port number(s) for the jcop emulator. The option can be given multiple times to configure more than one emulator. Default is one emulator at port 8015.

Execution Environment:
host
Author:
Hendrik Tews
Version:
$Revision: 1.10 $
Last Commit:
$Date: 2009-06-22 21:09:39 $ by $Author: tews $

Field Summary
private  Card_protocols card_protocols
          Card protocols instance of the graphical demonstrator.
 Gui_actions gui_actions
          Gui actions instance of the graphical demonstrator.
private  Option[] options
          Array of recognized command line options.
 Progress_messages progress_window
          Progress window.
private  String short_application_name
          Short application name for error messages during option parsing.
 
Constructor Summary
Ov_demo(String[] args, Ov_demo_gui gui)
          Constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

short_application_name

private final String short_application_name
Short application name for error messages during option parsing.

See Also:
Constant Field Values

card_protocols

private Card_protocols card_protocols
Card protocols instance of the graphical demonstrator.


gui_actions

public final Gui_actions gui_actions
Gui actions instance of the graphical demonstrator.


progress_window

public final Progress_messages progress_window
Progress window. The window does always exist and the application permanentely writes to the progress text pane therein. The relevant buttons only change the visibility of the progress window. They do not create or destroy it.


options

private final Option[] options
Array of recognized command line options.

Constructor Detail

Ov_demo

public Ov_demo(String[] args,
               Ov_demo_gui gui)
Constructor. Parse the command line and create some of the necessary instances for the GUI.

Parameters:
args - the command line arguments, they are ignored
gui - the GUI instance, currently also ignored