def __init__(self, partition, api_prefix='Rte', file_prefix = 'MockRte', include=None, mode_switch=False, os_enable=False):
      super().__init__(partition, api_prefix, include, mode_switch)      
      self.includes.append((file_prefix+'.h', False))      
      self.api_prefix = api_prefix
      self.file_prefix = file_prefix
      self.os_enable = os_enable
      self.typedefs={}
      for port in partition.unconnectedPorts():
         if isinstance(port, autosar.rte.base.ProvidePort):
            self._create_port_getter_api(port)
         else:
            if len(port.data_elements)>0 or len(port.operations)>0:
               self._create_port_setter_api(port)
         self.partition.upperLayerAPI.finalize()