parameters: (self)
docstring: Inicializa el mapa de callbacks.
docstring_summary: Inicializa el mapa de callbacks.
docstring_tokens: Inicializa el mapa de callbacks .
function: def _init_map(self):
          """Inicializa el mapa de callbacks."""
          event_map = {}
          event_map[(DEV_AGENT, EVT_AGENT_RESET)] = "reset_device"
          event_map[(DEV_PWR, EVT_PWR_DISCHARGE)] = "battery_discharging"
          event_map[(DEV_PWR, EVT_PWR_LVL_MIN)] = "battery_level_min"
          event_map[(DEV_PWR, EVT_PWR_LVL_CRI)] = "battery_level_critical"
          event_map[(DEV_PWR, EVT_PWR_LVL_MAX)] = "battery_level_max"
          event_map[(DEV_PWR, EVT_PWR_SWITCH_AC)] = "switch_ac"
          event_map[(DEV_PWR, EVT_PWR_UNPLUGGED)] = "battery_unplugged"
          event_map[(DEV_PWR, EVT_PWR_PLUGGED)] = "battery_plugged"
          event_map[(DEV_PWR, EVT_PWR_EMPTY)] = "battery_empty"
          event_map[(DEV_RFID, EVT_RFID_NEW_TAG)] = "tag_leido"
          event_map[(DEV_PRINTER, EVT_PRINTER_PAPER_INSERTED)] = "autofeed_end"
          event_map[(DEV_PRINTER, EVT_PRINTER_SENSOR_1)] = "insertando_papel"
          event_map[(DEV_PRINTER, EVT_PRINTER_SENSOR_2)] = "con_tarjeta"
          event_map[(DEV_PRINTER, CMD_PRINTER_PRINT)] = "fin_impresion"
          event_map[(DEV_PRINTER, CMD_PRINTER_PAPER_REMOVE)] = "boleta_expulsada"
          event_map[(DEV_PRINTER, CMD_PRINTER_MOVE)] = "fin_mover"
          event_map[(DEV_PRINTER, CMD_PRINTER_LOAD_COMP_BUFFER)] = \
              "buffer_loaded"
          event_map[(DEV_PRINTER, CMD_PRINTER_LOAD_COMP_BUFFER_FULL)] = \
              "buffer_loaded"
          event_map[(DEV_PIR, EVT_PIR_DETECTED)] = "pir_detected"
          event_map[(DEV_PIR, EVT_PIR_NOT_DETECTED)] = "pir_not_detected"
          self.event_map = event_map
function_tokens: def _init_map ( self ) : event_map = { } event_map [ ( DEV_AGENT , EVT_AGENT_RESET ) ] = "reset_device" event_map [ ( DEV_PWR , EVT_PWR_DISCHARGE ) ] = "battery_discharging" event_map [ ( DEV_PWR , EVT_PWR_LVL_MIN ) ] = "battery_level_min" event_map [ ( DEV_PWR , EVT_PWR_LVL_CRI ) ] = "battery_level_critical" event_map [ ( DEV_PWR , EVT_PWR_LVL_MAX ) ] = "battery_level_max" event_map [ ( DEV_PWR , EVT_PWR_SWITCH_AC ) ] = "switch_ac" event_map [ ( DEV_PWR , EVT_PWR_UNPLUGGED ) ] = "battery_unplugged" event_map [ ( DEV_PWR , EVT_PWR_PLUGGED ) ] = "battery_plugged" event_map [ ( DEV_PWR , EVT_PWR_EMPTY ) ] = "battery_empty" event_map [ ( DEV_RFID , EVT_RFID_NEW_TAG ) ] = "tag_leido" event_map [ ( DEV_PRINTER , EVT_PRINTER_PAPER_INSERTED ) ] = "autofeed_end" event_map [ ( DEV_PRINTER , EVT_PRINTER_SENSOR_1 ) ] = "insertando_papel" event_map [ ( DEV_PRINTER , EVT_PRINTER_SENSOR_2 ) ] = "con_tarjeta" event_map [ ( DEV_PRINTER , CMD_PRINTER_PRINT ) ] = "fin_impresion" event_map [ ( DEV_PRINTER , CMD_PRINTER_PAPER_REMOVE ) ] = "boleta_expulsada" event_map [ ( DEV_PRINTER , CMD_PRINTER_MOVE ) ] = "fin_mover" event_map [ ( DEV_PRINTER , CMD_PRINTER_LOAD_COMP_BUFFER ) ] = "buffer_loaded" event_map [ ( DEV_PRINTER , CMD_PRINTER_LOAD_COMP_BUFFER_FULL ) ] = "buffer_loaded" event_map [ ( DEV_PIR , EVT_PIR_DETECTED ) ] = "pir_detected" event_map [ ( DEV_PIR , EVT_PIR_NOT_DETECTED ) ] = "pir_not_detected" self . event_map = event_map