- java.lang.Object
-
- org.quantlib.Observable
-
- org.quantlib.LazyObject
-
- org.quantlib.Instrument
-
- org.quantlib.CompositeInstrument
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class CompositeInstrument extends Instrument implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description CompositeInstrument()protectedCompositeInstrument(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Instrument instrument)voidadd(Instrument instrument, double multiplier)voiddelete()protected voidfinalize()protected static longgetCPtr(CompositeInstrument obj)voidsubtract(Instrument instrument)voidsubtract(Instrument instrument, double multiplier)protected voidswigSetCMemOwn(boolean own)-
Methods inherited from class org.quantlib.Instrument
errorEstimate, getCPtr, isExpired, NPV, setPricingEngine
-
Methods inherited from class org.quantlib.LazyObject
alwaysForwardNotifications, forwardFirstNotificationOnly, forwardsAllNotifications, freeze, getCPtr, recalculate, unfreeze
-
Methods inherited from class org.quantlib.Observable
getCPtr
-
-
-
-
Constructor Detail
-
CompositeInstrument
protected CompositeInstrument(long cPtr, boolean cMemoryOwn)
-
CompositeInstrument
public CompositeInstrument()
-
-
Method Detail
-
getCPtr
protected static long getCPtr(CompositeInstrument obj)
-
swigSetCMemOwn
protected void swigSetCMemOwn(boolean own)
- Overrides:
swigSetCMemOwnin classInstrument
-
finalize
protected void finalize()
- Overrides:
finalizein classInstrument
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable- Overrides:
deletein classInstrument
-
add
public void add(Instrument instrument, double multiplier)
-
add
public void add(Instrument instrument)
-
subtract
public void subtract(Instrument instrument, double multiplier)
-
subtract
public void subtract(Instrument instrument)
-
-