Exemple #1
0
 public override void SetFlow(int x)
 {
     this.Flow = x;
     if (OutputA != null)
     {
         OutputA.SetFlow(Ratio * Flow);
     }
     if (OutputB != null)
     {
         OutputB.SetFlow((100 - Ratio) * Flow);
     }
 }
Exemple #2
0
        public void ChangeRatio(int ratio)
        {
            Ratio = ratio;

            if (OutputA != null)
            {
                OutputA.SetFlow(Ratio * Flow);
            }
            if (OutputB != null)
            {
                OutputB.SetFlow((100 - Ratio) * Flow);
            }
        }