/*
* @CalculatorFormBean.java 1.2 May 19, 2006
*
* Copyright (c) 2006 FirstPartner
* All rights reserved.
*
*/
package net.fp.rp.drools.form;
import org.apache.struts.action.ActionForm;
import net.fp.rp.drools.CalculatorBean;
/**
* Struts Action Form, stores it's data internally as
* a standard JavaBean. This standard Java Bean is how we pass
* the data in / out of the JBoss rules engine.
* @version 1.2 May 19, 2006
* Copyright @link www.firstpartners.net/red
*
*/
public class CalculatorFormBean extends ActionForm {
//Javabean that we use to store the values
CalculatorBean cBean = null;
/*
private static final long serialVersionUID = 1L;
private double valuationValueOrPurchasePrice;
private double loanSought;
private double loanToValue;
private double rateTypeValue;
private int rateType;
private int termSought;
private int mortgageType;
private int status1;
private int status2;
private int employmentType1;
private int employmentType2;
private int occupationType1;
private int occupationType2;
private double basicIncomeActual1;
private double basicIncomeActual2;
private double basicIncomeAllowable1;
private double basicIncomeAllowable2;
private double actualOvertime1;
private double actualOvertime2;
private double allowableOvertime1;
private double allowableOvertime2;
private double actualBonus1;
private double actualBonus2;
private double allowableBonus1;
private double allowableBonus2;
private double actualCommission1;
private double actualCommission2;
private double allowableCommission1;
private double allowableCommission2;
private double actualOtherIncome1;
private double actualOtherIncome2;
private double allowableOtherIncome1;
private double allowableOtherIncome2;
private double preTaxAnnualIncome1;
private double preTaxAnnualIncome2;
private double combinedPreTaxAnnualIncome;
private double combinedNetAnnualIncome;
private double combinedNetMonthlyIncome;
private double netDisposableIncome;
private double maxAllowableLendingPolicyReq;
private double maxAllowableLendingPolicyMax;
private double maxAllowablePercentMortgageRepaymentMax;
private double maxAllowableMortgageRepaymentReq;
private double maxAllowableMortgageRepaymentMax;
private double maxLoadAmountMinRen;
private double maxLoanAmountMultipleIncomeReq;
private double maxLoanAmountMultipleIncomeMax;
private double loanAmountWithinCriteria;
*/
/**
* Default Constructor
*/
public CalculatorFormBean() {
super();
cBean = new CalculatorBean();
}
// /**
// *
// * getLoanSought
// *
// * @return
// */
// public double getLoanSought() {
// return cBean.getLoanSought();
// }
//
// /**
// *
// * setLoanSought
// *
// * @param loanSought
// */
// public void setLoanSought(double loanSought) {
// cBean.setLoanSought(loanSought);
// }
//
// /**
// *
// * getValuationValueOrPurchasePrice
// *
// * @return
// */
// public double getValuationValueOrPurchasePrice() {
// return cBean.getValuationValueOrPurchasePrice();
// }
//
// /**
// *
// * setValuationValueOrPurchasePrice
// *
// * @param valuationValueOrPurchasePrice
// */
// public void setValuationValueOrPurchasePrice(
// double valuationValueOrPurchasePrice) {
// cBean.setValuationValueOrPurchasePrice(valuationValueOrPurchasePrice);
// }
//
/**
*
* getRateType
*
* @return
*/
public int getRateType() {
return cBean.getRateType();
}
/**
*
* setRateType
*
* @param rateType
*/
public void setRateType(int rateType) {
cBean.setRateType(rateType);
}
/**
*
* getRateTypeValue
*
* @return
*/
public double getRateTypeValue() {
return cBean.getRateTypeValue();
}
/**
*
* setRateTypeValue
*
* @param rateTypeValue
*/
public void setRateTypeValue(double rateTypeValue) {
cBean.setRateTypeValue(rateTypeValue);
}
// /**
// *
// * getTermSought
// *
// * @return
// */
// public int getTermSought() {
// return cBean.getTermSought();
// }
//
// /**
// *
// * setTermSought
// *
// * @param termSought
// */
// public void setTermSought(int termSought) {
// cBean.setTermSought(termSought);
// }
//
// /**
// *
// * getMortgageType
// *
// * @return
// */
// public int getMortgageType() {
// return cBean.getMortgageType();
// }
//
// /**
// *
// * setMortgageType
// *
// * @param mortgageType
// */
// public void setMortgageType(int mortgageType) {
// cBean.setMortgageType(mortgageType);
// }
//
// /**
// *
// * getStatus1
// *
// * @return
// */
// public int getStatus1() {
// return cBean.getStatus1();
// }
//
// /**
// *
// * setStatus1
// *
// * @param status1
// */
// public void setStatus1(int status1) {
// cBean.setStatus1(status1);
// }
//
// /**
// *
// * getStatus2
// *
// * @return
// */
// public int getStatus2() {
// return cBean.getStatus2();
// }
//
// /**
// *
// * setStatus2
// *
// * @param status2
// */
// public void setStatus2(int status2) {
// cBean.setStatus2(status2);
// }
//
// /**
// *
// * getEmploymentType1
// *
// * @return
// */
// public int getEmploymentType1() {
// return cBean.getEmploymentType1();
// }
//
// /**
// *
// * setEmploymentType1
// *
// * @param employmentType1
// */
// public void setEmploymentType1(int employmentType1) {
// cBean.setemploymentType1(employmentType1);
// }
//
// /**
// *
// * getEmploymentType2
// *
// * @return
// */
// public int getEmploymentType2() {
// return cbean.getEmploymentType2();
// }
//
// /**
// *
// * setEmploymentType2
// *
// * @param employmentType2
// */
// public void setEmploymentType2(int employmentType2) {
// cBean.setEmploymentType2(employmentType2);
// }
//
// /**
// *
// * getOccupationType1
// *
// * @return
// */
// public int getOccupationType1() {
// return cbean.getOccupationType1();
// }
//
// /**
// *
// * setOccupationType1
// *
// * @param occupationType1
// */
// public void setOccupationType1(int occupationType1) {
// cBean.setOccupationType1(occupationType1);
// }
//
// /**
// *
// * getOccupationType2
// *
// * @return
// */
// public int getOccupationType2() {
// return cbean.getOccupationType2();
// }
//
// /**
// *
// * setOccupationType2
// *
// * @param occupationType2
// */
// public void setOccupationType2(int occupationType2) {
// cBean.setOccupationType2(occupationType2);
// }
//
// /**
// *
// * getLoanToValue
// *
// * @return
// */
// public double getLoanToValue() {
// return cBean.getLoanToValue();
// }
//
//
// /**
// *
// * setLoanToValue
// *
// * @param loanToValue
// */
// public void setLoanToValue(double loanToValue) {
// cBean.setloanToValue(loanToValue);
// }
//
// /**
// *
// * getBasicIncomeActual1
// *
// * @return
// */
// public double getBasicIncomeActual1() {
// return cBean.basicIncomeActual1;
// }
//
// /**
// *
// * setBasicIncomeActual1
// *
// * @param basicIncomeActual1
// */
// public void setBasicIncomeActual1(double basicIncomeActual1) {
// cBean.setbasicIncomeActual1 = basicIncomeActual1;
// }
//
// /**
// *
// * getBasicIncomeActual2
// *
// * @return
// */
// public double getBasicIncomeActual2() {
// return cBean.basicIncomeActual2;
// }
//
// /**
// *
// * setBasicIncomeActual2
// *
// * @param basicIncomeActual2
// */
// public void setBasicIncomeActual2(double basicIncomeActual2) {
// cBean.setbasicIncomeActual2 = basicIncomeActual2;
// }
//
// /**
// *
// * getBasicIncomeAllowable1
// *
// * @return
// */
// public double getBasicIncomeAllowable1() {
// return cBean.basicIncomeAllowable1;
// }
//
// /**
// *
// * setBasicIncomeAllowable1
// *
// * @param basicIncomeAllowable1
// */
// public void setBasicIncomeAllowable1(double basicIncomeAllowable1) {
// cBean.setbasicIncomeAllowable1 = basicIncomeAllowable1;
// }
//
// /**
// *
// * getBasicIncomeAllowable2
// *
// * @return
// */
// public double getBasicIncomeAllowable2() {
// return cBean.basicIncomeAllowable2;
// }
//
// /**
// *
// * setBasicIncomeAllowable2
// *
// * @param basicIncomeAllowable2
// */
// public void setBasicIncomeAllowable2(double basicIncomeAllowable2) {
// cBean.setbasicIncomeAllowable2 = basicIncomeAllowable2;
// }
//
// /**
// *
// * getActualBonus1
// *
// * @return
// */
// public double getActualBonus1() {
// return cBean.actualBonus1;
// }
//
// /**
// *
// * setActualBonus1
// *
// * @param actualBonus1
// */
// public void setActualBonus1(double actualBonus1) {
// cBean.setactualBonus1 = actualBonus1;
// }
//
// /**
// *
// * getActualBonus2
// *
// * @return
// */
// public double getActualBonus2() {
// return cBean.actualBonus2;
// }
//
// /**
// *
// * setActualBonus2
// *
// * @param actualBonus2
// */
// public void setActualBonus2(double actualBonus2) {
// cBean.setactualBonus2 = actualBonus2;
// }
//
// /**
// *
// * getActualCommission1
// *
// * @return
// */
// public double getActualCommission1() {
// return cBean.actualCommission1;
// }
//
// /**
// *
// * setActualCommission1
// *
// * @param actualCommission1
// */
// public void setActualCommission1(double actualCommission1) {
// cBean.setactualCommission1 = actualCommission1;
// }
//
// /**
// *
// * getActualCommission2
// *
// * @return
// */
// public double getActualCommission2() {
// return cBean.actualCommission2;
// }
//
// /**
// *
// * setActualCommission2
// *
// * @param actualCommission2
// */
// public void setActualCommission2(double actualCommission2) {
// cBean.setactualCommission2 = actualCommission2;
// }
//
// /**
// *
// * getActualOtherIncome1
// *
// * @return
// */
// public double getActualOtherIncome1() {
// return cBean.actualOtherIncome1;
// }
//
// /**
// *
// * setActualOtherIncome1
// *
// * @param actualOtherIncome1
// */
// public void setActualOtherIncome1(double actualOtherIncome1) {
// cBean.setactualOtherIncome1 = actualOtherIncome1;
// }
//
// /**
// *
// * getActualOtherIncome2
// *
// * @return
// */
// public double getActualOtherIncome2() {
// return cBean.actualOtherIncome2;
// }
//
// /**
// *
// * setActualOtherIncome2
// *
// * @param actualOtherIncome2
// */
// public void setActualOtherIncome2(double actualOtherIncome2) {
// cBean.setactualOtherIncome2 = actualOtherIncome2;
// }
//
// /**
// *
// * getActualOvertime1
// *
// * @return
// */
// public double getActualOvertime1() {
// return cBean.actualOvertime1;
// }
//
// /**
// *
// * setActualOvertime1
// *
// * @param actualOvertime1
// */
// public void setActualOvertime1(double actualOvertime1) {
// cBean.setactualOvertime1 = actualOvertime1;
// }
//
// /**
// *
// * getActualOvertime2
// *
// * @return
// */
// public double getActualOvertime2() {
// return cBean.actualOvertime2;
// }
//
// /**
// *
// * setActualOvertime2
// *
// * @param actualOvertime2
// */
// public void setActualOvertime2(double actualOvertime2) {
// cBean.setactualOvertime2 = actualOvertime2;
// }
//
// /**
// *
// * getAllowableBonus1
// *
// * @return
// */
// public double getAllowableBonus1() {
// return cBean.allowableBonus1;
// }
//
// /**
// *
// * setAllowableBonus1
// *
// * @param allowableBonus1
// */
// public void setAllowableBonus1(double allowableBonus1) {
// cBean.setallowableBonus1 = allowableBonus1;
// }
//
// /**
// *
// * getAllowableBonus2
// *
// * @return
// */
// public double getAllowableBonus2() {
// return cBean.allowableBonus2;
// }
//
// /**
// *
// * setAllowableBonus2
// *
// * @param allowableBonus2
// */
// public void setAllowableBonus2(double allowableBonus2) {
// cBean.setallowableBonus2 = allowableBonus2;
// }
//
// /**
// *
// * getAllowableCommission1
// *
// * @return
// */
// public double getAllowableCommission1() {
// return cBean.allowableCommission1;
// }
//
// /**
// *
// * setAllowableCommission1
// *
// * @param allowableCommission1
// */
// public void setAllowableCommission1(double allowableCommission1) {
// cBean.setallowableCommission1 = allowableCommission1;
// }
//
// /**
// *
// * getAllowableCommission2
// *
// * @return
// */
// public double getAllowableCommission2() {
// return cBean.allowableCommission2;
// }
//
// /**
// *
// * setAllowableCommission2
// *
// * @param allowableCommission2
// */
// public void setAllowableCommission2(double allowableCommission2) {
// cBean.setallowableCommission2 = allowableCommission2;
// }
//
// /**
// *
// * getAllowableOtherIncome1
// *
// * @return
// */
// public double getAllowableOtherIncome1() {
// return cBean.allowableOtherIncome1;
// }
//
// /**
// *
// * setAllowableOtherIncome1
// *
// * @param allowableOtherIncome1
// */
// public void setAllowableOtherIncome1(double allowableOtherIncome1) {
// cBean.setallowableOtherIncome1 = allowableOtherIncome1;
// }
//
// /**
// *
// * getAllowableOtherIncome2
// *
// * @return
// */
// public double getAllowableOtherIncome2() {
// return cBean.allowableOtherIncome2;
// }
//
// /**
// *
// * setAllowableOtherIncome2
// *
// * @param allowableOtherIncome2
// */
// public void setAllowableOtherIncome2(double allowableOtherIncome2) {
// cBean.setallowableOtherIncome2 = allowableOtherIncome2;
// }
//
// /**
// *
// * getAllowableOvertime1
// *
// * @return
// */
// public double getAllowableOvertime1() {
// return cBean.allowableOvertime1;
// }
//
// /**
// *
// * setAllowableOvertime1
// *
// * @param allowableOvertime1
// */
// public void setAllowableOvertime1(double allowableOvertime1) {
// cBean.setallowableOvertime1 = allowableOvertime1;
// }
//
// /**
// *
// * getAllowableOvertime2
// *
// * @return
// */
// public double getAllowableOvertime2() {
// return cBean.allowableOvertime2;
// }
//
// /**
// *
// * setAllowableOvertime2
// *
// * @param allowableOvertime2
// */
// public void setAllowableOvertime2(double allowableOvertime2) {
// cBean.setallowableOvertime2 = allowableOvertime2;
// }
//
// /**
// *
// * getPreTaxAnnualIncome1
// *
// * @return
// */
// public double getPreTaxAnnualIncome1() {
// return cBean.preTaxAnnualIncome1;
// }
//
// /**
// *
// * setPreTaxAnnualIncome1
// *
// * @param preTaxAnnualIncome1
// */
// public void setPreTaxAnnualIncome1(double preTaxAnnualIncome1) {
// cBean.setpreTaxAnnualIncome1 = preTaxAnnualIncome1;
// }
//
// /**
// *
// * getPreTaxAnnualIncome2
// *
// * @return
// */
// public double getPreTaxAnnualIncome2() {
// return cBean.preTaxAnnualIncome2;
// }
//
// /**
// *
// * setPreTaxAnnualIncome2
// *
// * @param preTaxAnnualIncome2
// */
// public void setPreTaxAnnualIncome2(double preTaxAnnualIncome2) {
// cBean.setpreTaxAnnualIncome2 = preTaxAnnualIncome2;
// }
//
// /**
// *
// * getCombinedNetAnnualIncome
// *
// * @return
// */
// public double getCombinedNetAnnualIncome() {
// return cBean.combinedNetAnnualIncome;
// }
//
// /**
// *
// * setCombinedNetAnnualIncome
// *
// * @param combinedNetAnnualIncome
// */
// public void setCombinedNetAnnualIncome(double combinedNetAnnualIncome) {
// cBean.setcombinedNetAnnualIncome = combinedNetAnnualIncome;
// }
//
// /**
// *
// * getCombinedNetMonthlyIncome
// *
// * @return
// */
// public double getCombinedNetMonthlyIncome() {
// return cBean.combinedNetMonthlyIncome;
// }
//
// /**
// *
// * setCombinedNetMonthlyIncome
// *
// * @param combinedNetMonthlyIncome
// */
// public void setCombinedNetMonthlyIncome(double combinedNetMonthlyIncome) {
// cBean.setcombinedNetMonthlyIncome = combinedNetMonthlyIncome;
// }
//
// /**
// *
// * getCombinedPreTaxAnnualIncome
// *
// * @return
// */
// public double getCombinedPreTaxAnnualIncome() {
// return cBean.combinedPreTaxAnnualIncome;
// }
//
// /**
// *
// * setCombinedPreTaxAnnualIncome
// *
// * @param combinedPreTaxAnnualIncome
// */
// public void setCombinedPreTaxAnnualIncome(double combinedPreTaxAnnualIncome) {
// cBean.setcombinedPreTaxAnnualIncome = combinedPreTaxAnnualIncome;
// }
//
// /**
// *
// * getMaxAllowableLendingPolicyMax
// *
// * @return
// */
// public double getMaxAllowableLendingPolicyMax() {
// return cBean.maxAllowableLendingPolicyMax;
// }
//
// /**
// *
// * setMaxAllowableLendingPolicyMax
// *
// * @param maxAllowableLendingPolicyMax
// */
// public void setMaxAllowableLendingPolicyMax(double maxAllowableLendingPolicyMax) {
// cBean.setmaxAllowableLendingPolicyMax = maxAllowableLendingPolicyMax;
// }
//
// /**
// *
// * getMaxAllowableLendingPolicyReq
// *
// * @return
// */
// public double getMaxAllowableLendingPolicyReq() {
// return cBean.maxAllowableLendingPolicyReq;
// }
//
// /**
// *
// * setMaxAllowableLendingPolicyReq
// *
// * @param maxAllowableLendingPolicyReq
// */
// public void setMaxAllowableLendingPolicyReq(double maxAllowableLendingPolicyReq) {
// cBean.setmaxAllowableLendingPolicyReq = maxAllowableLendingPolicyReq;
// }
//
// /**
// *
// * getNetDisposableIncome
// *
// * @return
// */
// public double getNetDisposableIncome() {
// return cBean.netDisposableIncome;
// }
//
// /**
// *
// * setNetDisposableIncome
// *
// * @param netDisposableIncome
// */
// public void setNetDisposableIncome(double netDisposableIncome) {
// cBean.setnetDisposableIncome = netDisposableIncome;
// }
//
// /**
// *
// * getMaxAllowableMortgageRepaymentMax
// *
// * @return
// */
// public double getMaxAllowableMortgageRepaymentMax() {
// return cBean.maxAllowableMortgageRepaymentMax;
// }
//
// /**
// *
// * setMaxAllowableMortgageRepaymentMax
// *
// * @param maxAllowableMortgageRepaymentMax
// */
// public void setMaxAllowableMortgageRepaymentMax(
// double maxAllowableMortgageRepaymentMax) {
// cBean.setmaxAllowableMortgageRepaymentMax = maxAllowableMortgageRepaymentMax;
// }
//
// /**
// *
// * getMaxAllowableMortgageRepaymentReq
// *
// * @return
// */
// public double getMaxAllowableMortgageRepaymentReq() {
// return cBean.maxAllowableMortgageRepaymentReq;
// }
//
// /**
// *
// * setMaxAllowableMortgageRepaymentReq
// *
// * @param maxAllowableMortgageRepaymentReq
// */
// public void setMaxAllowableMortgageRepaymentReq(
// double maxAllowableMortgageRepaymentReq) {
// cBean.setmaxAllowableMortgageRepaymentReq = maxAllowableMortgageRepaymentReq;
// }
//
// /**
// *
// * getMaxAllowablePercentMortgageRepaymentMax
// *
// * @return
// */
// public double getMaxAllowablePercentMortgageRepaymentMax() {
// return cBean.maxAllowablePercentMortgageRepaymentMax;
// }
//
// /**
// *
// * setMaxAllowablePercentMortgageRepaymentMax
// *
// * @param maxAllowablePercentMortgageRepaymentMax
// */
// public void setMaxAllowablePercentMortgageRepaymentMax(
// double maxAllowablePercentMortgageRepaymentMax) {
// cBean.setmaxAllowablePercentMortgageRepaymentMax = maxAllowablePercentMortgageRepaymentMax;
// }
//
// /**
// *
// * getMaxLoadAmountMinRen
// *
// * @return
// */
// public double getMaxLoadAmountMinRen() {
// return cBean.maxLoadAmountMinRen;
// }
//
// /**
// *
// * setMaxLoadAmountMinRen
// *
// * @param maxLoadAmountMinRen
// */
// public void setMaxLoadAmountMinRen(double maxLoadAmountMinRen) {
// cBean.setmaxLoadAmountMinRen = maxLoadAmountMinRen;
// }
//
// /**
// *
// * getLoanAmountWithinCriteria
// *
// * @return
// */
// public double getLoanAmountWithinCriteria() {
// return cBean.loanAmountWithinCriteria;
// }
//
// /**
// *
// * setLoanAmountWithinCriteria
// *
// * @param loanAmountWithinCriteria
// */
// public void setLoanAmountWithinCriteria(double loanAmountWithinCriteria) {
// cBean.setloanAmountWithinCriteria = loanAmountWithinCriteria;
// }
//
// /**
// *
// * getMaxLoanAmountMultipleIncomeMax
// *
// * @return
// */
// public double getMaxLoanAmountMultipleIncomeMax() {
// return cBean.maxLoanAmountMultipleIncomeMax;
// }
//
// /**
// *
// * setMaxLoanAmountMultipleIncomeMax
// *
// * @param maxLoanAmountMultipleIncomeMax
// */
// public void setMaxLoanAmountMultipleIncomeMax(
// double maxLoanAmountMultipleIncomeMax) {
// cBean.setmaxLoanAmountMultipleIncomeMax = maxLoanAmountMultipleIncomeMax;
// }
//
// /**
// *
// * getMaxLoanAmountMultipleIncomeReq
// *
// * @return
// */
// public double getMaxLoanAmountMultipleIncomeReq() {
// return cBean.maxLoanAmountMultipleIncomeReq;
// }
//
// /**
// *
// * setMaxLoanAmountMultipleIncomeReq
// *
// * @param maxLoanAmountMultipleIncomeReq
// */
// public void setMaxLoanAmountMultipleIncomeReq(
// double maxLoanAmountMultipleIncomeReq) {
// cBean.setMaxLoanAmountMultipleIncomeReq(maxLoanAmountMultipleIncomeReq);
// }
}