def __init__(self, partition, os_cfg, prefix='RteTask', include=None):
      self.partition = partition
      self.prefix = prefix
      self.os_cfg = os_cfg
      self.includes = [
                     #array of tuples, first element is the name of include header, second element is True if this is a sysinclude
                     ('stdio.h', True),
                     ('Rte.h', False),
                     ('Rte_Type.h', False),
                     #('%s.h'%self.prefix, False),
                     ('os.h', False),
         ]
      for component in self.partition.components:
         if not isinstance(component.inner, autosar.bsw.com.ComComponent):
            self.includes.append(('Rte_%s.h'%component.name, False))
      if include is not None:
         for elem in List(include):
            if isinstance(elem, str):
               self.includes.append((elem, False))
            elif isinstance(elem, tuple):
               self.includes.append(elem)
            else:
               raise ValueError("elem: expected string or tuple, got "+str(type(elem)))