diagapplet.CodeGen
Class CodeGenCommon

java.lang.Object
  extended by diagapplet.CodeGen.CodeGenCommon

public class CodeGenCommon
extends java.lang.Object

Parses NML C++ header files and .gen files to generate C++ format and update functions, C,Java, and Ada class definitions and information for the Diagnostics and Design tools.


Field Summary
 java.lang.String c_prototypes_header_string
           
static boolean debug_estimated_size
           
static boolean force_keep_admin_state_enum
           
static boolean force_keep_status_enum
           
 boolean have_prototypes_header
           
 java.lang.String last_java_classname
           
static LoadHierarchyUpdateInterface lhui
           
static boolean no_enums
           
static boolean no_format
           
static boolean no_swig
           
 boolean print_est_size_info
           
 java.lang.String prototypes_header_string
           
 
Fields inherited from interface diagapplet.CodeGen.CodeGenCommonInterface
ndla_len_string, ndla_string, PARAM_AddSetHeader, PARAM_ConfigFile, PARAM_CreatePrintSizesFile, PARAM_DebugOn, PARAM_DisplayOn, PARAM_DlaLengthInit, PARAM_GenerateAllEnumSymbolLookups, PARAM_GenerateForAda, PARAM_GenerateForAllLangs, PARAM_GenerateForC, PARAM_GenerateForCPP, PARAM_GenerateForJava, PARAM_GenerateSymbolLookups, PARAM_HeaderFile, PARAM_HFile, PARAM_HHFile, PARAM_HierarchyFile, PARAM_JavaPackageName, PARAM_NoErrlog, PARAM_PrintScript, PARAM_ScriptFile, PARAM_SelectFromAllFiles, PARAM_SizesFileName, PARAM_UpdateWithName, PARAM_UseDefaultTypes, unbounded_string
 
Constructor Summary
CodeGenCommon()
           
 
Method Summary
 void AddAlphabatizedItem(FastListPanelInterface lst, java.lang.String item, boolean select_it)
           
 void AddAuxBufferModule(java.lang.String buffer_name, java.lang.String header, java.lang.String nml_file)
          Adds Information related to an auxilliary buffer.
 void append_includePath(java.lang.String str)
           
 boolean CheckForCppClass(java.lang.String cpp_type)
           
 boolean CheckForCppEnum(java.lang.String cpp_type)
           
 boolean CheckForCppPosemathClass(java.lang.String cpp_type)
           
 boolean CheckForJavaClass(java.lang.String java_type)
           
 boolean CheckForJavaStatic(java.lang.String java_type)
           
 void ClearAll()
           
 java.lang.String ConvertCppTypeToJavaType(java.lang.String cpp_type)
           
 void CreateC_UpdateFunction(StructureTypeInfo type_info)
           
 void CreateCppConstructor(StructureTypeInfo type_info)
           
 void CreateCppInitializer(StructureTypeInfo type_info)
           
 void CreateCppUpdateFunction(StructureTypeInfo type_info)
           
 void CreateJavaDefinition(StructureTypeInfo type_info)
           
 void CreateJavaUpdateFunction(StructureTypeInfo type_info)
           
 java.lang.String createScript(java.lang.String[] args)
           
static void DebugPrint(java.lang.String s)
           
static void DebugPrint2(java.lang.String s)
           
static void ErrorPrint(java.lang.String s)
           
 void EstimateSize(StructureTypeInfo type_info)
           
 java.lang.String find_common_root(java.lang.String[] strs)
           
 void GenerateAdaBody()
           
 void GenerateAdaSpec()
           
 void GenerateC_FormatFunction()
           
 void GenerateC_PrototypesHeader()
           
 void GenerateC_StartOfFile()
           
 void GenerateC_UpdateFunction(java.lang.String class_name)
           
 void GenerateC_UpdateFunctions()
           
 void GenerateCppConstructor(java.lang.String class_name)
           
 void GenerateCppConstructors()
           
 void GenerateCppEnumInfo(java.lang.String[] selected_classes)
           
 void GenerateCppFormatFunction()
           
 void GenerateCppInitializer(java.lang.String class_name)
           
 void GenerateCppPrototypesHeader()
           
 void GenerateCppStartOfFile()
           
 void GenerateCppUpdateFunction(java.lang.String class_name)
           
 void GenerateCppUpdateFunctions()
           
 void GenerateJavaClass(java.lang.String class_name)
           
 void GenerateJavaClasses()
           
 void GenerateJavaMessageDict()
           
 void GeneratePrintSizesFile()
           
