Exemplo n.º 1
0
        public override void CheckTargetForForgeAndThrowIfFailed(CalibrationProgram target)
        {
            var dynamicTarget = target as DynamicCalibrationProgram;

            if (dynamicTarget != null)
            {
                TargetDefinition.ThrowIfNotEqual(dynamicTarget.TargetDefinition, ErrorCodes.CPRGPointsToDifferentItems);
                return;
            }

            base.CheckTargetForForgeAndThrowIfFailed(target);
        }
Exemplo n.º 2
0
 public virtual void CheckTargetForForgeAndThrowIfFailed(CalibrationProgram target)
 {
     Definition.ThrowIfNotEqual(target.Definition, ErrorCodes.CPRGPointsToDifferentItems);
 }
Exemplo n.º 3
0
 public bool IsBetterThanOther(CalibrationProgram other)
 {
     return(AveragePoints > other.AveragePoints);
 }