Package org.jquantlib.lang.reflect

Examples of org.jquantlib.lang.reflect.TypeTokenTree


            final DayCounter dayCounter,
            final Handle<Quote>[] jumps,
            final Date[] jumpDates) {
        this(referenceDate, instruments, dayCounter, jumps, jumpDates,
                1.0e-12,
                new TypeTokenTree(PiecewiseYieldCurve.class).getElement(1),
                new TypeTokenTree(PiecewiseYieldCurve.class).getElement(2));
    }
View Full Code Here


            final Handle<Quote>[] jumps,
            final Date[] jumpDates,
            final /*@Real*/ double accuracy) {
        this(referenceDate, instruments, dayCounter, jumps, jumpDates,
                accuracy,
                new TypeTokenTree(PiecewiseYieldCurve.class).getElement(1),
                new TypeTokenTree(PiecewiseYieldCurve.class).getElement(2));
    }
View Full Code Here

            final /*@Real*/ double accuracy, //TODO: default value: 1.0e-12
            final Class<?> interpolator) {
        this(referenceDate, instruments, dayCounter, jumps, jumpDates,
                accuracy,
                constructInterpolator(interpolator),
                constructBootstrap(new TypeTokenTree(PiecewiseYieldCurve.class).getElement(2)));
    }
View Full Code Here

        // retrieve generic parameters
        // *** NOTE:: NOT SURE IF THIS CODE IS CORRECT: I (interpolator) and B (bootstrap) are being passed as formal parameters.
        // *** See InterpolatedDiscountCurve: default formal arguments are "guessed" from generic parameters via ...
        // ***         new TypeTokenTree(InterpolatedDiscountCurve.class).getElement(0)
        // *** in some constructors, which assume defaults.
        final TypeTokenTree ttt = new TypeTokenTree(this.getClass());
        final Class<?> classT = ttt.getElement(0);
        final Class<?> classI = ttt.getElement(1);
        final Class<?> classB = ttt.getElement(2);
        QL.require(classT!=null , "T is null"); // TODO: message
        QL.require(classI!=null , "I is null"); // TODO: message
        QL.require(classB!=null , "B is null"); // TODO: message

        // instantiate base class and call super constructor
View Full Code Here

        // retrieve generic parameters
        // *** NOTE:: NOT SURE IF THIS CODE IS CORRECT: I (interpolator) and B (bootstrap) are being passed as formal parameters.
        // *** See InterpolatedDiscountCurve: default formal arguments are "guessed" from generic parameters via ...
        // ***         new TypeTokenTree(InterpolatedDiscountCurve.class).getElement(0)
        // *** in some constructors, which assume defaults.
        final TypeTokenTree ttt = new TypeTokenTree(this.getClass());
        final Class<?> classT = ttt.getElement(0);
        final Class<?> classI = ttt.getElement(1);
        final Class<?> classB = ttt.getElement(2);
        QL.require(classT!=null , "T is null"); // TODO: message
        QL.require(classI!=null , "I is null"); // TODO: message
        QL.require(classB!=null , "B is null"); // TODO: message

        // instantiate base class and call super constructor
View Full Code Here

    public BootstrapError(
            final PiecewiseCurve curve,
            final RateHelper helper,
            final int segment) {
        this(new TypeTokenTree(BootstrapError.class).getElement(0), curve, helper, segment);
    }
View Full Code Here

    //
    // public constructors
    //

    public LocalBootstrap(final int localisation, final boolean forcePositive) {
        this(new TypeTokenTree(LocalBootstrap.class).getElement(0), localisation, forcePositive);
    }
View Full Code Here

        }
    }


    protected InterpolatedDiscountCurve(final DayCounter dc) {
        this(dc, new TypeTokenTree(InterpolatedDiscountCurve.class).getElement(0));
    }
View Full Code Here

            final DayCounter dc,
            final Interpolator interpolator) {
        super(dc);
        QL.validateExperimentalMode();

        this.classI = new TypeTokenTree(this.getClass()).getElement(0);
        if (classI != interpolator.getClass())
            throw new LibraryException(ReflectConstants.WRONG_ARGUMENT_TYPE);
        this.interpolator = interpolator;
    }
View Full Code Here

    }

    protected InterpolatedDiscountCurve(
            final Date referenceDate,
            final DayCounter dc) {
        this(referenceDate, dc, new TypeTokenTree(InterpolatedDiscountCurve.class).getElement(0));
    }
View Full Code Here

TOP

Related Classes of org.jquantlib.lang.reflect.TypeTokenTree

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.