28 lines
432 B
Python
28 lines
432 B
Python
import abc
|
|
from utils.value import AttributeChange
|
|
|
|
|
|
class APlant(AttributeChange):
|
|
def __init__(self):
|
|
AttributeChange.__init__(self)
|
|
|
|
@abc.abstractmethod
|
|
def activate(self, enable):
|
|
return None
|
|
|
|
@abc.abstractmethod
|
|
def process(self):
|
|
pass
|
|
|
|
@abc.abstractmethod
|
|
def set_power(self, power):
|
|
pass
|
|
|
|
@abc.abstractmethod
|
|
def get_power(self):
|
|
return None
|
|
|
|
@abc.abstractmethod
|
|
def get_temperature(self):
|
|
return None
|