File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ def state(self, now: datetime) -> dict:
49
49
"p" : self .p (now ),
50
50
}
51
51
52
+ def finalize (self ) -> None :
53
+ self .signal .finalize ()
54
+
52
55
53
56
class ComputingSystem (ActorBase ):
54
57
"""Model of the computing system.
@@ -89,6 +92,10 @@ def state(self, now: datetime) -> dict:
89
92
"nodes" : {signal .name : - signal .now (at = now ) for signal in self .nodes },
90
93
}
91
94
95
+ def finalize (self ) -> None :
96
+ for node in self .nodes :
97
+ node .finalize ()
98
+
92
99
93
100
class _ActorSim (mosaik_api_v3 .Simulator ):
94
101
META = {
Original file line number Diff line number Diff line change @@ -102,6 +102,8 @@ def finalize(self):
102
102
"""
103
103
for controller in self .controllers :
104
104
controller .finalize ()
105
+ for actor in self .actors :
106
+ actor .finalize ()
105
107
106
108
107
109
class Environment :
You can’t perform that action at this time.
0 commit comments