static boolean get_add_set_header()
           
 java.lang.String get_base_name(java.lang.String str)
           
 FastListPanelInterface get_ClassList()
          Get the ClassList property.
 diagapplet.CodeGen.CodeGenTextAreaInterface get_codeTextArea()
           
 diagapplet.CodeGen.CodeGenTextFieldInterface get_configFileTextField()
           
 java.lang.String get_cppFileName()
           
 boolean get_debug_on()
           
 DiagNMLMsgDictCreatorInterface get_diag_dict_creator()
          Get the diag_dict_creator property.
 boolean get_display_on()
           
 int get_error_count()
           
 java.util.Vector get_extraActionsVector()
          Returns an extrActionsVector().
 java.util.Vector get_extraTabsVector()
          Returns an extrTabsVector().
 boolean get_first_cpp_function()
           
 boolean get_first_java_class()
           
 boolean get_force_reload_file()
           
static boolean get_generate_all_enum_symbol_lookups()
           
 boolean get_generate_cpp_constructors_needed()
           
 boolean get_generate_cpp_format_function_needed()
           
 boolean get_generate_cpp_update_functions_needed()
           
 boolean get_generate_java_classes_needed()
           
 boolean get_generate_java_dictionary_needed()
           
static boolean get_generate_symbol_lookups()
           
 boolean get_generating_code()
           
 java.lang.String get_includePath()
           
 diagapplet.CodeGen.CodeGenTextFieldInterface get_includePathField()
           
 boolean get_inside_diagapplet()
           
 boolean get_is_loading_hierarchy()
           
 java.lang.String get_javaFileName()
           
 java.lang.String get_lastIncludePath()
           
 java.lang.String get_m_ConfigFile()
           
 java.lang.String get_m_hierarchyFile()
          Get the hierarchyFile property.
 CountButtonInterface get_m_hierarchyFileLoadButton()
           
 URLLoadInfoPanelInterface get_m_loadingPanel()
           
 CountListInterface get_m_modulesCountList()
           
 java.util.Hashtable get_m_modulesHashTable()
          Returns the modulesHashTable property.
 FastListPanelInterface get_m_modulesList()
          Get the ModulesList property.
 NMLConnectionCreatorInterface get_nml_creator()
          Get the nml_creator property.
 java.util.Hashtable get_optionsHashTable()
          Returns the optionsHashTable property.
 boolean get_print_prompt()
           
 boolean get_reload_hierarchy_needed()
           
 boolean get_run_needed()
           
 boolean get_RunIndependantly()
           
 boolean get_running_script()
           
 boolean get_running()
           
 boolean get_script_file_ran()
           
 java.lang.String get_script()
           
 java.util.Hashtable get_serversHashtable()
           
 FastListPanelInterface get_serversList()
           
static boolean get_static_debug_on()
           
 boolean get_update_with_name()
           
 java.lang.String GetCppVarDef(java.lang.String var, StructureTypeInfo type_info)
           
 java.lang.String GetEnumTypeName(java.lang.String vardef)
           
 java.lang.String GetFormatFunctionNameBase(java.lang.String[] selected_classes)
           
 java.lang.String GetParameter(java.lang.String strName, java.lang.String[] args)
          Return the value of the matching strName if one exist(), optionally searching command line args given in args.
 void GetParameters(java.lang.String[] args)
           
 void InitializeClassList()
           
 boolean is_generic(java.lang.String str)
           
 boolean is_interrupt_loading()
          Return the value of the interrupt_loading property.
 boolean is_preserve_modules_hashtable()
           
 boolean IsDouble(java.lang.String str)
           
 boolean IsInteger(java.lang.String str)
           
 boolean IsNMLMsg(java.lang.String classname)
           
 boolean IsNonUpdatebleClass(StructureTypeInfo type_info)
           
 boolean IsRcsStatMsg(java.lang.String classname)
           
 boolean IsRcsStatMsgV2(java.lang.String classname)
           
 void LoadHierarchy()
          Load the hierarchy parsing the file set with set_m_hierarchyFile().
 void LoadHierarchyNewThread(java.lang.String HierarchyName, LoadHierarchyUpdateInterface _lhui)
           
 void MakeListGeneric(FastListPanelInterface lst)
           
 void ParseOptionsInfo()
           
