def act(self):
        key = self.name
        if not key:
            self.warning(logger, 'no valid tracking name set')
            return
        annotator = self.get('annotator')
        try:
            t = float(self.get('time'))
        except:
            self.warning(logger, 'no valid time set')
            return
        if annotator and key in monitor.trackers:
            tracker = monitor.trackers[key]
            tracker.annotate(t, annotator)
dataset/ETHPy150Open xumiao/pymonk/monk/roles/monitor.py/AnnotateTracker.act/original