ControlChangeTracker#
module wntr.network.controls
- class ControlChangeTracker[source]#
Bases:
Observer
- deregister(control)[source]#
Deregister a control
- Parameters:
control (ControlBase)
- get_changes(ref_point)[source]#
A generator for iterating over the objects, attributes that were changed.
- Returns:
changes – (object, attr)
- Return type:
- register_control(control)[source]#
Register a control
- Parameters:
control (ControlBase)
- update(subject)[source]#
The update method gets called when a subject (control action) is activated.
- Parameters:
subject (BaseControlAction)