Exemplo n.º 1
0
        static void Main(string[] args)
        {
            WriteLine("Hello World!");

            MaintainableUnit miles      = new MaintainableUnit("Mile", typeof(int));
            MaintainableType car        = new MaintainableType("Car", "Any automobile, including cars, trucks, vans, etc.");
            TaskDefault      oilDefault = new TaskDefault("Change oil", car, 6000, miles, null, "Change the oil of this vehicle.");
            Maintainable     myCar      = new Maintainable("Red Civic", car, "2016 Honda Civic Sedan, CVT", 40000);

            WriteLine("Done");
        }
Exemplo n.º 2
0
        private StringBuilder MaintainableData(Maintainable mai)
        {
            StringBuilder text = new StringBuilder();

            if (mai == null)
            {
                return(text);
            }
            text.Append("\n\tcondition : ").Append(mai.condition);
            text.Append("\n\thasReservation : ").Append(mai.hasReservation);
            text.Append("\n\tisOverride : ").Append(mai.isOverride);
            text.Append("\n\tMTBF : ").Append(mai.MTBF);
            text.Append("\n\tm_Condition : ").Append(mai.m_Condition);
            text.Append("\n\tRepairThreshold : ").Append(mai.RepairThreshold);

            return(text);
        }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     mt = FindObjectOfType <Maintainable>();
 }