QLNet.DigitalCmsCoupon.factory C# (CSharp) Method

factory() public method

public factory ( CmsCoupon underlying, double callStrike, Position callPosition, bool isCallATMIncluded, double callDigitalPayoff, double putStrike, Position putPosition, bool isPutATMIncluded, double putDigitalPayoff, QLNet.DigitalReplication replication ) : CashFlow
underlying CmsCoupon
callStrike double
callPosition Position
isCallATMIncluded bool
callDigitalPayoff double
putStrike double
putPosition Position
isPutATMIncluded bool
putDigitalPayoff double
replication QLNet.DigitalReplication
return CashFlow
        public virtual CashFlow factory(CmsCoupon underlying, double? callStrike, Position.Type callPosition, bool isCallATMIncluded, double? callDigitalPayoff, double? putStrike, Position.Type putPosition, bool isPutATMIncluded, double? putDigitalPayoff, DigitalReplication replication)
        {
            return new DigitalCmsCoupon(underlying, callStrike, callPosition, isCallATMIncluded, callDigitalPayoff, putStrike, putPosition, isPutATMIncluded, putDigitalPayoff, replication);
        }