ReactionSystemBase#
module wntr.msx.base
- class ReactionSystemBase[source]#
Bases:
ABCAbstract class for reaction systems, which contains variables and reaction expressions.
This class contains the functions necessary to perform dictionary-style addressing of variables by their name. It does not allow dictionary-style addressing of reactions.
This is an abstract class with some concrete attributes and methods. Parameters and methods documented here must be defined by a subclass except for the following:
Concrete attributes
The
__init__()method defines the following attributes concretely. Thus, a subclass should callsuper().__init__()orsuper().__init__(filename)._varsVariables registry, which is mapped to dictionary functions on the reaction system object
_rxnsReactions dictionary
Concrete methods
The following special methods are concretely provided to directly access items in the
_varsattribute.__contains____eq__Return self==value.
__ne__Return self!=value.
__getitem____iter____len__