Exemple #1
0
        public virtual void InitMachinery1InputProperties()
        {
            this.Constants     = new Machinery1Constant();
            this.Sizes         = new SizeRanges();
            this.Local         = new Local();
            this.MarketValue   = 0;
            this.ListPriceAdj  = 0;
            this.SalvageValue  = 0;
            this.FuelAmount    = 0;
            this.FuelUnit      = string.Empty;
            this.FuelPrice     = 0;
            this.FuelCost      = 0;
            this.LubeOilAmount = 0;
            this.LubeOilUnit   = string.Empty;
            this.LubeOilPrice  = 0;
            this.LubeOilCost   = 0;
            this.RepairCost    = 0;
            this.LaborAmount   = 0;
            this.LaborUnit     = string.Empty;
            this.LaborPrice    = 0;
            this.LaborCost     = 0;

            this.ServiceUnits              = string.Empty;
            this.ServiceCapacityUnits      = string.Empty;
            this.CapitalRecoveryCost       = 0;
            this.TaxesHousingInsuranceCost = 0;
            this.OptionForCapacity         = 0;
            this.OptionForInflation        = 0;
            this.OptionForTime             = 0;
            this.OptionForFuel             = 0;
            this.LaborAmountAdj            = 0;
        }
Exemple #2
0
 public virtual void CopySizeRangesProperties(
     SizeRanges calculator)
 {
     this.SizeRange1 = calculator.SizeRange1;
     this.SizePrice1 = calculator.SizePrice1;
     this.SizeVarA1  = calculator.SizeVarA1;
     this.SizeVarB1  = calculator.SizeVarB1;
     this.SizeVarC1  = calculator.SizeVarC1;
     this.SizeVarD1  = calculator.SizeVarD1;
     this.SizeRange2 = calculator.SizeRange2;
     this.SizePrice2 = calculator.SizePrice2;
     this.SizeVarA2  = calculator.SizeVarA2;
     this.SizeVarB2  = calculator.SizeVarB2;
     this.SizeVarC2  = calculator.SizeVarC2;
     this.SizeVarD2  = calculator.SizeVarD2;
     this.SizeRange3 = calculator.SizeRange3;
     this.SizePrice3 = calculator.SizePrice3;
     this.SizeVarA3  = calculator.SizeVarA3;
     this.SizeVarB3  = calculator.SizeVarB3;
     this.SizeVarC3  = calculator.SizeVarC3;
     this.SizeVarD3  = calculator.SizeVarD3;
     this.SizeRange4 = calculator.SizeRange4;
     this.SizePrice4 = calculator.SizePrice4;
     this.SizeVarA4  = calculator.SizeVarA4;
     this.SizeVarB4  = calculator.SizeVarB4;
     this.SizeVarC4  = calculator.SizeVarC4;
     this.SizeVarD4  = calculator.SizeVarD4;
     this.SizeRange5 = calculator.SizeRange5;
     this.SizePrice5 = calculator.SizePrice5;
     this.SizeVarA5  = calculator.SizeVarA5;
     this.SizeVarB5  = calculator.SizeVarB5;
     this.SizeVarC5  = calculator.SizeVarC5;
     this.SizeVarD5  = calculator.SizeVarD5;
 }
Exemple #3
0
 //copy constructors
 public void CopyMachinery1InputProperties(CalculatorParameters calcParameters,
                                           Machinery1Input calculator)
 {
     //set the base input properties
     this.SetInputProperties(calcParameters, calculator);
     this.Local = new Local(calcParameters, calculator.Local);
     //set the constants properties
     this.Constants = new Machinery1Constant();
     this.Constants.SetMachinery1ConstantProperties(calculator.Constants);
     this.Sizes = new SizeRanges();
     this.Sizes.CopySizeRangesProperties(calculator.Sizes);
     CopyMachinery1InputProperties(calculator);
 }
Exemple #4
0
 public virtual void SetMachinery1InputProperties(CalculatorParameters calcParameters,
                                                  XElement calculator, XElement currentElement)
 {
     //set the base input properties (note, although calculator also
     //uses the same input attributes within the calculator, they are used to
     //facilitate display only; the currentElement input attributes are
     //the numbers used in calculations (unless the calculator uses aliases to change them))
     this.SetInputProperties(calcParameters, calculator,
                             currentElement);
     //v145a separated base els from calcs
     this.SetCalculatorProperties(calculator);
     //set the constants properties
     this.Constants = new Machinery1Constant();
     this.Constants.SetMachinery1ConstantProperties(calcParameters,
                                                    calculator, currentElement);
     this.Sizes = new SizeRanges();
     this.Sizes.SetSizeRangesProperties(calculator);
     SetMachinery1InputProperties(calculator);
 }
Exemple #5
0
 //copy constructors
 public SizeRanges(SizeRanges calculator)
 {
     CopySizeRangesProperties(calculator);
 }