Пример #1
0
 private static IEnumerable <AutopilotRule> CreateValidAutopilotRules(AutopilotFlexibilityLevel flexibilityLevel = AutopilotFlexibilityLevel.Low)
 {
     return(new List <AutopilotRule>
     {
         AutopilotRule.Create((int)flexibilityLevel, 1, (int)RuleCategory.General, 5, -5, 10, -10),
         AutopilotRule.Create((int)flexibilityLevel, 2, (int)RuleCategory.General, 5, -5, 10, -10),
         AutopilotRule.Create((int)flexibilityLevel, 3, (int)RuleCategory.General, 0, 0, 0, 0),
         AutopilotRule.Create((int)flexibilityLevel, 1, (int)RuleCategory.Tolerances, 5, 5, 10, 10),
         AutopilotRule.Create((int)flexibilityLevel, 2, (int)RuleCategory.Tolerances, 5, 5, 10, 10),
         AutopilotRule.Create((int)flexibilityLevel, 3, (int)RuleCategory.Tolerances, 5, 5, 10, 10),
         AutopilotRule.Create((int)flexibilityLevel, 1, (int)RuleCategory.Rules, -5, 5, -10, 10),
         AutopilotRule.Create((int)flexibilityLevel, 2, (int)RuleCategory.Rules, 0, 0, 0, 0),
         AutopilotRule.Create((int)flexibilityLevel, 3, (int)RuleCategory.Rules, 0, 0, 0, 0),
         AutopilotRule.Create((int)flexibilityLevel, 1, (int)RuleCategory.SlottingLimits, 0, 0, 0, 0)
     });
 }
Пример #2
0
 public static IEnumerable <AutopilotRule> CreateValidAutopilotRules(AutopilotFlexibilityLevel flexibilityLevel = AutopilotFlexibilityLevel.Low)
 {
     return(new List <AutopilotRule>
     {
         AutopilotRule.Create((int)flexibilityLevel, 1, (int)RuleCategory.General,
                              TightenABitPercentage, LoosenABitPercentage, TightenALotPercentage, LoosenALotPercentage),
         AutopilotRule.Create((int)flexibilityLevel, 2, (int)RuleCategory.General,
                              TightenABitPercentage, LoosenABitPercentage, TightenALotPercentage, LoosenALotPercentage),
         AutopilotRule.Create((int)flexibilityLevel, 3, (int)RuleCategory.General,
                              TightenABitPercentage, LoosenABitPercentage, TightenALotPercentage, LoosenALotPercentage),
         AutopilotRule.Create((int)flexibilityLevel, 1, (int)RuleCategory.Tolerances,
                              TightenABitPercentage, ToleranceLoosenABitPercentage, TightenALotPercentage, ToleranceLoosenALotPercentage),
         AutopilotRule.Create((int)flexibilityLevel, 1, (int)RuleCategory.Rules,
                              TightenABitPercentage, LoosenABitPercentage, TightenALotPercentage, LoosenALotPercentage),
         AutopilotRule.Create((int)flexibilityLevel, 1, (int)RuleCategory.SlottingLimits,
                              TightenABitPercentage, LoosenABitPercentage, TightenALotPercentage, LoosenALotPercentage)
     });
 }