WebCab Bonds
v2.01
(J2SE Edition)

webcab.lib.finance.pricing.contracts
Interface DeterministContract

All Superinterfaces:
FixedExchangeMarkovContract, FixedExchangeMomentsContract, GeneralContract, RegularPayoffContract, Serializable
All Known Implementing Classes:
CouponBond, DeterministContractCommon, ZeroCouponBond

public interface DeterministContract
extends RegularPayoffContract

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

getPayoff

public double getPayoff(int moment)
                 throws BondsException
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()).

Parameters:
moment - the index of the current moment
Returns:
double
Throws:
BondsException

WebCab Bonds
v2.01
(J2SE Edition)