public AnalyticRuleCylinderCoilChargePeakTime(
     int cylNum, AnalyticRuleSettings settings)
     : base(settings)
 {
     this.cylNum       = cylNum;
     requiredParameter = ModelRelatedPsaParameters.Get(cylNum);
     RegisterRequiredParameter(PsaParameterType.EngineRpm);
     RegisterRequiredParameter(requiredParameter);
 }
 public AnalyticRuleCylinderCoilChargeTimeForRpm(
     AnalyticRuleSettings settings)
     : base(settings)
 {
     cylNumber         = CylinderNumberToCoilRuleTypeMapper.Map(settings.RuleType);
     requiredParameter = ModelRelatedPsaParameters.Get(cylNumber);
     RegisterRequiredParameter(PsaParameterType.EngineRpm);
     RegisterRequiredParameter(ModelRelatedPsaParameters.Get(
                                   CylinderNumberToCoilRuleTypeMapper.Map(settings.RuleType)));
 }
Ejemplo n.º 3
0
        private PsaParameterType GetRequiredType()
        {
            int cyl = CylinderNumberToCoilRuleTypeMapper.Map(ruleType);

            return(ModelRelatedPsaParameters.Get(cyl));
        }