class_docstr: Initialise a PomdpXWriter Object
  
  Parameters
  ----------
      model: A Bayesian of Markov Model
          The model to write
  
  encoding: String(optional)
      Encoding for text data
  
  prettyprint: Bool(optional)
      Indentation in output XML if true
class_docstr_tok: ["Initialise","a","PomdpXWriter","Object","Parameters","--","--","--","--","--","model",":","A","Bayesian","of","Markov","Model","The","model","to","write","encoding",":","String","(","optional",")","Encoding","for","text","data","prettyprint",":","Bool","(","optional",")","Indentation","in","output","XML","if","true"]
docstr: add state transition function tag to pomdpx model
  
  Return
  ---------------
  string containing the xml for state transition tag
docstr_tok: ["add","state","transition","function","tag","to","pomdpx","model","Return","--","--","--","--","--","--","--","-","string","containing","the","xml","for","state","transition","tag"]
code: def add_state_transition_function(self):
      """
      add state transition function tag to pomdpx model
  
      Return
      ---------------
      string containing the xml for state transition tag
      """
      state_transition_function = self.model[
          "state_transition_function"
      ]
      for condition in state_transition_function:
          condprob = etree.SubElement(
              self.transition_function, "CondProb"
          )
          self.add_conditions(condition, condprob)
      return self.__str__(self.transition_function)[:-1]
  
imports: import xml.etree.ElementTree
  from collections import defaultdict
label_desc: Use image node_id 9 for calling the PomdpXWriter obj's underlying member method code with example usage: obj.add_state_transition_function() and returns: self