Exemplo n.º 1
0
 public SecondLabCalculatingObject(TraceLength traceLength, WaveLength waveLength,
                                   ThetaDegrees thetaDegrees, RelativeTraceLength relativeTraceLength, DiafragmRadius diafragmRadius, bool isDirected, bool reverseRelativeDistance)
 {
     this.traceLength             = traceLength;
     this.waveLength              = waveLength;
     this.thetaDegrees            = thetaDegrees;
     this.relativeTraceLength     = relativeTraceLength;
     this.isDirected              = isDirected;
     this.diafragmRadius          = diafragmRadius;
     this.reverseRelativeDistance = reverseRelativeDistance;
 }
 public ThirdLabCalculationObject(Conductivity conductivity, ElectricalPermeability electricalPermeability, WaveLength waveLength, Height transmitterHeight, Height receiverHeight, ThetaDegrees thetaDegrees, TraceLength traceLength, PolarizationType polarizationType)
 {
     this.conductivity           = conductivity;
     this.electricalPermeability = electricalPermeability;
     this.waveLength             = waveLength;
     this.transmitterHeight      = transmitterHeight;
     this.receiverHeight         = receiverHeight;
     this.thetaDegrees           = thetaDegrees;
     this.traceLength            = traceLength;
     this.PolarizationType       = polarizationType;
 }
Exemplo n.º 3
0
        public void CalculateFresnelZone(double waveLength, double traceLength, double relativeTraceLength, int fresnelZoneRadius, double expected)
        {
            WaveLength          waveLengthObject          = new WaveLength(waveLength, MetricPrefixes.One, UnitsOfMeasurement.Meter);
            TraceLength         traceLengthObject         = new TraceLength(traceLength);
            RelativeTraceLength relativeTraceLengthObject = new RelativeTraceLength(relativeTraceLength,
                                                                                    MetricPrefixes.Percents, UnitsOfMeasurement.Percents);
            SecondLabCalculatingObject slco = new SecondLabCalculatingObject(traceLengthObject, waveLengthObject, null,
                                                                             relativeTraceLengthObject, null, true, true);
            var nFrenselZone = slco.CalculateNFresnelZone(fresnelZoneRadius).Value;

            Assert.AreEqual(Math.Ceiling(expected), Math.Ceiling(nFrenselZone));
        }