def METHOD_NAME(self, scanner, targets):
    assert isinstance(scanner, Scanner)
    assert is_iterable_typed(targets, basestring) or isinstance(targets, basestring)
    engine = self.manager_.engine()
    engine.set_target_variable(targets, "HDRSCAN", scanner.pattern())
    engine.set_target_variable(targets, "HDRRULE",
                               self.exported_scanners_[scanner])
    engine.set_target_variable(targets, "HDRGRIST", str(id(scanner)))