def _generate_runnable_calls(self, code, matching_runnables):
      events = matching_runnables[0].event_triggers
      if len(events) == 1:
         event = events[0]
         if not isinstance(event, autosar.rte.base.OperationInvokedEvent):
            code.append(C.line('if (eventMask & %s)'%event.symbol))
            block = C.block(innerIndent = innerIndentDefault)
            for runnable in matching_runnables:
               block.append(C.statement(C.fcall(runnable.symbol)))
            code.append(block)
      elif len(events) > 1:      
         raise NotImplementedError('multiple events')