- improved logging
git-svn-id: http://moon:8086/svn/projects/HendiControl@117 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import numpy as np
|
||||
import time
|
||||
import abc
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ class APlant(abc.ABC):
|
||||
def __init__(self, params):
|
||||
pass
|
||||
|
||||
def log(self, s):
|
||||
print("{:.2f}: {}".format(time.time(), s))
|
||||
|
||||
@abc.abstractmethod
|
||||
def process(self):
|
||||
pass
|
||||
@@ -14,6 +17,10 @@ class APlant(abc.ABC):
|
||||
def setPower(self, power_W):
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def getPower(self):
|
||||
return None
|
||||
|
||||
@abc.abstractmethod
|
||||
def getTemperature(self):
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user