com.cedarspring.tvm
Class PresentValue

java.lang.Object
  |
  +--com.cedarspring.tvm.PresentValue
All Implemented Interfaces:
java.io.Serializable

final class PresentValue
extends java.lang.Object
implements java.io.Serializable

Present Value
Present value is the value of a promised future amount of money (future value) that has been discounted to today's equivalent value. The future amount can be a single sum that will be received during the last period, as a series of equally-spaced payments, or both. Since money has time value, the present value of a promised future amount is worth less the longer you have to wait to receive it.

This class will:

Version:
1.2.2 15-Apr-2003
Author:
Cedar Spring Software, Inc.

Field Summary
private  IFTables ift
           
(package private) static long serialVersionUID
           
private  java.math.BigDecimal value
           
 
Constructor Summary
(package private) PresentValue()
          Construct a default PresentValue Object.
 
Method Summary
(package private)  void computeValue(java.math.BigDecimal ip, java.math.BigDecimal n, java.math.BigDecimal pmt, java.math.BigDecimal fv, boolean end, Options o)
          Compute the present value and set the presentValue property.
(package private)  java.math.BigDecimal getValue()
          Recall present value
(package private)  void setValue(java.math.BigDecimal presentValue, Options o)
          Store a new present value and notify listeners.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private java.math.BigDecimal value

ift

private IFTables ift

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

PresentValue

PresentValue()
Construct a default PresentValue Object.

Method Detail

setValue

void setValue(java.math.BigDecimal presentValue,
              Options o)
        throws TVMException
Store a new present value and notify listeners.

Parameters:
presentValue - Present Value. Money paid out is negative.
TVMException

getValue

java.math.BigDecimal getValue()
Recall present value


computeValue

void computeValue(java.math.BigDecimal ip,
                  java.math.BigDecimal n,
                  java.math.BigDecimal pmt,
                  java.math.BigDecimal fv,
                  boolean end,
                  Options o)
            throws TVMException
Compute the present value and set the presentValue property.

Parameters:
ip - interest Per Period
n - numberOfPeriods
pmt - payment
fv - futureValue
o - Options Object
TVMException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object