/// <summary> /// Initializes a new instance of the flooding warning system. /// </summary> /// <param name="speedEstimator">Speed estimator.</param> /// <param name="depthEstimator">Depth estimator.</param> /// <param name="localWarner">Local warner.</param> public FloodingWarningSystem(ISpeedEstimator speedEstimator, IDepthEstimator depthEstimator, ILocalWarner localWarner) { Deploy(speedEstimator); Deploy(depthEstimator); Deploy(localWarner); InitializeMonitoringHooks(); }
/// <summary> /// Deploy the specified speedEstimator as the new estimator for speed. /// </summary> /// <param name="speedEstimator">Speed estimator.</param> public void Deploy(ISpeedEstimator speedEstimator) { this.speedEstimator = speedEstimator; }