Class AverageBMACoupon
- java.lang.Object
-
- org.jquantlib.cashflow.Event
-
- org.jquantlib.cashflow.CashFlow
-
- org.jquantlib.cashflow.Coupon
-
- org.jquantlib.cashflow.FloatingRateCoupon
-
- org.jquantlib.cashflow.AverageBMACoupon
-
- All Implemented Interfaces:
- java.lang.Comparable<CashFlow>, Observable, Observer, PolymorphicVisitable
public class AverageBMACoupon extends FloatingRateCoupon
Average BMA coupon Coupon paying a BMA index, where the coupon rate is a weighted average of relevant fixings. The weighted average is computed based on the actual calendar days for which a given fixing is valid and contributing to the given interest period. Before weights are computed, the fixing schedule is adjusted for the index's fixing day gap. See rate() method for details.
-
-
Constructor Summary
Constructors Constructor and Description AverageBMACoupon(Date paymentDate, double nominal, Date startDate, Date endDate, BMAIndex index, double gearing, double spread, Date refPeriodStart, Date refPeriodEnd, DayCounter dayCounter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaccept(PolymorphicVisitor pv)This method is intended to extend the semantics of methodVisitable.accept(Visitor)doubleconvexityAdjustment()DatefixingDate()java.util.List<Date>fixingDates()doubleindexFixing()java.util.List<java.lang.Double>indexFixings()-
Methods inherited from class org.jquantlib.cashflow.FloatingRateCoupon
accruedAmount, adjustedFixing, amount, convexityAdjustmentImpl, dayCounter, fixingDays, gearing, index, isInArrears, price, pricer, rate, setPricer, spread, update
-
Methods inherited from class org.jquantlib.cashflow.Coupon
accrualDays, accrualEndDate, accrualPeriod, accrualStartDate, date, nominal, referencePeriodEnd, referencePeriodStart
-
Methods inherited from class org.jquantlib.cashflow.Event
addObserver, countObservers, deleteObserver, deleteObservers, getObservers, hasOccurred, hasOccurred, notifyObservers, notifyObservers
-
-
-
-
Method Detail
-
fixingDate
public Date fixingDate()
- Overrides:
fixingDatein classFloatingRateCoupon
-
fixingDates
public java.util.List<Date> fixingDates()
-
indexFixing
public double indexFixing()
- Overrides:
indexFixingin classFloatingRateCoupon
-
indexFixings
public java.util.List<java.lang.Double> indexFixings()
-
convexityAdjustment
public double convexityAdjustment()
- Overrides:
convexityAdjustmentin classFloatingRateCoupon
-
accept
public void accept(PolymorphicVisitor pv)
Description copied from interface:PolymorphicVisitableThis method is intended to extend the semantics of methodVisitable.accept(Visitor)In a conventional Visitor design pattern, the
acceptmethod is called when access to visit a data structure is requested. AVisitorobject is passed as argument in case permission is granted to thatVisitorto access the data structure. Obviously,Visitors andVisitables work in pairs and the class which provides the data structure to be visited also implementsVisitablein order to properly grant access when the expectedVisitoris received.In the case of a
PolymorphicVisitable, aPolymorphicVisitoris passed instead of aVisitor. APolymorphicVisitoris in fact, a composition ofVisitors and not only a singleVisitor. APolymorphicVisitoris responsible for returning the correctVisitorresponsible for processing a certain data structure.The initial design of pairs made of <
Visitor,Visitable> is extended to a concept of a matrix made of multipleVisitors against multipleVisitables. Every class which implementsPolymorphicVisitablepasses different data structures when queryingPolymorphicVisitors.- Specified by:
acceptin interfacePolymorphicVisitable- Overrides:
acceptin classFloatingRateCoupon- See Also:
PolymorphicVisitor#getVisitor(Class)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG