code: def build(self):
          
  
          self.sim = Simulation()
  
          for component_id in self.model.targets:
              if component_id not in self.model.components:
                  raise SimBuildError("Unable to find target component '{0}'",
                                      component_id)
              component = self.model.fat_components[component_id]
  
              runnable = self.build_runnable(component)
              self.sim.add_runnable(runnable)
  
          return self.sim
docs: Build the simulation components from the model.
  
          @return: A runnable simulation object
          @rtype: lems.sim.sim.Simulation