You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with the new interface, I now notice a shortcoming of removing the actors from the pickled Microgrid representation:
From the broker, it is practically impossible to know which actor state comes from which type of actor (e.g. Generator vs Consumer); before you would have been able to differentiate it from the actors attribute of the pickled Microgrid object.
From what I can tell, there is no good way of doing this anymore, right?
Knowing what kind of actor produced the actor state is pretty important to be able to interpret its contents/semantics. I can come up with 2 somewhat elegant solutions (but surely there is more):
Include the actor type into the actor state by default by implementing it in the _ControllerSim somehow. (Adding it to the implementations of Generator and Consumer manually would be an easy fix, but I find that quite inconsistent, because according to the docs, an Actor can return any dict as a state...)
Pass the actor types along with the states to the Broker - e.g.
It should be noted that other Controller's are not affected by this because they could access the actors through the Microgrid object directly, which the Broker instance cannot.
The text was updated successfully, but these errors were encountered:
Working with the new interface, I now notice a shortcoming of removing the actors from the pickled Microgrid representation:
From the broker, it is practically impossible to know which actor state comes from which type of actor (e.g. Generator vs Consumer); before you would have been able to differentiate it from the
actors
attribute of the pickled Microgrid object.From what I can tell, there is no good way of doing this anymore, right?
Knowing what kind of actor produced the actor state is pretty important to be able to interpret its contents/semantics. I can come up with 2 somewhat elegant solutions (but surely there is more):
_ControllerSim
somehow. (Adding it to the implementations ofGenerator
andConsumer
manually would be an easy fix, but I find that quite inconsistent, because according to the docs, an Actor can return any dict as a state...)Broker
- e.g.It should be noted that other
Controller
's are not affected by this because they could access the actors through the Microgrid object directly, which theBroker
instance cannot.The text was updated successfully, but these errors were encountered: