Beispiel #1
0
 public TimeVariantInputDTO(
     System.Int64 p_Additional_32_Costs,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Additional_32_Costs = p_Additional_32_Costs;
     TimePeriod          = p_TimePeriod;
 }
Beispiel #2
0
 public TimeVariantInputDTO(
     System.Double p_Number_32_of_32_Employees_32_Affected,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Number_32_of_32_Employees_32_Affected = p_Number_32_of_32_Employees_32_Affected;
     TimePeriod = p_TimePeriod;
 }
Beispiel #3
0
 public TimeVariantInputDTO(
     System.Double p_Renewable_32_Capacity_32_Added,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Renewable_32_Capacity_32_Added = p_Renewable_32_Capacity_32_Added;
     TimePeriod = p_TimePeriod;
 }
 public TimeVariantLocalConditionDTO(
     System.Double?p_ConditionScoreLocal,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     ConditionScoreLocal = p_ConditionScoreLocal;
     TimePeriod          = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Event_32_Type,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Event_32_Type = p_Event_32_Type;
     TimePeriod    = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     System.Double p_Benefit_32_Probability,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Benefit_32_Probability = p_Benefit_32_Probability;
     TimePeriod             = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     System.Double?p_COF,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     COF        = p_COF;
     TimePeriod = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Stability_32_Issue,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Stability_32_Issue = p_Stability_32_Issue;
     TimePeriod         = p_TimePeriod;
 }
Beispiel #9
0
 public TimeVariantInputDTO(
     System.Double p_Costs_32_incurred_32_after_32_this_32_investment_32_is_32_undertaken,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Costs_32_incurred_32_after_32_this_32_investment_32_is_32_undertaken = p_Costs_32_incurred_32_after_32_this_32_investment_32_is_32_undertaken;
     TimePeriod = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     CL.FormulaHelper.DTOs.NumericValueRangeDTO p_Manual_32_Risk_32_Consequence,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Manual_32_Risk_32_Consequence = p_Manual_32_Risk_32_Consequence;
     TimePeriod = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     System.Double p_Condition,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Condition  = p_Condition;
     TimePeriod = p_TimePeriod;
 }
Beispiel #12
0
 public TimeVariantInputDTO(
     CL.FormulaHelper.DTOs.NumericValueRangeDTO p_Manual_32_Risk_32_Probability,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Manual_32_Risk_32_Probability = p_Manual_32_Risk_32_Probability;
     TimePeriod = p_TimePeriod;
 }
Beispiel #13
0
 public TimeVariantInputDTO(
     System.Double p_Lost_32_Generation,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Lost_32_Generation = p_Lost_32_Generation;
     TimePeriod         = p_TimePeriod;
 }
Beispiel #14
0
 public TimeVariantInputDTO(
     System.Double p_Costs_32_Saved,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Costs_32_Saved = p_Costs_32_Saved;
     TimePeriod     = p_TimePeriod;
 }
        public override double?[] GetUnits(int startFiscalYear, int months,
                                           TimeInvariantInputDTO timeInvariantData, IReadOnlyList <TimeVariantInputDTO> timeVariantData)
        {
            // TODO: Pass this as a value measure
            var    answers             = timeVariantData.FirstOrDefault();
            double estimatedDesignLife = timeInvariantData.Design_32_Life;


            CL.FormulaHelper.DTOs.TimePeriodDTO timePeriod = new CL.FormulaHelper.DTOs.TimePeriodDTO();
            var endOfSpendMonthOffset = FormulaBase.FindEndOfSpendMonth(timeInvariantData.InvestmentSpendByAccountType);

            if (!endOfSpendMonthOffset.HasValue)
            {
                return(null);
            }
            timePeriod.StartTime = FormulaBase.GetCalendarDateTime(startFiscalYear, fiscalPeriod: 1)
                                   .AddMonths(endOfSpendMonthOffset.Value + 1); // + 1 because the benefit starts in the first month after end of spend.

            TimeVariantLocalConditionDTO localTimeInvariantData =
                new TimeVariantLocalConditionDTO(answers.Condition, timePeriod);

            List <TimeVariantLocalConditionDTO> localTimeInvariantDataList
                = new List <TimeVariantLocalConditionDTO>();

            localTimeInvariantDataList.Add(localTimeInvariantData);

            // A generic end of life condition decay curve, generated based on the design life entered by user.
            XYCurveDTO conditionDecayCurve = HelperFunctions.GenericEndOfLifeModel.constructConditionDecayCurve(estimatedDesignLife);

            return(InterpolateCurve <TimeVariantLocalConditionDTO>(localTimeInvariantDataList,
                                                                   startFiscalYear,
                                                                   months,
                                                                   conditionDecayCurve,
                                                                   x => x.ConditionScoreLocal));
        }
Beispiel #16
0
 public TimeVariantInputDTO(
     System.Double p_Risk_32_Avoidance_32_Probability,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Risk_32_Avoidance_32_Probability = p_Risk_32_Avoidance_32_Probability;
     TimePeriod = p_TimePeriod;
 }
Beispiel #17
0
 public TimeVariantInputDTO(
     System.Boolean p_BES_32_Risk_32_Issue,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     BES_32_Risk_32_Issue = p_BES_32_Risk_32_Issue;
     TimePeriod           = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     System.Int32 p_Business_32_Continuity_32_Employees_32_Affected,
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Productivity_32_Impact,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Business_32_Continuity_32_Employees_32_Affected = p_Business_32_Continuity_32_Employees_32_Affected;
     Productivity_32_Impact = p_Productivity_32_Impact;
     TimePeriod             = p_TimePeriod;
 }
