|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines a contract of a fixed-income security. A contract on a fixed-income security is one where we know in advance the exact dates and amounts of the cash flows resulting from holding the contract.
You should never implement this interface directly. If you wish to define a
contract on a fixed-interest security (i.e. a FixedExchangeMomentsContract) then
you should extend the abstract class FixedExchangeMomentsContractCommon.
Advantages of using this interface
Contracts which implement this interface have an enormous advantage when
considerning pricing algorithm efficiency. Unfortunately only few contracts
have the required properties to be implemented as DeterministicContract
instances. If the contract is not a fixed income security you need to look for
more general abstract classes to extend. These are, ordered from the least general
to most generally applicable: FixedExchangewMarkovContracCommon,
FixedExchangeMomentsContractCommon, GeneralContractCommon
| Method Summary | |
double |
getPayoff(int moment)
Returns the value of the cash exchange (payoff) occcuring at the moment indentified by its index in the vector of payoff moments (the vector returned by the method getMoments()). |
| Methods inherited from interface webcab.lib.finance.pricing.core.contracts.RegularPayoffContract |
getMaxDependencyOrder |
| Methods inherited from interface webcab.lib.finance.pricing.contracts.FixedExchangeMarkovContract |
getPayoff |
| Methods inherited from interface webcab.lib.finance.pricing.contracts.FixedExchangeMomentsContract |
getFirstMoment, getMoments, getNMoments, getPayoff |
| Methods inherited from interface webcab.lib.finance.pricing.contracts.GeneralContract |
getAccumulatedCashflow, getExpiry, needsUpdatedModel |
| Method Detail |
public double getPayoff(int moment)
throws BondsException
getMoments()).
moment - the index of the current moment
BondsException
|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||