Example #1
0
 public void Calculate()
 {
     if (this.inPutFiber == null)
     {
         this.outPutFiber[0].InPutPower = null;
         this.outPutFiber[1].InPutPower = null;
     }
     else
     {
         this.attenuation = GetAttenuation(this.inPutFiber.OutPutPower);
         this.outPutFiber[0].InPutPower = attenuation.Loss1;
         this.outPutFiber[1].InPutPower = attenuation.Loss2;
     }
     this.outPutFiber[0].Calculate();
     this.outPutFiber[1].Calculate();
 }
Example #2
0
        public UnBalancedSplitter(UnBalancedType unbalanced, ICalculationManager calculationManager)
        {
            this.unbalanced = unbalanced;

            this.calculationManager = calculationManager;

            this.inPutFiber = null;

            this.attenuation = new UnBalancedAttenuation(null, null);

            this.outPutFiber = this.OutPuts();

            this.totalLoss1 = 0;

            this.totalLoss2 = 0;

            this.calculationManager.Add(this);
        }