public virtual void CopyCapital1ConstantProperties( Capital1Constant calculator) { this.RandMPercent = calculator.RandMPercent; this.ReplacementCost = calculator.ReplacementCost; this.TotalReplacementCost = calculator.TotalReplacementCost; this.ReplacementYrsFromBaseDate = calculator.ReplacementYrsFromBaseDate; }
public virtual void SetGeneralCapital1InputProperties(CalculatorParameters calcParameters, XElement calculator, XElement currentElement) { //set the base input properties SetMachinery1InputProperties(calcParameters, calculator, currentElement); //set the constants properties this.Capital1Constant = new Capital1Constant(); this.Capital1Constant.SetCapital1ConstantProperties(calculator); SetGeneralCapital1InputProperties(calculator); }
private void CopyGeneralCapital1InputProperties( GeneralCapital1Input calculator) { this.CopyCalculatorProperties(calculator); this.Constants = calculator.Constants; this.Sizes = calculator.Sizes; this.Local = calculator.Local; this.Capital1Constant = calculator.Capital1Constant; this.EnergyUseHr = calculator.EnergyUseHr; this.EnergyEffTypical = calculator.EnergyEffTypical; }
//copy constructors public void CopyGeneralCapital1InputProperties(CalculatorParameters calcParameters, GeneralCapital1Input 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); this.Capital1Constant = new Capital1Constant(); this.Capital1Constant.CopyCapital1ConstantProperties(calculator.Capital1Constant); CopyGeneralCapital1InputProperties(calculator); }
//copy constructors public Capital1Constant(Capital1Constant calculator) { CopyCapital1ConstantProperties(calculator); }
public virtual void InitGeneralCapital1InputProperties() { this.Capital1Constant = new Capital1Constant(); this.EnergyUseHr = 0; this.EnergyEffTypical = 0; }