FactoryStatusUpdate

class scml.scml2019.FactoryStatusUpdate(balance, storage)[source]

Bases: object

Attributes Summary

balance

The update to the balance

is_empty

storage

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 from

empty()

make_empty()

Makes the update an empty one.

Attributes Documentation

balance: float

The update to the balance

is_empty
storage: Dict[int, int]

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 from

Returns:

classmethod empty()[source]
make_empty()[source]

Makes the update an empty one.

Return type

None