Package org.jquantlib.lang.reflect

Examples of org.jquantlib.lang.reflect.TypeTokenTree


    protected InterpolatedDiscountCurve(
            final /*@Natural*/ int settlementDays,
            final Calendar cal,
            final DayCounter dc) {
        this(settlementDays, cal, dc, new TypeTokenTree(InterpolatedDiscountCurve.class).getElement(0));
    }
View Full Code Here


            final DayCounter dc,
            final Interpolator interpolator) {
        super(settlementDays, cal, 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 [] dates,
            final double[] discounts,
            final DayCounter dc,
            final Calendar cal) {
        this(dates, discounts, dc, cal, new TypeTokenTree(InterpolatedDiscountCurve.class).getElement(0));
    }
View Full Code Here

            final Calendar calendar,
            final Interpolator interpolator) {
        super (dates[0], calendar, dc);
        QL.validateExperimentalMode();

        this.classI = new TypeTokenTree(this.getClass()).getElement(0);
        if (classI != interpolator.getClass())
            throw new LibraryException(ReflectConstants.WRONG_ARGUMENT_TYPE);

        QL.require (dates.length != 0, " Dates cannot be empty"); // TODO: message
        QL.require (discounts.length != 0, "Discounts cannot be empty"); // TODO: message
View Full Code Here

    //
    // public constructors
    //

    public IterativeBootstrap() {
        this(new TypeTokenTree(IterativeBootstrap.class).getElement(0));
    }
View Full Code Here

    private class MyClass<X, Y, Z> implements TypeNodeTester {

        private final TypeNode root;

        public MyClass() {
            this.root = new TypeTokenTree(this.getClass()).getRoot();
        }
View Full Code Here

    private class AnotherClass<X, Y, Z> extends Leg implements TypeNodeTester {

        private final TypeNode root;

        public AnotherClass() {
            this.root = new TypeTokenTree(this.getClass()).getRoot();
        }
View Full Code Here

    private class ListClass<X, Y, Z> extends ArrayList<X> implements TypeNodeTester {

        private final TypeNode root;

        public ListClass() {
            this.root = new TypeTokenTree(this.getClass()).getRoot();
        }
View Full Code Here

    private class MapClass<X, Y, Z> extends HashMap<X,Y> implements TypeNodeTester {

        private final TypeNode root;

        public MapClass() {
            this.root = new TypeTokenTree(this.getClass()).getRoot();
        }
View Full Code Here

    // public constructors
    //

    public TrapezoidIntegral(final double accuracy, final int maxEvaluations) {
        super(accuracy, maxEvaluations);
        final Class<?> klass = new TypeTokenTree(this.getClass()).getElement(0);
        if (klass==Default.class) {
            this.policy = new Default();
        } else if (klass==MidPoint.class) {
            this.policy = new MidPoint();
        } else {
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.