static void printHelp()
           
 void PrintInfo(java.lang.String options)
           
 void PrintInfo(StructureTypeInfo type_info, java.lang.String var_prefix, int varnum, int offset)
           
static java.lang.String remove_leading_whitespace_static(java.lang.String str)
           
 java.lang.String remove_leading_whitespace(java.lang.String str)
           
 java.lang.String[] RemoveDuplicates(java.lang.String[] list)
           
 java.lang.String RemoveStartingEndingSpace(java.lang.String str)
           
 void ResetGenericClasses()
           
 void RingBell()
           
 void RunLineOfScript(java.lang.String line_of_script)
           
static void RunLineOfScriptStatic(java.lang.String line_of_script)
           
 void RunScript()
           
 void RunScript(java.lang.String new_script)
           
 void SelectByFromFile(java.lang.String filename)
           
 void SelectFromAllFiles()
           
static void set_add_set_header(boolean _add_set_header)
           
 void set_ClassList(FastListPanelInterface flp)
          Set the ClassList property.
 void set_codeTextArea(diagapplet.CodeGen.CodeGenTextAreaInterface cta)
           
 void set_configFileTextField(diagapplet.CodeGen.CodeGenTextFieldInterface cgtfi)
           
 void set_cppFileName(java.lang.String str)
           
 void set_debug_on(boolean dbg)
           
 void set_diag_dict_creator(DiagNMLMsgDictCreatorInterface _diag_dict_creator)
          Set a diag_dict_creator property.
 void set_display_on(boolean dispon)
           
 void set_first_cpp_function(boolean b)
           
 void set_first_java_class(boolean b)
           
 void set_force_reload_file(boolean b)
           
static void set_generate_all_enum_symbol_lookups(boolean _generate_all_enum_symbol_lookups)
           
 void set_generate_cpp_constructors_needed(boolean b)
           
 void set_generate_cpp_format_function_needed(boolean b)
           
 void set_generate_cpp_update_functions_needed(boolean b)
           
 void set_generate_java_classes_needed(boolean b)
           
 void set_generate_java_dictionary_needed(boolean b)
           
static void set_generate_symbol_lookups(boolean _generate_symbol_lookups)
           
 void set_generating_code(boolean b)
           
 void set_includePath(java.lang.String str)
           
 void set_includePathField(diagapplet.CodeGen.CodeGenTextFieldInterface cgtfi)
           
 void set_inside_diagapplet(boolean b)
           
 void set_interrupt_loading(boolean b)
          Set the value of the interrupt_loading property.
 void set_is_loading_hierarchy(boolean b)
           
 void set_javaFileName(java.lang.String str)
           
 void set_lastIncludePath(java.lang.String s)
           
 void set_m_ConfigFile(java.lang.String str)
           
 void set_m_hierarchyFile(java.lang.String str)
          Set the hierarchyFile property.
 void set_m_hierarchyFileLoadButton(CountButtonInterface cbi)
           
 void set_m_loadingPanel(URLLoadInfoPanelInterface lp)
           
 void set_m_modulesCountList(CountListInterface lst)
           
 void set_m_modulesHashTable(java.util.Hashtable ht)
          Sets the modulesHashTable property.
 void set_m_modulesList(FastListPanelInterface lst)
          Set the ModulesList property.
 void set_nml_creator(NMLConnectionCreatorInterface _nml_creator)
          Set the nml_creator property.
 void set_optionsHashTable(java.util.Hashtable ht)
           
 void set_preserve_modules_hashtable(boolean b)
           
 void set_print_prompt(boolean pp)
           
 void set_reload_hierarchy_needed(boolean b)
           
 void set_run_needed(boolean b)
           
 void set_RunIndependantly(boolean b)
           
 void set_running_script(boolean b)
           
 void set_running(boolean b)
           
 void set_script_file_ran(boolean b)
           
 void set_script(java.lang.String scrf)
           
 void set_serversHashtable(java.util.Hashtable ht)
           
 void set_serversList(FastListPanelInterface lst)
           
