java.lang.Object | +--com.cedarspring.tvm.Payment
Payment
Payments are a series of equal, evenly-spaced cash flows.
They must represent all outflows (negative amount) or all
inflows (positive amount) and occur at the beginning or
end of each period.
This class will:
| Field Summary | |
private IFTables |
ift
|
private boolean |
payAtEnd
|
(package private) static long |
serialVersionUID
|
private java.math.BigDecimal |
value
|
| Constructor Summary | |
(package private) |
Payment()
Construct a default Present Value Object with this objects as the |
| Method Summary | |
(package private) void |
computeValue(java.math.BigDecimal ip,
java.math.BigDecimal n,
java.math.BigDecimal fv,
java.math.BigDecimal pv,
Options o)
Compute the present value and set the presentValue property. |
(package private) java.math.BigDecimal |
getValue()
Recall the payment value |
(package private) boolean |
isPayAtEnd()
Recall Begin-End mode |
(package private) void |
setPayAtEnd(boolean newPayAtEnd)
Annuity Payments must be made each period at: true: payments occur at the end of each period. |
(package private) void |
setValue(java.math.BigDecimal newValue,
Options o)
Store a new payment value and notify listeners |
java.lang.String |
toString()
Return payment as a string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.math.BigDecimal value
private boolean payAtEnd
private IFTables ift
static final long serialVersionUID
| Constructor Detail |
Payment()
| Method Detail |
void setValue(java.math.BigDecimal newValue,
Options o)
throws TVMException
newValue - Annuity Payment
TVMExceptionjava.math.BigDecimal getValue()
void computeValue(java.math.BigDecimal ip,
java.math.BigDecimal n,
java.math.BigDecimal fv,
java.math.BigDecimal pv,
Options o)
throws TVMException
ip - interest Per Periodn - numberOfPeriodsfv - futureValueo - Options Object
TVMExceptionvoid setPayAtEnd(boolean newPayAtEnd)
boolean isPayAtEnd()
public java.lang.String toString()
toString in class java.lang.Object