Package org.jquantlib.time

Examples of org.jquantlib.time.IMM


            final DayCounter dayCounter,
            final Handle<Quote> convAdj) {
        super(price);
        QL.validateExperimentalMode();

        QL.require(new IMM().isIMMdate(immDate, false) , "not a valid IMM date"); // QA:[RG]::verified // TODO: message
        earliestDate = immDate;
        latestDate = calendar.advance(
                immDate,
                new Period(nMonths, TimeUnit.Months),
                convention,
View Full Code Here


            final DayCounter dayCounter,
            final double conv) {
        super(price);
        QL.validateExperimentalMode();

        QL.require(new IMM().isIMMdate(immDate, false) , "not a valid IMM date"); // QA:[RG]::verified // TODO: message
        convAdj = new Handle<Quote>(new SimpleQuote(conv));
        earliestDate = immDate;
        latestDate = calendar.advance(
                immDate,
                new Period(nMonths, TimeUnit.Months),
View Full Code Here

            final IborIndex i,
            final double conv) {
        super(price);
        QL.validateExperimentalMode();

        QL.require(new IMM().isIMMdate(immDate, false) , "not a valid IMM date"); // QA:[RG]::verified // TODO: message
        convAdj = new Handle<Quote>(new SimpleQuote(conv));
        earliestDate = immDate;
        final Calendar cal = i.fixingCalendar();
        latestDate = cal.advance(immDate, i.tenor(), i.businessDayConvention());
        yearFraction = i.dayCounter().yearFraction(earliestDate, latestDate);
View Full Code Here

                        final DayCounter dayCounter,
                        final Handle<Quote> convAdj) {
    super(price);
    this.convAdj = convAdj;

    QL.require(new IMM().isIMMdate(immDate, false), NOT_A_VALID_IMM_DATE);

    earliestDate = immDate;
    latestDate = calendar.advance(immDate, new Period(lengthInMonths,
        TimeUnit.Months), convention, endOfMonth);
    yearFraction = dayCounter.yearFraction(earliestDate, latestDate);
View Full Code Here

                        final DayCounter dayCounter,
                        final/* Rate */double convAdj) {
    super(price);
    this.convAdj = new Handle<Quote>(new SimpleQuote(convAdj));

    QL.require(new IMM().isIMMdate(immDate, false), NOT_A_VALID_IMM_DATE);

    earliestDate = immDate;
    latestDate = calendar.advance(immDate, new Period(lengthInMonths,
        TimeUnit.Months), convention, endOfMonth);
    yearFraction = dayCounter.yearFraction(earliestDate, latestDate);
View Full Code Here

                          final Handle<Quote> convAdj) {

    super(price);
    this.convAdj = convAdj;

    QL.require(new IMM().isIMMdate(immDate, false), NOT_A_VALID_IMM_DATE);

    this.earliestDate = immDate;
    this.latestDate = i.fixingCalendar().advance(immDate, i.tenor(),
        i.businessDayConvention());
    this.yearFraction = i.dayCounter().yearFraction(this.earliestDate,
View Full Code Here

                              final IborIndex i,
                              final /* Rate */ double convAdj) {
        super(price);  
        this.convAdj = new Handle<Quote>(new SimpleQuote(convAdj));
       
        QL.require(new IMM().isIMMdate(immDate, false) , NOT_A_VALID_IMM_DATE);
       
        earliestDate = immDate;
        final Calendar cal = i.fixingCalendar();
        latestDate = cal.advance(immDate, i.tenor(), i.businessDayConvention());
        yearFraction = i.dayCounter().yearFraction(earliestDate, latestDate);
View Full Code Here

TOP

Related Classes of org.jquantlib.time.IMM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.