<reponame>RishiKumarRay/mil<gh_stars>10-100
from ros_alarms import HandlerBase


class Kill(HandlerBase):
    alarm_name = "kill"

    def meta_predicate(self, meta, alarms):
        return alarms.get('test2').raised


class Tester(HandlerBase):
    alarm_name = "testing"

    def raised(self, alarm):
        print "Tester raised"

    def cleared(self, alarm):
        print "Tester cleared"


class Tester2(HandlerBase):
    alarm_name = "testing1"

    def raised(self, alarm):
        print "Tester2 raised"

    def cleared(self, alarm):
        print "Tester2 cleared"


class Tester3(object):
    pass

from ros_alarms import HandlerBase


class Kill(HandlerBase):
    alarm_name = "kill"

    def meta_predicate(self, meta, alarms):
        return alarms.get('test2').raised


class Tester(HandlerBase):
    alarm_name = "testing"

    def raised(self, alarm):
        print "Tester raised"

    def cleared(self, alarm):
        print "Tester cleared"


class Tester2(HandlerBase):
    alarm_name = "testing1"

    def raised(self, alarm):
        print "Tester2 raised"

    def cleared(self, alarm):
        print "Tester2 cleared"


class Tester3(object):
    pass