org.jquantlib.instruments
Class CapFloor
- java.lang.Object
-
- org.jquantlib.util.LazyObject
-
- org.jquantlib.instruments.Instrument
-
- org.jquantlib.instruments.CapFloor
-
- All Implemented Interfaces:
- Observable, Observer
public class CapFloor extends Instrument
Base class for cap-like instruments
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classCapFloor.Type-
Nested classes/interfaces inherited from class org.jquantlib.instruments.Instrument
Instrument.Arguments, Instrument.Results, Instrument.ResultsImpl
-
-
Constructor Summary
Constructors Constructor and Description CapFloor(CapFloor.Type type, Leg floatingLeg, java.util.List<java.lang.Double> strikes, Handle<YieldTermStructure> termStructure, PricingEngine engine)CapFloor(CapFloor.Type type, Leg floatingLeg, java.util.List<java.lang.Double> capRates, java.util.List<java.lang.Double> floorRates, Handle<YieldTermStructure> termStructure, PricingEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleatmRate()booleanisExpired()DatelastFixingDate()DatematurityDate()DatestartDate()-
Methods inherited from class org.jquantlib.instruments.Instrument
errorEstimate, NPV, setPricingEngine
-
Methods inherited from class org.jquantlib.util.LazyObject
addObserver, countObservers, deleteObserver, deleteObservers, freeze, getObservers, notifyObservers, notifyObservers, recalculate, unfreeze, update
-
-
-
-
Constructor Detail
-
CapFloor
public CapFloor(CapFloor.Type type, Leg floatingLeg, java.util.List<java.lang.Double> capRates, java.util.List<java.lang.Double> floorRates, Handle<YieldTermStructure> termStructure, PricingEngine engine)
-
CapFloor
public CapFloor(CapFloor.Type type, Leg floatingLeg, java.util.List<java.lang.Double> strikes, Handle<YieldTermStructure> termStructure, PricingEngine engine)
-
-
Method Detail
-
atmRate
public double atmRate()
-
isExpired
public boolean isExpired()
- Specified by:
isExpiredin classInstrument- Returns:
trueif the instrument is still tradeable.
-
startDate
public Date startDate()
-
maturityDate
public Date maturityDate()
-
lastFixingDate
public Date lastFixingDate()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG