예제 #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;
        }
예제 #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;
 }