static void set_static_debug_on(boolean dbg)
           
 void set_update_with_name(boolean b)
           
 void SetFormatFunctionName(java.lang.String[] selected_classes)
           
 void SetOutputFile(java.lang.String str)
           
static void SetOutputFileName(java.lang.String _output_filename)
           
 void setVisible(boolean visible)
           
 boolean VarIsUnsigned(java.lang.String vardef)
           
static void WarningPrint(java.lang.String s)
           
 void WriteOutput(java.lang.String str)
           
 void WriteToFos(java.io.FileOutputStream fos, java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

force_keep_status_enum

public static boolean force_keep_status_enum

force_keep_admin_state_enum

public static boolean force_keep_admin_state_enum

debug_estimated_size

public static boolean debug_estimated_size

last_java_classname

public java.lang.String last_java_classname

no_enums

public static boolean no_enums

no_swig

public static boolean no_swig

no_format

public static boolean no_format

c_prototypes_header_string

public java.lang.String c_prototypes_header_string

have_prototypes_header

public boolean have_prototypes_header

prototypes_header_string

public java.lang.String prototypes_header_string

print_est_size_info

public boolean print_est_size_info

lhui

public static LoadHierarchyUpdateInterface lhui
Constructor Detail

CodeGenCommon

public CodeGenCommon()
Method Detail

SetOutputFileName

public static void SetOutputFileName(java.lang.String _output_filename)

get_extraActionsVector

public java.util.Vector get_extraActionsVector()
Description copied from interface: CodeGenCommonInterface
Returns an extrActionsVector(). It is a vector of strings read from the config file. The diagnostics tool adds an menu item at run time for each item in the vector.

Returns:
extraActionsVector()

get_extraTabsVector

public java.util.Vector get_extraTabsVector()
Description copied from interface: CodeGenCommonInterface
Returns an extrTabsVector(). It is a vector of strings read from the config file. The diagnostics tool adds a tab at run time for each item in the vector.

Returns:
extraTabsVector()

get_generate_symbol_lookups

public static boolean get_generate_symbol_lookups()

set_generate_symbol_lookups

public static void set_generate_symbol_lookups(boolean _generate_symbol_lookups)

set_generate_all_enum_symbol_lookups

public static void set_generate_all_enum_symbol_lookups(boolean _generate_all_enum_symbol_lookups)

get_generate_all_enum_symbol_lookups

public static boolean get_generate_all_enum_symbol_lookups()

set_add_set_header

public static void set_add_set_header(boolean _add_set_header)

get_add_set_header

public static boolean get_add_set_header()

DebugPrint

public static void DebugPrint(java.lang.String s)

DebugPrint2

public static void DebugPrint2(java.lang.String s)

get_error_count

public int get_error_count()

ErrorPrint

public static void ErrorPrint(java.lang.String s)

WarningPrint

public static void WarningPrint(java.lang.String s)

setVisible

public void setVisible(boolean visible)

RingBell

public void RingBell()

GetParameter

public java.lang.String GetParameter(java.lang.String strName,
                                     java.lang.String[] args)
Description copied from interface: CodeGenCommonInterface
Return the value of the matching strName if one exist(), optionally searching command line args given in args. Parameters can also be found in environment variables or the options section of the diag file.

Returns:
value

GeneratePrintSizesFile

public void GeneratePrintSizesFile()

GetParameters

public void GetParameters(java.lang.String[] args)

printHelp

public static void printHelp()

createScript

public java.lang.String createScript(java.lang.String[] args)

CheckForCppEnum

public boolean CheckForCppEnum(java.lang.String cpp_type)

CheckForCppClass

public boolean CheckForCppClass(java.lang.String cpp_type)

CheckForCppPosemathClass

public boolean CheckForCppPosemathClass(java.lang.String cpp_type)

GetEnumTypeName

public java.lang.String GetEnumTypeName(java.lang.String vardef)

VarIsUnsigned

public boolean VarIsUnsigned(java.lang.String vardef)

GetCppVarDef

public java.lang.String GetCppVarDef(java.lang.String var,
                                     StructureTypeInfo type_info)

ConvertCppTypeToJavaType

public java.lang.String ConvertCppTypeToJavaType(java.lang.String cpp_type)

CheckForJavaStatic

public boolean CheckForJavaStatic(java.lang.String java_type)

CheckForJavaClass

public boolean CheckForJavaClass(java.lang.String java_type)

CreateJavaDefinition

public void CreateJavaDefinition(StructureTypeInfo type_info)

CreateJavaUpdateFunction

public void CreateJavaUpdateFunction(StructureTypeInfo type_info)

CreateC_UpdateFunction

public void CreateC_UpdateFunction(StructureTypeInfo type_info)

CreateCppUpdateFunction

public void CreateCppUpdateFunction(StructureTypeInfo type_info)

PrintInfo

public void PrintInfo(java.lang.String options)

PrintInfo

public void PrintInfo(StructureTypeInfo type_info,
                      java.lang.String var_prefix,
                      int varnum,
                      int offset)

CreateCppInitializer

public void CreateCppInitializer(StructureTypeInfo type_info)

CreateCppConstructor

public void CreateCppConstructor(StructureTypeInfo type_info)

GenerateJavaClass

public void GenerateJavaClass(java.lang.String class_name)

GenerateJavaClasses

public void GenerateJavaClasses()

IsNonUpdatebleClass

public boolean IsNonUpdatebleClass(StructureTypeInfo type_info)

GenerateC_UpdateFunction

public void GenerateC_UpdateFunction(java.lang.String class_name)

GenerateCppUpdateFunction

public void GenerateCppUpdateFunction(java.lang.String class_name)

WriteOutput

public void WriteOutput(java.lang.String str)

GenerateCppInitializer

public void GenerateCppInitializer(java.lang.String class_name)

GenerateCppConstructor

public void GenerateCppConstructor(java.lang.String class_name)

GenerateC_UpdateFunctions

public void GenerateC_UpdateFunctions()

GenerateCppUpdateFunctions

public void GenerateCppUpdateFunctions()

GenerateCppConstructors

public void GenerateCppConstructors()

find_common_root

public java.lang.String find_common_root(java.lang.String[] strs)

IsRcsStatMsg

public boolean IsRcsStatMsg(java.lang.String classname)

IsRcsStatMsgV2

public boolean IsRcsStatMsgV2(java.lang.String classname)

IsNMLMsg

public boolean IsNMLMsg(java.lang.String classname)

GetFormatFunctionNameBase

public java.lang.String GetFormatFunctionNameBase(java.lang.String[] selected_classes)

GenerateAdaSpec

public void GenerateAdaSpec()

GenerateAdaBody

public void GenerateAdaBody()

GenerateC_PrototypesHeader

public void GenerateC_PrototypesHeader()

GenerateC_StartOfFile

public void GenerateC_StartOfFile()

GenerateCppStartOfFile

public void GenerateCppStartOfFile()

RemoveDuplicates

public java.lang.String[] RemoveDuplicates(java.lang.String[] list)

GenerateCppPrototypesHeader

public void GenerateCppPrototypesHeader()

EstimateSize

public void EstimateSize(StructureTypeInfo type_info)

WriteToFos

public void WriteToFos(java.io.FileOutputStream fos,
                       java.lang.String str)

GenerateCppEnumInfo

public void GenerateCppEnumInfo(java.lang.String[] selected_classes)

SetFormatFunctionName

public void SetFormatFunctionName(java.lang.String[] selected_classes)

GenerateCppFormatFunction

public void GenerateCppFormatFunction()

SetOutputFile

public void SetOutputFile(java.lang.String str)
                   throws java.lang.Exception
Throws:
java.lang.Exception

GenerateC_FormatFunction

public void GenerateC_FormatFunction()

get_base_name

public java.lang.String get_base_name(java.lang.String str)

get_optionsHashTable

public java.util.Hashtable get_optionsHashTable()
Description copied from interface: CodeGenCommonInterface
Returns the optionsHashTable property. This is a Hashtable macthing String option names to String values. Options can be set with command line parameters, int the options section of a config file or .diag file or with environment variables. The use of a generic hashtable rather than Hashtable is to maintain Java 1.4 compatibility.

Returns:
the hashtable.

set_optionsHashTable

public void set_optionsHashTable(java.util.Hashtable ht)

RemoveStartingEndingSpace

public java.lang.String RemoveStartingEndingSpace(java.lang.String str)

IsInteger

public boolean IsInteger(java.lang.String str)

IsDouble

public boolean IsDouble(java.lang.String str)

GenerateJavaMessageDict

public void GenerateJavaMessageDict()

ClearAll

public void ClearAll()

AddAlphabatizedItem

public void AddAlphabatizedItem(FastListPanelInterface lst,
                                java.lang.String item,
                                boolean select_it)

is_generic

public boolean is_generic(java.lang.String str)

SelectByFromFile

public void SelectByFromFile(java.lang.String filename)

SelectFromAllFiles

public void SelectFromAllFiles()

InitializeClassList

public void InitializeClassList()
                         throws java.lang.Exception
Throws:
java.lang.Exception

ResetGenericClasses

public void ResetGenericClasses()

ParseOptionsInfo

public void ParseOptionsInfo()

AddAuxBufferModule

public void AddAuxBufferModule(java.lang.String buffer_name,
                               java.lang.String header,
                               java.lang.String nml_file)
Description copied from interface: CodeGenCommonInterface
Adds Information related to an auxilliary buffer. Only used by diagnostics tool.


LoadHierarchyNewThread

public void LoadHierarchyNewThread(java.lang.String HierarchyName,
                                   LoadHierarchyUpdateInterface _lhui)

LoadHierarchy

public void LoadHierarchy()
                   throws java.lang.Exception
Description copied from interface: CodeGenCommonInterface
Load the hierarchy parsing the file set with set_m_hierarchyFile().

Throws:
java.lang.Exception

remove_leading_whitespace

public java.lang.String remove_leading_whitespace(java.lang.String str)

remove_leading_whitespace_static

public static java.lang.String remove_leading_whitespace_static(java.lang.String str)

MakeListGeneric

public void MakeListGeneric(FastListPanelInterface lst)

RunScript

public void RunScript(java.lang.String new_script)

RunLineOfScriptStatic

public static void RunLineOfScriptStatic(java.lang.String line_of_script)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

RunLineOfScript

public void RunLineOfScript(java.lang.String line_of_script)
                     throws java.lang.Exception
Throws:
java.lang.Exception

RunScript

public void RunScript()
               throws java.lang.Exception
Throws:
java.lang.Exception

get_static_debug_on

public static boolean get_static_debug_on()

set_static_debug_on

public static void set_static_debug_on(boolean dbg)

get_debug_on

public boolean get_debug_on()

set_debug_on

public void set_debug_on(boolean dbg)

get_includePath

public java.lang.String get_includePath()

append_includePath

public void append_includePath(java.lang.String str)

set_includePath

public void set_includePath(java.lang.String str)

get_print_prompt

public boolean get_print_prompt()

set_print_prompt

public void set_print_prompt(boolean pp)

get_display_on

public boolean get_display_on()

set_display_on

public void set_display_on(boolean dispon)

get_script

public java.lang.String get_script()

set_script

public void set_script(java.lang.String scrf)

get_ClassList

public FastListPanelInterface get_ClassList()
Description copied from interface: CodeGenCommonInterface
Get the ClassList property. Depending on whether this is run from a graphical tool or not the ClassList may simply wrap a Vector of strings of the class names or a Graphical widget for displaying selecting them.

Returns:
ClassList

set_ClassList

public void set_ClassList(FastListPanelInterface flp)
Description copied from interface: CodeGenCommonInterface
Set the ClassList property. Depending on whether this is run from a graphical tool or not the ClassList may simply wrap a Vector of strings of the class names or a Graphical widget for displaying selecting them.


get_cppFileName

public java.lang.String get_cppFileName()

set_cppFileName

public void set_cppFileName(java.lang.String str)

get_javaFileName

public java.lang.String get_javaFileName()

set_javaFileName

public void set_javaFileName(java.lang.String str)

get_codeTextArea

public diagapplet.CodeGen.CodeGenTextAreaInterface get_codeTextArea()

set_codeTextArea

public void set_codeTextArea(diagapplet.CodeGen.CodeGenTextAreaInterface cta)

get_m_hierarchyFile

public java.lang.String get_m_hierarchyFile()
Description copied from interface: CodeGenCommonInterface
Get the hierarchyFile property. A string containing the name/URL of the last loaded hiearchyFile optionally including the path.

Returns:
hierarchy file name.

set_m_hierarchyFile

public void set_m_hierarchyFile(java.lang.String str)
Description copied from interface: CodeGenCommonInterface
Set the hierarchyFile property.


get_m_ConfigFile

public java.lang.String get_m_ConfigFile()

set_m_ConfigFile

public void set_m_ConfigFile(java.lang.String str)

get_includePathField

public diagapplet.CodeGen.CodeGenTextFieldInterface get_includePathField()

set_includePathField

public void set_includePathField(diagapplet.CodeGen.CodeGenTextFieldInterface cgtfi)

get_configFileTextField

public diagapplet.CodeGen.CodeGenTextFieldInterface get_configFileTextField()

set_configFileTextField

public void set_configFileTextField(diagapplet.CodeGen.CodeGenTextFieldInterface cgtfi)

get_reload_hierarchy_needed

public boolean get_reload_hierarchy_needed()

set_reload_hierarchy_needed

public void set_reload_hierarchy_needed(boolean b)

get_generate_java_classes_needed

public boolean get_generate_java_classes_needed()

set_generate_java_classes_needed

public void set_generate_java_classes_needed(boolean b)

get_generate_java_dictionary_needed

public boolean get_generate_java_dictionary_needed()

set_generate_java_dictionary_needed

public void set_generate_java_dictionary_needed(boolean b)

get_generate_cpp_update_functions_needed

public boolean get_generate_cpp_update_functions_needed()

set_generate_cpp_update_functions_needed

public void set_generate_cpp_update_functions_needed(boolean b)

get_generate_cpp_format_function_needed

public boolean get_generate_cpp_format_function_needed()

set_generate_cpp_format_function_needed

public void set_generate_cpp_format_function_needed(boolean b)

get_generate_cpp_constructors_needed

public boolean get_generate_cpp_constructors_needed()

set_generate_cpp_constructors_needed

public void set_generate_cpp_constructors_needed(boolean b)

get_RunIndependantly

public boolean get_RunIndependantly()

set_RunIndependantly

public void set_RunIndependantly(boolean b)

get_first_java_class

public boolean get_first_java_class()

set_first_java_class

public void set_first_java_class(boolean b)

get_first_cpp_function

public boolean get_first_cpp_function()

set_first_cpp_function

public void set_first_cpp_function(boolean b)

get_running

public boolean get_running()

set_running

public void set_running(boolean b)

get_run_needed

public boolean get_run_needed()

set_run_needed

public void set_run_needed(boolean b)

get_is_loading_hierarchy

public boolean get_is_loading_hierarchy()

set_is_loading_hierarchy

public void set_is_loading_hierarchy(boolean b)

get_generating_code

public boolean get_generating_code()

set_generating_code

public void set_generating_code(boolean b)

get_running_script

public boolean get_running_script()

set_running_script

public void set_running_script(boolean b)

get_force_reload_file

public boolean get_force_reload_file()

set_force_reload_file

public void set_force_reload_file(boolean b)

get_m_modulesHashTable

public java.util.Hashtable get_m_modulesHashTable()
Description copied from interface: CodeGenCommonInterface
Returns the modulesHashTable property. This is a HashTable matching module names (Strings) to ModuleInfo objects. The use of a generic hashtable rather than Hashtable is to maintain Java 1.4 compatibility.

Returns:
m_modulesHashTable

set_m_modulesHashTable

public void set_m_modulesHashTable(java.util.Hashtable ht)
Sets the modulesHashTable property. This is a HashTable matching module names (Strings) to ModuleInfo objects. The use of a generic hashtable is to maintain Java 1.4 compatibility.


get_serversHashtable

public java.util.Hashtable get_serversHashtable()

set_serversHashtable

public void set_serversHashtable(java.util.Hashtable ht)

get_m_loadingPanel

public URLLoadInfoPanelInterface get_m_loadingPanel()

set_m_loadingPanel

public void set_m_loadingPanel(URLLoadInfoPanelInterface lp)

get_script_file_ran

public boolean get_script_file_ran()

set_script_file_ran

public void set_script_file_ran(boolean b)

get_inside_diagapplet

public boolean get_inside_diagapplet()

set_inside_diagapplet

public void set_inside_diagapplet(boolean b)

get_m_hierarchyFileLoadButton

public CountButtonInterface get_m_hierarchyFileLoadButton()

set_m_hierarchyFileLoadButton

public void set_m_hierarchyFileLoadButton(CountButtonInterface cbi)

get_lastIncludePath

public java.lang.String get_lastIncludePath()

set_lastIncludePath

public void set_lastIncludePath(java.lang.String s)

get_update_with_name

public boolean get_update_with_name()

set_update_with_name

public void set_update_with_name(boolean b)

is_preserve_modules_hashtable

public boolean is_preserve_modules_hashtable()

set_preserve_modules_hashtable

public void set_preserve_modules_hashtable(boolean b)

is_interrupt_loading

public boolean is_interrupt_loading()
Description copied from interface: CodeGenCommonInterface
Return the value of the interrupt_loading property. It is generally set from one thread to end a long CodeGen function in another thread safely and needs to be checked from wihin each loop.

Returns:
interrupt_loading property.

set_interrupt_loading

public void set_interrupt_loading(boolean b)
Description copied from interface: CodeGenCommonInterface
Set the value of the interrupt_loading property. This should cause any function likely to take a long time in another thread to return an error quickly.

Parameters:
b - new value of interupt_loading property.

set_nml_creator

public void set_nml_creator(NMLConnectionCreatorInterface _nml_creator)
Description copied from interface: CodeGenCommonInterface
Set the nml_creator property. Used only by the diagnostics tools. This object create NMLConnecton objects indirectly in a way to avoid circular dependancy.


get_nml_creator

public NMLConnectionCreatorInterface get_nml_creator()
Description copied from interface: CodeGenCommonInterface
Get the nml_creator property.

Returns:
nml_creator.

set_diag_dict_creator

public void set_diag_dict_creator(DiagNMLMsgDictCreatorInterface _diag_dict_creator)
Description copied from interface: CodeGenCommonInterface
Set a diag_dict_creator property. Only used by diagnostics tool. This object create DiagNMLMsgDict objects indirectly in a way to avoid circular dependancy.


get_diag_dict_creator

public DiagNMLMsgDictCreatorInterface get_diag_dict_creator()
Description copied from interface: CodeGenCommonInterface
Get the diag_dict_creator property. Only used by diagnostics tool.

Returns:
diag_dict_creator

get_m_modulesList

public FastListPanelInterface get_m_modulesList()
Description copied from interface: CodeGenCommonInterface
Get the ModulesList property. Depending on whether this is run from a graphical tool or not the ModulesList may simply wrap a Vector of strings of the module names or a Graphical widget for displaying selecting them.

Returns:
modulesList

set_m_modulesList

public void set_m_modulesList(FastListPanelInterface lst)
Description copied from interface: CodeGenCommonInterface
Set the ModulesList property. Depending on whether this is run from a graphical tool or not the ModulesList may simply wrap a Vector of strings of the module names or a Graphical widget for displaying selecting them.


get_m_modulesCountList

public CountListInterface get_m_modulesCountList()

set_m_modulesCountList

public void set_m_modulesCountList(CountListInterface lst)

get_serversList

public FastListPanelInterface get_serversList()

set_serversList

public void set_serversList(FastListPanelInterface lst)