- redefine activate method
- for task introduced open() conext method
This commit is contained in:
@@ -35,6 +35,9 @@ class Pot(APlant):
|
||||
leak = 1/self.M * self.L * (self.theta_amb - self.temp)/self.theta_amb
|
||||
self.temp += (self.power_actual / (self.M * self.C) + leak) * self.dt
|
||||
|
||||
def is_activated(self):
|
||||
return True
|
||||
|
||||
def set_power(self, power):
|
||||
self.power_set = power
|
||||
|
||||
|
||||
Reference in New Issue
Block a user