Beispiel #19
0
 public TimeVariantInputDTO(
     System.Double?p_COF,
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Consequence_32_of_32_Environment_32_Risk,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     COF = p_COF;
     Consequence_32_of_32_Environment_32_Risk = p_Consequence_32_of_32_Environment_32_Risk;
     TimePeriod = p_TimePeriod;
 }
Beispiel #20
0
 public TimeVariantInputDTO(
     System.Double?p_COF,
     System.Double?p_Probability_32_of_32_Environment_32_Risk,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     COF = p_COF;
     Probability_32_of_32_Environment_32_Risk = p_Probability_32_of_32_Environment_32_Risk;
     TimePeriod = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     System.Double?p_COF,
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Consequence_32_of_32_Collateral_32_Damage,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     COF = p_COF;
     Consequence_32_of_32_Collateral_32_Damage = p_Consequence_32_of_32_Collateral_32_Damage;
     TimePeriod = p_TimePeriod;
 }
Beispiel #22
0
 public TimeVariantInputDTO(
     System.Int32 p_Number_32_of_32_Sensitive_32_Customers,
     System.Double p_Radial_32_Load,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Number_32_of_32_Sensitive_32_Customers = p_Number_32_of_32_Sensitive_32_Customers;
     Radial_32_Load = p_Radial_32_Load;
     TimePeriod     = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     System.Double?p_POF,
     System.Double p_Probability_32_of_32_Collateral_32_Damage,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     POF = p_POF;
     Probability_32_of_32_Collateral_32_Damage = p_Probability_32_of_32_Collateral_32_Damage;
     TimePeriod = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     System.Double?p_COF,
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Population_32_Density,
     System.Double?p_Probability_32_of_32_Danger,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     COF = p_COF;
     Population_32_Density       = p_Population_32_Density;
     Probability_32_of_32_Danger = p_Probability_32_of_32_Danger;
     TimePeriod = p_TimePeriod;
 }
Beispiel #25
0
 public TimeVariantInputDTO(
     System.Double?p_COF,
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Line_32_Voltage,
     System.Double?p_Time_32_to_32_Repair,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     COF                  = p_COF;
     Line_32_Voltage      = p_Line_32_Voltage;
     Time_32_to_32_Repair = p_Time_32_to_32_Repair;
     TimePeriod           = p_TimePeriod;
 }
Beispiel #26
0
 public TimeVariantInputDTO(
     System.Int32 p_Number_32_of_32_Outages_32_Radial_32_Load,
     System.Double p_Outage_32_Window,
     System.Double p_Planned_32_Outage_32_Days,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     Number_32_of_32_Outages_32_Radial_32_Load = p_Number_32_of_32_Outages_32_Radial_32_Load;
     Outage_32_Window          = p_Outage_32_Window;
     Planned_32_Outage_32_Days = p_Planned_32_Outage_32_Days;
     TimePeriod = p_TimePeriod;
 }
 public TimeVariantInputDTO(
     System.Double?p_COF,
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Equipment_32_Type,
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Station_32_Voltage,
     System.Double?p_Time_32_to_32_Repair,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     COF = p_COF;
     Equipment_32_Type    = p_Equipment_32_Type;
     Station_32_Voltage   = p_Station_32_Voltage;
     Time_32_to_32_Repair = p_Time_32_to_32_Repair;
     TimePeriod           = p_TimePeriod;
 }
Beispiel #28
0
 public TimeVariantInputDTO(
     System.Double?p_COF,
     System.Double?p_Probability_32_of_32_Danger,
     System.Double?p_Probability_32_of_32_Injury,
     System.Double?p_Probability_32_of_32_Person_32_in_32_Danger,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod)
 {
     COF = p_COF;
     Probability_32_of_32_Danger = p_Probability_32_of_32_Danger;
     Probability_32_of_32_Injury = p_Probability_32_of_32_Injury;
     Probability_32_of_32_Person_32_in_32_Danger = p_Probability_32_of_32_Person_32_in_32_Danger;
     TimePeriod = p_TimePeriod;
 }
Beispiel #29
0
 public TimeVariantInputDTO(
     System.Double?p_COF,
     System.Double?p_Generation_32_Curtailment,
     System.Double?p_Time_32_to_32_Repair,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod,
     System.Double?p_Transmission_32_Load_32_at_32_Risk)
 {
     COF = p_COF;
     Generation_32_Curtailment = p_Generation_32_Curtailment;
     Time_32_to_32_Repair      = p_Time_32_to_32_Repair;
     TimePeriod = p_TimePeriod;
     Transmission_32_Load_32_at_32_Risk = p_Transmission_32_Load_32_at_32_Risk;
 }
Beispiel #30
0
 public TimeVariantInputDTO(
     System.Double?p_Continuous_32_Rating,
     System.Double?p_Peak_32_Load,
     CL.FormulaHelper.DTOs.TimePeriodDTO p_TimePeriod,
     System.Double?p_Transformers_32_Capacity,
     CL.FormulaHelper.DTOs.CustomFieldListItemDTO p_Violation_32_Type,
     System.Double?p_Voltage_32_Violation)
 {
     Continuous_32_Rating     = p_Continuous_32_Rating;
     Peak_32_Load             = p_Peak_32_Load;
     TimePeriod               = p_TimePeriod;
     Transformers_32_Capacity = p_Transformers_32_Capacity;
     Violation_32_Type        = p_Violation_32_Type;
     Voltage_32_Violation     = p_Voltage_32_Violation;
 }