Exemplo n.º 1
0
        private static string StatusString(ReliabilityInfo ri)
        {
            if (ri.broken)
            {
                if (ri.critical)
                {
                    return(Lib.Color("busted", Lib.Kolor.Red));
                }
                return(Lib.Color("needs repair", Lib.Kolor.Orange));
            }
            if (ri.NeedsMaintenance())
            {
                return(Lib.Color("needs service", Lib.Kolor.Yellow));
            }

            if (ri.rel_duration > 0.75)
            {
                return(Lib.Color("operation duration", Lib.Kolor.Yellow));
            }
            if (ri.rel_ignitions > 0.95)
            {
                return(Lib.Color("ignition limit", Lib.Kolor.Yellow));
            }

            return(Lib.Color("good", Lib.Kolor.Green));
        }
Exemplo n.º 2
0
        private static string StatusString(ReliabilityInfo ri)
        {
            if (ri.broken)
            {
                if (ri.critical)
                {
                    return(Lib.Color(Local.QualityManagement_busted, Lib.Kolor.Red));                   //"busted"
                }
                return(Lib.Color(Local.QualityManagement_needsrepair, Lib.Kolor.Orange));               //"needs repair"
            }
            if (ri.NeedsMaintenance())
            {
                return(Lib.Color(Local.QualityManagement_needsservice, Lib.Kolor.Yellow));               //"needs service"
            }

            if (ri.rel_duration > 0.75)
            {
                return(Lib.Color(Local.QualityManagement_operationduration, Lib.Kolor.Yellow));                                   //"operation duration"
            }
            if (ri.rel_ignitions > 0.95)
            {
                return(Lib.Color(Local.QualityManagement_ignitionlimit, Lib.Kolor.Yellow)); //"ignition limit"
            }
            return(Lib.Color(Local.QualityManagement_good, Lib.Kolor.Green));               //"good"
        }
Exemplo n.º 3
0
 public List <ReliabilityInfo> ReliabilityStatus()
 {
     if (reliabilityStatus != null)
     {
         return(reliabilityStatus);
     }
     reliabilityStatus = ReliabilityInfo.BuildList(Vessel);
     return(reliabilityStatus);
 }