EScope0: A "do nothing" code refactoring using packages
EScope0 is essentially the same of PreEScope4, except for the fact that source files are
now organized in packages.
This application defines three panels. At the left side, when a database is open, the
hierarchical structure is displayed and it is possible to navigate in the tree. When a
node containing a valid signal is clicked, the corresponding waveform is displayed in the
central panel. It is then possible to drag a crosshair over the displayed waveform, and
the currenly selected (X, Y) pair values are printed in the upper panel.
The File Menu Bar option allows to:
- connect to a MDSplus server. The default server and port is localhost
and 8000, i.e. a MDSplus data server running locally on port 8000 (the
default configuration)
- open an experiment and shot. The default experiment and port is edam
and 17615, respectively. They correspond to a database which is provided
by the installer.
- exit from the application
To exercise this program the following steps are required:
- If not already running, start a MDSplus data server. On windows, click on start->programs->MDSplus->MDSDataserver.
On Linux, run script start_mdsip.
- Change directory in <source root>/escopes/escope0, where <source
root> is the directory where you copied the source directory
in the CD.
- Include the current directory in your CLASSPATH environmante variable. On Windows this
can be done by changing the CLASSPATH definition in Control Panel/System setting, or by
the command
set CLASSPATH=.;%CLASSPATH%
On Linux (bash shell) this can be done by the command
export CLASSPATH=.:$CLASSPATH
- Compile the java source files with the command
javac *.java
- Run the program with no arguments.
java EScope0
When the edam database is open, valid signals are listed in the SIGNALS.PB
subtree.
Unlike PreEScopes, the source files for EScopes are organized in directories. The usage
of directories is required by the package definition.
View Source