Esempio n. 1
0
 /// <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();
 }
Esempio n. 2
0
 /// <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;
 }