# This file implements the sensor class.
# Main purpose is to provide a base class
# for the different kinds of sensors/actors
# that are used in the GardenPi project.
class XX:
    def __init__(self):
        print "XX"
    
class Sensor:
    def __init__(self,port_number):
        self.port_num = port_number
        self.name = ""

    def get_state(self):
        logging.error('Called get_name to base class')
        raise NotImplementedError( "Should have implemented this" ) 

    def get_states(self):
        logging.error('Called get_name to base class')
        raise NotImplementedError( "Should have implemented this" ) 

    def set_state(self, val):
        logging.error('Called get_name to base class')
        raise NotImplementedError( "Should have implemented this" ) 

    def get_name(self):
        logging.error('Called get_name to base class')
        raise NotImplementedError( "Should have implemented this" ) 

    def get_port_num(self):
        return self.port_num
    
    def get_name(self):
        return self.name

@@ -165,65 +165,8 @@
 ct.%0A
-class XX:%0A    def __init__(self):%0A        print %22XX%22%0A    
 %0Acla

remove obsolete code