def generate(self, destdir, mocked=None):
      if mocked is not None:
         self.useMockedAPI=bool(mocked)
      for component in self.partition.components:
         if not isinstance(component.inner, autosar.bsw.com.ComComponent):
            with io.open(os.path.join(destdir, 'Rte_%s.h'%component.inner.name), 'w', newline='\n') as fp:
               self._genComponentHeader(fp, component)