Class ManualCommand

java.lang.Object
  |
  +--SwingWorker
        |
        +--ManualCommand

public class ManualCommand
extends SwingWorker


Field Summary
private  boolean abort
           
private  int argument1
           
private  int argument2
           
private  int argument3
           
private  int argument4
           
private  int argument5
           
private  int board_destination
           
private  int command
           
private  DspCommand2 dsp_cmd
           
private  int number_of_args
           
private  DspDialog parent
           
private  int reply_value
           
 
Fields inherited from class SwingWorker
abort, thread, value
 
Constructor Summary
ManualCommand()
          Class constructor.
ManualCommand(DspDialog parent)
          Class constructor.
 
Method Summary
 java.lang.Object apply()
          This method sends the command and any non-null argument registers to the specified controller board.
 java.lang.Object construct()
          This method starts the SwingWorker thread.
 void finished()
          This method closes the SwingWorker thread.
private  void print_debug()
          This method prints the debug message to the info/status window.
 void set_arg1(int new_argument1)
          This method sets the argument 1 register to the specified value.
 void set_arg2(int new_argument2)
          This method sets the argument 2 register to the specified value.
 void set_arg3(int new_argument3)
          This method sets the argument 3 register to the specified value.
 void set_arg4(int new_argument4)
          This method sets the argument 4 register to the specified value.
 void set_arg5(int new_argument5)
          This method sets the argument 5 register to the specified value.
 void set_argument(int arg, java.lang.String txtfld_string)
          This method sets the specified argument register to the specified value.
 void set_board_destination(int new_board_destination)
          This method sets the board destination register to the board that is to receive the command.
 void set_command(int new_command)
          This method sets the command to be issued to the specified DSP controller.
 void set_command(java.lang.String command_string)
          This method sets the command to be issued to the specified DSP controller.
private  void set_reply_text()
          This method sets the reply message string in the specified parent window.
 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

dsp_cmd

private DspCommand2 dsp_cmd

parent

private DspDialog parent

abort

private boolean abort

command

private int command

argument1

private int argument1

argument2

private int argument2

argument3

private int argument3

argument4

private int argument4

argument5

private int argument5

board_destination

private int board_destination

number_of_args

private int number_of_args

reply_value

private int reply_value
Constructor Detail

ManualCommand

public ManualCommand()
Class constructor. This constructor is only used when a manual command needs to be issued unthreaded.

ManualCommand

public ManualCommand(DspDialog parent)
Class constructor. This constructor is only used when a manual command is issued from the DspDialog window "Manual Command" tab.
Method Detail

construct

public java.lang.Object construct()
This method starts the SwingWorker thread.
Overrides:
construct in class SwingWorker
See Also:
SwingWorker

finished

public void finished()
This method closes the SwingWorker thread.
Overrides:
finished in class SwingWorker
See Also:
SwingWorker

stop

public void stop()
This method aborts the current thread. This method overides the one in Swingworker.java.
Overrides:
stop in class SwingWorker
See Also:
SwingWorker

set_command

public void set_command(int new_command)
This method sets the command to be issued to the specified DSP controller.

set_command

public void set_command(java.lang.String command_string)
                 throws java.lang.ArrayIndexOutOfBoundsException
This method sets the command to be issued to the specified DSP controller. This version is used to parse the text values from the DSP Manual Command Window.
Throws:
java.lang.ArrayIndexOutOfBoundsException - Thrown if the command textfield is left blank by the user.
See Also:
VTextField

set_arg1

public void set_arg1(int new_argument1)
This method sets the argument 1 register to the specified value.
Parameters:
new_argument1 - The argument value.

set_arg2

public void set_arg2(int new_argument2)
This method sets the argument 2 register to the specified value.
Parameters:
new_argument2 - The argument value.

set_arg3

public void set_arg3(int new_argument3)
This method sets the argument 3 register to the specified value.
Parameters:
new_argument3 - The argument value.

set_arg4

public void set_arg4(int new_argument4)
This method sets the argument 4 register to the specified value.
Parameters:
new_argument4 - The argument value.

set_arg5

public void set_arg5(int new_argument5)
This method sets the argument 5 register to the specified value.
Parameters:
new_argument5 - The argument value.

set_argument

public void set_argument(int arg,
                         java.lang.String txtfld_string)
This method sets the specified argument register to the specified value. The input string is converted to an integer. This version is used to parse the text values from the DSP Manual Command Window.

set_board_destination

public void set_board_destination(int new_board_destination)
This method sets the board destination register to the board that is to receive the command. May be one of the following: VoodooConstants.TIM_ID VoodooConstants.UTIL_ID.

apply

public java.lang.Object apply()
This method sends the command and any non-null argument registers to the specified controller board.

set_reply_text

private void set_reply_text()
This method sets the reply message string in the specified parent window.

print_debug

private void print_debug()
This method prints the debug message to the info/status window.