code: def initializeSim(self):
          '''
          Prepares this AgentType for a new simulation.  Resets the internal random number generator,
          makes initial states for all agents (using simBirth), clears histories of tracked variables.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          None
          '''
          self.resetRNG()
          self.t_sim = 0
          all_agents = np.ones(self.AgentCount,dtype=bool)
          blank_array = np.zeros(self.AgentCount)
          for var_name in self.poststate_vars:
              exec('self.' + var_name + ' = copy(blank_array)')
          self.t_age = np.zeros(self.AgentCount,dtype=int)   # Number of periods since agent entry
          self.t_cycle = np.zeros(self.AgentCount,dtype=int) # Which cycle period each agent is on
          self.simBirth(all_agents)
          self.clearHistory()
          return Nonf initializeSim(self):
          '''
          Prepares this AgentType for a new simulation.  Resets the internal random number generator,
          makes initial states for all agents (using simBirth), clears histories of tracked variables.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          None
          '''
          self.resetRNG()
          self.t_sim = 0
          all_agents = np.ones(self.AgentCount,dtype=bool)
          blank_array = np.zeros(self.AgentCount)
          for var_name in self.poststate_vars:
              exec('self.' + var_name + ' = copy(blank_array)')
          self.t_age = np.zeros(self.AgentCount,dtype=int)   # Number of periods since agent entry
          self.t_cycle = np.zeros(self.AgentCount,dtype=int) # Which cycle period each agent is on
          self.simBirth(all_agents)
          self.clearHistory()
          return None
docs: Prepares this AgentType for a new simulation.  Resets the internal random number generator,
          makes initial states for all agents (using simBirth), clears histories of tracked variables.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          None