Exemplo n.º 1
0
        public float ForceRepair(ITestFlightFailure failure)
        {
            if (failure == null)
            {
                return(0);
            }

            failure.ForceRepair();
            // update our major failure flag in case this repair changes things
            hasMajorFailure = HasMajorFailure();

            return(0);
        }
Exemplo n.º 2
0
        public double ForceRepair()
        {
            if (activeFailure == null)
            {
                return(0);
            }

            double repairStatus = activeFailure.ForceRepair();

            if (repairStatus == 0)
            {
                activeFailure       = null;
                failureAcknowledged = false;
                operatingTime       = 0;
                return(0);
            }
            else
            {
                return(repairStatus);
            }
        }
Exemplo n.º 3
0
        public float ForceRepair(ITestFlightFailure failure)
        {
            if (failure == null)
                return 0;

            failure.ForceRepair();
            // update our major failure flag in case this repair changes things
            hasMajorFailure = HasMajorFailure();

            return 0;
        }