Esempio n. 1
0
        public Mesurement(int position, string source, string dest, CableType type, int now, double dist, int cop, int cow, double realA)
        {
            Number       = position;
            Source       = source;
            Destination  = dest;
            Type         = type;
            NumberOfWire = now;
            Distance     = dist;
            CountOfPig   = cop;
            CountOfWeld  = cow;

            MaxAttenuation  = CountOfWeld * MainWindow.activeProject.WeldAttenuation + CountOfPig * MainWindow.activeProject.PigAttenuation + Distance * type.Attenuation;
            RealAttenuation = realA;

            PropperValue = RealAttenuation < MaxAttenuation;
        }
Esempio n. 2
0
 public Mesurement(int position, string source, string dest, CableType type, int now, double dist, int cop, int cow, double realA, bool result) : this(position, source, dest, type, now, dist, cop, cow, realA)
 {
     IsPropperValueManuallySet = true;
     PropperValue = result;
 }