FactoryStatusUpdate¶
-
class
scml.scml2019.
FactoryStatusUpdate
(balance, storage)[source]¶ Bases:
object
Attributes Summary
The update to the balance
The updates to be applied to the storage after this step
Methods Summary
combine
(other)Combines this status update with another one in place
combine_sets
(dst, src)Combines a set of updates over time with another in place (overriding
first
) :type dst:Dict
[int
,FactoryStatusUpdate
] :param dst: First set of updates to be combined into :type src:Dict
[int
,FactoryStatusUpdate
] :param src: second set of updates to be combined fromempty
()Makes the update an empty one.
Attributes Documentation
-
balance
¶ The update to the balance
-
is_empty
¶
-
storage
¶ The updates to be applied to the storage after this step
Methods Documentation
-
combine
(other)[source]¶ Combines this status update with another one in place
- Parameters
other (
FactoryStatusUpdate
) – The other status update- Return type
None
- Returns
None
-
classmethod
combine_sets
(dst, src)[source]¶ Combines a set of updates over time with another in place (overriding
first
) :type dst:Dict
[int
,FactoryStatusUpdate
] :param dst: First set of updates to be combined into :type src:Dict
[int
,FactoryStatusUpdate
] :param src: second set of updates to be combined fromReturns:
-