public void currentMethodPerformance()
        {
            int numOfBearings = CurrentSimulationTable.Count();

            CurrentPerformanceMeasures.CalculateBearingCost(numOfBearings, BearingCost);
            CurrentPerformanceMeasures.CalculateDelayCost(totalCurrentDelayTime, DowntimeCost);
            CurrentPerformanceMeasures.CalculateDowntimeCost(numOfBearings, RepairTimeForOneBearing, DowntimeCost);
            CurrentPerformanceMeasures.CalculateRepairPersonCost(numOfBearings, RepairTimeForOneBearing, RepairPersonCost);
            CurrentPerformanceMeasures.CalculateTotalCost();
        }
Beispiel #2
0
        public object Clone()
        {
            SimulationSystem system = (SimulationSystem)MemberwiseClone();

            system.DelayTimeDistribution       = new List <TimeDistribution>(DelayTimeDistribution);
            system.BearingLifeDistribution     = new List <TimeDistribution>(BearingLifeDistribution);
            system.CurrentSimulationTable      = new List <CurrentSimulationCase>(CurrentSimulationTable);
            system.ProposedSimulationTable     = new List <ProposedSimulationCase>(ProposedSimulationTable);
            system.ProposedPerformanceMeasures = (PerformanceMeasures)ProposedPerformanceMeasures.Clone();
            system.CurrentPerformanceMeasures  = (PerformanceMeasures)CurrentPerformanceMeasures.Clone();
            return(system);
        }