Files
Work/java/CASHFLOW/PureCashflow.java
2024-08-07 09:16:27 -04:00

141 lines
2.5 KiB
Java

class PureCashflow
{
double mBeginBal;
double mSMM;
double mMtgPay;
double mNetIntPay;
double mGrossIntPay;
double mSchedPrinPay;
double mPrepayment;
double mTotPrin;
double mCashFlow;
double mFactor;
public PureCashflow()
{
mBeginBal=0.00;
mSMM=0.00;
mMtgPay=0.00;
mNetIntPay=0.00;
mGrossIntPay=0.00;
mSchedPrinPay=0.00;
mPrepayment=0.00;
mTotPrin=0.00;
mCashFlow=0.00;
mFactor=0.00;
}
public PureCashflow(PureCashflow pureCashflow)
{
beginBal(pureCashflow.beginBal());
smm(pureCashflow.smm());
mtgPay(pureCashflow.mtgPay());
netIntPay(pureCashflow.netIntPay());
grossIntPay(pureCashflow.grossIntPay());
schedPrinPay(pureCashflow.schedPrinPay());
prepayment(pureCashflow.prepayment());
totPrin(pureCashflow.totPrin());
cashflow(pureCashflow.cashflow());
factor(pureCashflow.factor());
}
public double beginBal()
{
return mBeginBal;
}
public void beginBal(double beginBal)
{
mBeginBal=beginBal;
}
public double smm()
{
return mSMM;
}
public void smm(double smm)
{
mSMM=smm;
}
public double mtgPay()
{
return mMtgPay;
}
public void mtgPay(double mtgPay)
{
mMtgPay=mtgPay;
}
public double netIntPay()
{
return mNetIntPay;
}
public void netIntPay(double netIntPay)
{
mNetIntPay=netIntPay;
}
public double grossIntPay()
{
return mGrossIntPay;
}
public void grossIntPay(double grossIntPay)
{
mGrossIntPay=grossIntPay;
}
public double schedPrinPay()
{
return mSchedPrinPay;
}
public void schedPrinPay(double schedPrinPay)
{
mSchedPrinPay=schedPrinPay;
}
public double prepayment()
{
return mPrepayment;
}
public void prepayment(double prepayment)
{
mPrepayment=prepayment;
}
public double totPrin()
{
return mTotPrin;
}
public void totPrin(double totPrin)
{
mTotPrin=totPrin;
}
public double cashflow()
{
return mCashFlow;
}
public void cashflow(double cashFlow)
{
mCashFlow=cashFlow;
}
public double factor()
{
return mFactor;
}
public void factor(double factor)
{
mFactor=factor;
}
public String toString()
{
String strReturn;
Money money;
strReturn=new String();
money=new Money();
strReturn+=(new Money(beginBal())).toString();
// strReturn+=(new Money(smm())).toString();
strReturn+=(new Money(mtgPay())).toString();
strReturn+=(new Money(netIntPay())).toString();
strReturn+=(new Money(grossIntPay())).toString();
strReturn+=(new Money(schedPrinPay())).toString();
strReturn+=(new Money(prepayment())).toString();
strReturn+=(new Money(totPrin())).toString();
strReturn+=(new Money(cashflow())).toString()+" ";
// strReturn+=String.valueOf(factor());
return strReturn;
}
}