Uses of Class
edu.nps.moves.dis7.source.generator.pdus.GeneratedClass
Packages that use GeneratedClass
Package
Description
Code generator classes supporting software production to create the
edu.nps.moves.dis7 libraries.-
Uses of GeneratedClass in edu.nps.moves.dis7.source.generator.pdus
Fields in edu.nps.moves.dis7.source.generator.pdus with type parameters of type GeneratedClassModifier and TypeFieldDescriptionprotected Map<String, GeneratedClass> AbstractGenerator.classDescriptionsContains abstract descriptions of all the classes, key = name, value = objectprotected Map<String, GeneratedClass> GeneratePdusForGivenLanguage.generatedClassNamesContains the database of all the classes described by the XML documentMethods in edu.nps.moves.dis7.source.generator.pdus with parameters of type GeneratedClassModifier and TypeMethodDescriptionvoidTreeNode.addClass(GeneratedClass aClass) Add class to treevoidCsharpGenerator.postProcessData(edu.nps.moves.dis7.source.generator.pdus.PrintStringBuffer printStringBuffer, GeneratedClass aClass) postprocess data as neededvoidCsharpGenerator.writeBitflagMethods(edu.nps.moves.dis7.source.generator.pdus.PrintStringBuffer pw, GeneratedClass aClass, int indent) Some fields have integers with bit fields defined, eg an integer where bits 0-2 represent some value, while bits 3-4 represent another value, and so on.This writes accessor and mutator methods for those fields.voidCsharpGenerator.writeClass(edu.nps.moves.dis7.source.generator.pdus.PrintStringBuffer pw, GeneratedClass aClass) Generate a source code file with getters, setters, ivars, and marshal/unmarshal methods for one class.voidPythonGenerator.writeClass(PrintWriter printWriter, GeneratedClass aClass) Create custom outputvoidPythonGenerator.writeClassComments(PrintWriter printWriter, GeneratedClass aClass) Create custom outputvoidCppGenerator.writeCppFile(GeneratedClass aClass) output file for this classvoidObjcGenerator.writeDeallocMethod(PrintWriter printWriter, GeneratedClass aClass) Produce custom output methodvoidJavaGenerator.writeEqualityImplMethod(PrintWriter pw, GeneratedClass aClass) write equalsImpl(...) method to this class to parent or subclassesvoidJavaGenerator.writeEqualityMethod(PrintWriter pw, GeneratedClass aClass) Write the code for an equality operator.voidCppGenerator.writeEqualityOperator(PrintWriter pw, GeneratedClass aClass) Write the code for an equality operator.This allows you to compare two objects for equality.The code should look like bool operator ==(const ClassName& rhs) return (_ivar1==rhs._ivar1 && _var2 == rhs._ivar2 ...)voidObjcGenerator.writeEqualityOperator(PrintWriter printWriter, GeneratedClass aClass) Write the code for an equality operator.voidJavascriptGenerator.writeFlagMethods(PrintWriter pw, GeneratedClass aClass) Some fields have integers with bit fields defined, eg an integer where bits 0-2 represent some value, while bits 3-4 represent another value, and so on.voidPythonGenerator.writeFlagMethods(PrintWriter pw, GeneratedClass aClass) Some fields have integers with bit fields defined, eg an integer where bits 0-2 represent some value, while bits 3-4 represent another value, and so on.voidCppGenerator.writeGetMarshalledSizeMethod(PrintWriter pw, GeneratedClass aClass) output marshalled sizevoidCsharpGenerator.writeGetMarshalledSizeMethod(edu.nps.moves.dis7.source.generator.pdus.PrintStringBuffer pw, GeneratedClass aClass, int indent) Write out method to get marshalled sizevoidJavaGenerator.writeGetMarshalledSizeMethod(PrintWriter printWriter, GeneratedClass aClass) Produce custom getMarshalledSize() methodvoidObjcGenerator.writeGetMarshalledSizeMethod(PrintWriter printWriter, GeneratedClass aClass) Produce custom output methodvoidCppGenerator.writeHeaderFile(GeneratedClass aClass) Generate a c++ header file for the classesvoidObjcGenerator.writeHeaderFile(GeneratedClass aClass) Generate a c++ header file for the classesvoidPythonGenerator.writeMarshal(PrintWriter pw, GeneratedClass aClass) The method that writes out the python marshalling codevoidCppGenerator.writeMarshalMethod(PrintWriter pw, GeneratedClass aClass) Write the code for a method that marshals out the object into a DIS format byte array.voidObjcGenerator.writeMarshalMethod(PrintWriter pw, GeneratedClass aClass) Write the code for a method that marshals out the object into a DIS format byte array.voidObjcGenerator.writeObjcFile(GeneratedClass aClass) Write custom object filevoidCppGenerator.writeSetterMethod(PrintWriter pw, GeneratedClass aClass, GeneratedClassAttribute anAttribute) write out setter methodvoidJavaGenerator.writeToStringMethod(PrintWriter pw, GeneratedClass aClass) Build the toString() method for this class, using the toString() methods of the fields of the objectvoidPythonGenerator.writeUnmarshal(PrintWriter printWriter, GeneratedClass aClass) Create custom methodvoidCppGenerator.writeUnmarshalMethod(PrintWriter pw, GeneratedClass aClass) write out unmarshal methodvoidObjcGenerator.writeUnmarshalMethod(PrintWriter printWriter, GeneratedClass aClass) Produce custom output methodConstructors in edu.nps.moves.dis7.source.generator.pdus with parameters of type GeneratedClassConstructor parameters in edu.nps.moves.dis7.source.generator.pdus with type arguments of type GeneratedClassModifierConstructorDescriptionAbstractGenerator(Map<String, GeneratedClass> pClassDescriptions, Properties pLanguageProperties) ConstructorCppGenerator(Map<String, GeneratedClass> pClassDescriptions, Properties pCppProperties) ConstructorCsharpGenerator(Map<String, GeneratedClass> pClassDescriptions, Properties pCsharpProperties) Create a generatorJavaGenerator(Map<String, GeneratedClass> pClassDescriptions, Properties pJavaProperties) ConstructorJavascriptGenerator(Map<String, GeneratedClass> pClassDescriptions, Properties pJavascriptProperties) Given the input object, something of an abstract syntax tree, this generates a source code file in the JavaScript language.It has ivars, getters, setters, and serialization/deserialization methods.Warning: only partially implemented.ObjcGenerator(Map<String, GeneratedClass> pClassDescriptions, Properties pObjcProperties) Given the input object, something of an abstract syntax tree, this generates a source code file in the ObjectiveC language.PythonGenerator(Map<String, GeneratedClass> pClassDescriptions, Properties languagePropertiesPython) Given the input object, something of an abstract syntax tree, this generates a source code file in the Python language.It has ivars, getters, setters, and serialization/deserialization methods.Warning: only partially implemented.