예제 #1
0
 public virtual void CopyCapital1ConstantProperties(
     Capital1Constant calculator)
 {
     this.RandMPercent               = calculator.RandMPercent;
     this.ReplacementCost            = calculator.ReplacementCost;
     this.TotalReplacementCost       = calculator.TotalReplacementCost;
     this.ReplacementYrsFromBaseDate = calculator.ReplacementYrsFromBaseDate;
 }
예제 #2
0
 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);
 }
예제 #3
0
 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;
 }
예제 #4
0
 //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);
 }
예제 #5
0
 //copy constructors
 public Capital1Constant(Capital1Constant calculator)
 {
     CopyCapital1ConstantProperties(calculator);
 }
예제 #6
0
 public virtual void InitGeneralCapital1InputProperties()
 {
     this.Capital1Constant = new Capital1Constant();
     this.EnergyUseHr      = 0;
     this.EnergyEffTypical = 0;
 }