parameters: (self)
return_statement: return self.xml
docstring: introspect the session and create a session xml from it
docstring_summary: introspect the session and create a session xml from it
docstring_tokens: introspect the session and create a session xml from it
function: def introspect(self):
          '''introspect the session and create a session xml from it'''
          # create an xml document
          xml_impl = getDOMImplementation()
          self.doc = xml_impl.createDocument(None, "session", None)
          self.root = self.doc.documentElement
  
          # go through the tactic
          tactic_nodes = self.util.get_all_tactic_nodes() 
          tactic_nodes.sort()
          for tactic_node in tactic_nodes:
  
              node_data = NodeData(tactic_node)
              ref_node = node_data.get_ref_node()
  
              # set some more info on the ref node
              ref_node.setAttribute("tactic_node", tactic_node)
              self.root.appendChild(ref_node)
  
          self.xml = self.doc.toprettyxml()
          return self.xml
function_tokens: def introspect ( self ) : # create an xml document xml_impl = getDOMImplementation ( ) self . doc = xml_impl . createDocument ( None , "session" , None ) self . root = self . doc . documentElement # go through the tactic tactic_nodes = self . util . get_all_tactic_nodes ( ) tactic_nodes . sort ( ) for tactic_node in tactic_nodes : node_data = NodeData ( tactic_node ) ref_node = node_data . get_ref_node ( ) # set some more info on the ref node ref_node . setAttribute ( "tactic_node" , tactic_node ) self . root . appendChild ( ref_node ) self . xml = self . doc . toprettyxml ( ) return self . xml