public class DiagNMLMsgDict extends java.lang.Object implements NMLMessageDictionary, DiagNMLMsgDictInterface
| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug_on
When set to true debug_on enables extra calls to System.out for debugging.
|
| Constructor and Description |
|---|
DiagNMLMsgDict() |
| Modifier and Type | Method and Description |
|---|---|
void |
bytesNotUsed(int bytes_in_input_stream,
java.lang.String bufName,
boolean warn_given)
Used to log a warning message if the dictionary results do not
match the expected input.
|
static void |
ErrorPrint(java.lang.String s) |
int |
formatMsg(NMLFormatConverter NMLfc)
This function should use NMLfc.type to select an
object of the appropriate class, set NMLfc.msg_to_update
to it, and call the objects update(NMLFormatConverter) function.
|
int |
get_failed_count()
Returns the number of errors that have occured related to this dictionary.
|
long |
getEstimatedSize(int _type) |
long |
getMaxEstimatedSize() |
void |
miscError()
Log Information about this dictionary when generic NML error occurs.
|
void |
miscError(java.lang.Exception e)
Log Information about this dictionary when NML error occurs with a related Exception
called by NMLFormatConvertErrCallbackInterface
|
void |
SetModuleInfoObject(ModuleInfoInterface o)
Used to set a ModuleInfo object, needed for this to function.
|
void |
tokensNotUsed(int num_tokens,
java.lang.String input_string,
boolean warn_given)
Used to log a warning message if the dictionary results do not
match the expected input.
|
java.lang.String |
toString() |
public static volatile boolean debug_on
public long getEstimatedSize(int _type)
getEstimatedSize in interface NMLMessageDictionarypublic long getMaxEstimatedSize()
getMaxEstimatedSize in interface NMLMessageDictionarypublic void tokensNotUsed(int num_tokens,
java.lang.String input_string,
boolean warn_given)
DiagNMLMsgDictInterfacetokensNotUsed in interface DiagNMLMsgDictInterfacenum_tokens - -- number tokens in input_stringinput_string - -- comma delimited string to be parsedwarn_given - -- if already warned do not warn again.public void bytesNotUsed(int bytes_in_input_stream,
java.lang.String bufName,
boolean warn_given)
DiagNMLMsgDictInterfacebytesNotUsed in interface DiagNMLMsgDictInterfacebytes_in_input_stream - -- number of bytes readbufName - -- NML buffer namewarn_given - -- if already warned do not warn again.public static void ErrorPrint(java.lang.String s)
public void miscError()
DiagNMLMsgDictInterfacemiscError in interface DiagNMLMsgDictInterfacepublic void miscError(java.lang.Exception e)
DiagNMLMsgDictInterfacemiscError in interface DiagNMLMsgDictInterfacee - exception to logpublic void SetModuleInfoObject(ModuleInfoInterface o)
DiagNMLMsgDictInterfaceSetModuleInfoObject in interface DiagNMLMsgDictInterfaceo - new module info objectpublic int get_failed_count()
DiagNMLMsgDictInterfaceget_failed_count in interface DiagNMLMsgDictInterfacepublic java.lang.String toString()
toString in class java.lang.Objectpublic int formatMsg(NMLFormatConverter NMLfc)
NMLMessageDictionaryformatMsg in interface NMLMessageDictionaryNMLfc - a format converter object which provides methods
for updating all the basic types and is used to update
the message, member-by-member.