Class PrintMessage

java.lang.Object
  |
  +--PrintMessage

public class PrintMessage
extends java.lang.Object


Field Summary
private static int style
           
 
Constructor Summary
PrintMessage()
          Default constructor.
 
Method Summary
static void debug_message(int dest_arg, int cmd, int arg1, int arg2, int arg3, int arg4, int arg5, int return_value)
          Prints additional information if the application debug mode is turned on.
static void debug_message(int dest_arg, java.lang.String cmd_description, int cmd, int return_value)
          Prints additional information if the application debug mode is turned on.
static void debug_message(int dest_arg, java.lang.String cmd_description, int cmd, int arg1, int arg2, int arg3, int arg4, int arg5, int return_value)
          Prints additional information if the application debug mode is turned on.
private static java.lang.String int_to_ascii(int value)
          Converts a 24-bit integer into it's 3 character ascii equivalent.
static void message(java.lang.String clazz, int severity, java.lang.String message_string, int offset, boolean start)
          Passes the specifed message to the programs main application window for display.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

style

private static int style
Constructor Detail

PrintMessage

public PrintMessage()
Default constructor.
Method Detail

message

public static void message(java.lang.String clazz,
                           int severity,
                           java.lang.String message_string,
                           int offset,
                           boolean start)
Passes the specifed message to the programs main application window for display.
Parameters:
message_string - The message to display. The text must have the following format:
		" message"

		severity = ERROR or none.
		clazz    = The name of the class where the message is output.
		message  = The String to be output.

		For Example:
		"ERROR: No file found."
		"Reading Image ..."
		
offset - The number of characters to replace when changing the "...waiting." text to "...done.".
start - Specifies whether or not the message is the beginning or end of a two part message. True = Start of message. False = End of message. Single messages should use "true" and end with a "\n".
For example:
				"Doing readout...waiting." is a message beginning.
				Replacing "waiting." with "done." is a message end.
		     
See Also:
VoodooMainWindow

debug_message

public static void debug_message(int dest_arg,
                                 java.lang.String cmd_description,
                                 int cmd,
                                 int return_value)
Prints additional information if the application debug mode is turned on. Messages are printed using character style 3 as defined in VoodooMainWindow.
Parameters:
dest_arg - The board destination and number of argument registers..
cmd_description - A string description of the command.
cmd - The command that produced the message.
return_value - The value returned as a result of using cmd.
See Also:
VoodooMainWindow

debug_message

public static void debug_message(int dest_arg,
                                 java.lang.String cmd_description,
                                 int cmd,
                                 int arg1,
                                 int arg2,
                                 int arg3,
                                 int arg4,
                                 int arg5,
                                 int return_value)
Prints additional information if the application debug mode is turned on. Messages are printed using character style 3 as defined in VoodooMainWindow.
Parameters:
dest_arg - The board destination and number of argument registers..
cmd_description - A string description of the command.
cmd - The command that produced the message.
arg1 - The value of the argument 1 register.
arg2 - The value of the argument 2 register.
arg3 - The value of the argument 3 register.
arg4 - The value of the argument 4 register.
arg5 - The value of the argument 5 register.
return_value - The value returned as a result of using cmd.
See Also:
VoodooMainWindow

debug_message

public static void debug_message(int dest_arg,
                                 int cmd,
                                 int arg1,
                                 int arg2,
                                 int arg3,
                                 int arg4,
                                 int arg5,
                                 int return_value)
Prints additional information if the application debug mode is turned on. This method does not contain a command description string, instead it attempts to convert the command to a three letter ascii string. Messages are printed using character style 3 as defined in VoodooMainWindow.
Parameters:
dest_arg - The board destination and number of argument registers..
cmd - The command that produced the message.
arg1 - The value of the argument 1 register.
arg2 - The value of the argument 2 register.
arg3 - The value of the argument 3 register.
arg4 - The value of the argument 4 register.
arg5 - The value of the argument 5 register.
return_value - The value returned as a result of using cmd.
See Also:
VoodooMainWindow

int_to_ascii

private static java.lang.String int_to_ascii(int value)
Converts a 24-bit integer into it's 3 character ascii equivalent. Used to output more descriptive DSP return values. The characters are checked to be between ascii 0x41 and 0x5A (A-Z).