|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SwingWorker | +--SetupCommand
Field Summary | |
private int |
array_columns
|
private int |
array_rows
|
private int |
bits_per_pixel
|
protected int |
config_word
|
private boolean |
did_timing
|
private boolean |
do_dimensions
|
private boolean |
do_hardware_test
|
private boolean |
do_pci
|
private boolean |
do_pci_hardware_test
|
private boolean |
do_power_on
|
private boolean |
do_reset_controller
|
private boolean |
do_timing
|
private boolean |
do_timing_app
|
private boolean |
do_timing_file
|
private boolean |
do_timing_hardware_test
|
private boolean |
do_utility
|
private boolean |
do_utility_app
|
private boolean |
do_utility_file
|
private boolean |
do_utility_hardware_test
|
private DspCommand2 |
dsp_cmd
|
private LoadDspFile |
dsp_file
|
private int |
image_bytes
|
private int |
number_of_pci_tests
|
private int |
number_of_timing_tests
|
private int |
number_of_utility_tests
|
protected SetupDialog |
parent
|
private PCIBoot |
pci_boot
|
private java.lang.String |
pci_filename
|
private boolean |
setup_applied
|
private int |
tim_app_number
|
private int |
tim_done
|
private java.lang.String |
timing_filename
|
private int |
util_app_number
|
private int |
util_done
|
private java.lang.String |
utility_filename
|
Fields inherited from class SwingWorker |
abort,
thread,
value |
Constructor Summary | |
SetupCommand(SetupDialog parent)
Class constructor. |
Method Summary | |
(package private) static void |
|
private java.lang.Object |
apply()
This method sends all the setup information to the PCI interface board. |
static int |
Cdeinterlace(int rows,
int cols,
int image_fd,
int algorithm)
|
void |
clear()
This method sets all the SetupDialog class user input components to their default values and clears all textfields. |
java.lang.Object |
construct()
This method initiates the download. |
void |
finished()
This method sets the "Apply" button back to "Apply". |
int |
get_ccd_cols()
This method gets the number of array columns (in pixels). |
int |
get_ccd_rows()
This method gets the number of array rows (in pixels). |
int |
get_image_bytes()
This method gets the number of bytes in the image. |
int |
get_image_resolution()
This method gets the image resolution in bits/pixel. |
private void |
read_controller_config()
This method reads and sets the controller configuration. |
void |
set_array_cols(java.lang.String columns)
This method sets the number of array columns (in pixels). |
void |
set_array_rows(java.lang.String rows)
This method sets the number of array rows (in pixels). |
void |
set_dimensions(boolean dimensions)
This method sets the array dimensions control to on/off. |
void |
set_hardware_test(boolean hardware_test)
This method sets the hardware tests to on/off. |
void |
set_hardware_test(int board,
java.lang.String number_of_tests)
This method sets the number of hardware tests to perform. |
void |
set_image_bytes(int columns,
int rows)
This method sets the number of bytes in the image. |
void |
set_image_resolution(int bpp)
This method sets the image resolution in bits/pixel. |
void |
set_pci_filename(java.lang.String pci_file)
This method sets the PCI file to download. |
void |
set_pci_test(boolean do_pci_test)
This method sets the PCI hardware tests to on/off. |
void |
set_pci(boolean pci)
This method sets the PCI download to on/off. |
void |
set_power_on(boolean power_on)
This method sets the power on to on/off. |
void |
set_reset_controller(boolean reset_controller)
This method sets the controller reset to on/off. |
void |
set_timing_app(boolean timing_app)
This method sets the Timing application download to on/off. |
void |
set_timing_application(java.lang.String timing_app)
This method sets the Timing application to download. |
void |
set_timing_file(boolean timing_file)
This method sets the Timing file download to on/off. |
void |
set_timing_filename(java.lang.String timing_file)
This method sets the Timing file to download. |
void |
set_timing_test(boolean do_timing_test)
This method sets the Timing hardware tests to on/off. |
void |
set_timing(boolean timing)
This method sets the Timing download to on/off. |
void |
set_utility_app(boolean utility_app)
This method sets the Utility application download to on/off. |
void |
set_utility_application(java.lang.String utility_app)
This method sets the Utility application to download. |
void |
set_utility_file(boolean utility_file)
This method sets the Utility file download to on/off. |
void |
set_utility_filename(java.lang.String utility_file)
This method sets the Utility file to download. |
void |
set_utility_test(boolean do_utility_test)
This method sets the Utility hardware tests to on/off. |
void |
set_utility(boolean utility)
This method sets the Utility download to on/off. |
boolean |
setup_applied()
This method checks that the apply button has been pushed and that the dimensions have been set (actually that they have been attempted to be set. |
void |
stop()
This method aborts the current thread. |
Methods inherited from class SwingWorker |
alive,
get,
interrupt,
thread_it |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
Field Detail |
protected SetupDialog parent
private boolean do_reset_controller
private boolean do_power_on
private boolean do_hardware_test
private boolean do_pci_hardware_test
private boolean do_timing_hardware_test
private boolean do_utility_hardware_test
private boolean do_pci
private boolean do_timing
private boolean do_timing_file
private boolean do_timing_app
private boolean do_utility
private boolean do_utility_file
private boolean do_utility_app
private boolean do_dimensions
private boolean did_timing
private boolean setup_applied
private int image_bytes
private java.lang.String pci_filename
private java.lang.String timing_filename
private java.lang.String utility_filename
private int tim_app_number
private int util_app_number
private int number_of_pci_tests
private int number_of_timing_tests
private int number_of_utility_tests
private PCIBoot pci_boot
private LoadDspFile dsp_file
private DspCommand2 dsp_cmd
private int tim_done
private int util_done
private int bits_per_pixel
private int array_columns
private int array_rows
protected int config_word
Constructor Detail |
public SetupCommand(SetupDialog parent)
Method Detail |
public static int Cdeinterlace(int rows, int cols, int image_fd, int algorithm)
static void()
public java.lang.Object construct()
SwingWorker
public void finished()
SwingWorker
public void stop()
SwingWorker
public void set_reset_controller(boolean reset_controller)
reset_controller
- True to reset controller, false to not reset the
controller.public void set_power_on(boolean power_on)
power_on
- True to power on the controller, false to not power on
the controller.public void set_hardware_test(boolean hardware_test)
hardware_test
- True to perform the controller hardware tests, false
to not perform the tests.public void set_pci_test(boolean do_pci_test)
do_pci_test
- True to perform the PCI hardware tests, false to not
perform the tests.public void set_timing_test(boolean do_timing_test)
do_timing_test
- True to perform the Timing hardware tests, false
to not perform the tests.public void set_utility_test(boolean do_utility_test)
do_utility_test
- True to perform the Utility hardware tests, false
to not perform the tests.public void set_pci(boolean pci)
pci
- True to perform the PCI download, false to not perform
the download.public void set_timing(boolean timing)
timing
- True to perform the Timing download, false to not
perform the download.public void set_timing_file(boolean timing_file)
timing_file
- True to perform the Timing file download, false to not
perform the file download.public void set_timing_app(boolean timing_app)
timing_app
- True to perform the Timing application download, false to
not perform the application download.public void set_utility(boolean utility)
utility
- True to perform the Utility download, false to not
perform the download.public void set_utility_file(boolean utility_file)
utility_file
- True to perform the Utility file download, false to not
perform the file download.public void set_utility_app(boolean utility_app)
utility_app
- True to perform the Utility application download, false to
not perform the application download.public void set_dimensions(boolean dimensions)
dimensions
- True to set the array dimensions, false to not set the
array dimensions.public void set_pci_filename(java.lang.String pci_file) throws java.lang.Exception
pci_file
- The PCI file to download.public void set_timing_filename(java.lang.String timing_file) throws java.lang.Exception
timing_file
- The Timing file to download.public void set_utility_filename(java.lang.String utility_file) throws java.lang.Exception
utility_file
- The Utility file to download.public void set_timing_application(java.lang.String timing_app) throws java.lang.NumberFormatException
timing_app
- The Timing application to download.public void set_utility_application(java.lang.String utility_app) throws java.lang.NumberFormatException
utility_app
- The Utility application to download.public void set_hardware_test(int board, java.lang.String number_of_tests) throws java.lang.NumberFormatException
board
- A int specifying the board to set the number of tests
for. Can be 0 (VoodooConstants.PCI_ID), 1
(VoodooConstants.TIM_ID), or 2 (VoodooConstants.UTIL_ID).number_of_tests
- The number of tests to perform for the specified
board.public int get_ccd_rows()
public int get_ccd_cols()
public void set_image_resolution(int bpp)
bpp
- The image resolution in bits/pixel.public int get_image_resolution()
public void set_image_bytes(int columns, int rows)
columns
- The number of columns in the image (in pixels).rows
- The number of rows in the image (in pixels).public void set_array_rows(java.lang.String rows) throws java.lang.NumberFormatException
rows
- The number of array rows (in pixels).public void set_array_cols(java.lang.String columns) throws java.lang.NumberFormatException
columns
- The number of array columns (in pixels).public int get_image_bytes()
public boolean setup_applied()
public void clear()
SetupDialog
private java.lang.Object apply()
private void read_controller_config()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |