Public Member Functions | |
def | __init__ |
def | writeXML |
Public Attributes | |
alignabletype | |
location |
Definition at line 76 of file MCScenario_CRAFT1_22X.py.
def MCScenario_CRAFT1_22X::Alignable::__init__ | ( | self, | |
alignabletype, | |||
location | |||
) |
Definition at line 77 of file MCScenario_CRAFT1_22X.py.
def MCScenario_CRAFT1_22X::Alignable::writeXML | ( | self | ) |
Definition at line 81 of file MCScenario_CRAFT1_22X.py.
00082 : 00083 parameters = self.location.keys() 00084 if self.alignabletype[0:2] == "DT": 00085 parameters.sort(DTsorter) 00086 else: 00087 parameters.sort(CSCsorter) 00088 00089 output = ["<", self.alignabletype, " "] 00090 for parameter in parameters: 00091 output.extend([parameter, "=\"", str(self.location[parameter]), "\" "]) 00092 output.append("/>") 00093 00094 return "".join(output)
Definition at line 77 of file MCScenario_CRAFT1_22X.py.
Definition at line 77 of file MCScenario_CRAFT1_22X.py.