Package ptolemy.data.expr

Examples of ptolemy.data.expr.SingletonParameter


        super(container, name);
        seed = new SharedParameter(this, "seed", RandomSource.class, "0L");
        seed.setTypeEquals(BaseType.LONG);
        resetOnEachRun = new SharedParameter(this, "resetOnEachRun", RandomSource.class, "false");
        resetOnEachRun.setTypeEquals(BaseType.BOOLEAN);
        new SingletonParameter(trigger, "_showName").setToken(BooleanToken.TRUE);
    }
View Full Code Here


        maximumNumberOfPeaks.setExpression("MaxInt");
        maximumNumberOfPeaks.setTypeEquals(BaseType.INT);
        input = new TypedIOPort(this, "input", true, false);
        peakValues = new TypedIOPort(this, "peakValues", false, true);
        peakIndices = new TypedIOPort(this, "peakIndices", false, true);
        (new SingletonParameter(peakValues, "_showName")).setToken(BooleanToken.TRUE);
        (new SingletonParameter(peakIndices, "_showName")).setToken(BooleanToken.TRUE);
        input.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        peakValues.setTypeAtLeast(input);
        peakIndices.setTypeEquals(new ArrayType(BaseType.INT));
    }
View Full Code Here

        resetOnEachRun = new SharedParameter(this, "resetOnEachRun",
                RandomSource.class, "false");
        resetOnEachRun.setTypeEquals(BaseType.BOOLEAN);

        new SingletonParameter(trigger, "_showName")
                .setToken(BooleanToken.TRUE);
    }
View Full Code Here

    public ChannelPort(ComponentEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name, true, true);
        setPersistent(false);

        SingletonParameter hide = new SingletonParameter(this, "_hide");
        hide.setToken(BooleanToken.TRUE);
    }
View Full Code Here

        output.setTypeEquals(BaseType.INT);

        N = new PortParameter(this, "N", new IntToken(2));
        N.setTypeEquals(BaseType.INT);
        new SingletonParameter(N.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        s = new PortParameter(this, "s", new IntToken(1));
        s.setTypeEquals(BaseType.INT);
        new SingletonParameter(s.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        n = new PortParameter(this, "n", new IntToken(1));
        n.setTypeEquals(BaseType.INT);
        new SingletonParameter(n.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        n.moveToFirst();
        s.moveToFirst();
        N.moveToFirst();
View Full Code Here

        output.setTypeEquals(BaseType.DOUBLE);

        p = new PortParameter(this, "p", new DoubleToken(0.5));
        p.setTypeEquals(BaseType.DOUBLE);
        new SingletonParameter(p.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        p.moveToFirst();
    }
View Full Code Here

        output.setTypeEquals(BaseType.INT);

        mean = new PortParameter(this, "mean", new DoubleToken(1.0));
        mean.setTypeEquals(BaseType.DOUBLE);
        new SingletonParameter(mean.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        mean.moveToFirst();
    }
View Full Code Here

        output.setTypeEquals(BaseType.DOUBLE);

        lambda = new PortParameter(this, "lambda", new DoubleToken(1.0));
        lambda.setTypeEquals(BaseType.DOUBLE);
        new SingletonParameter(lambda.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        lambda.moveToFirst();
    }
View Full Code Here

        output.setTypeEquals(BaseType.INT);

        n = new PortParameter(this, "n", new IntToken(1));
        n.setTypeEquals(BaseType.INT);
        new SingletonParameter(n.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        p = new PortParameter(this, "p", new DoubleToken(0.5));
        p.setTypeEquals(BaseType.DOUBLE);
        new SingletonParameter(p.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        p.moveToFirst();
        n.moveToFirst();
    }
View Full Code Here

        output.setTypeEquals(BaseType.DOUBLE);

        lowerBound = new PortParameter(this, "lowerBound", new DoubleToken(0.0));
        lowerBound.setTypeEquals(BaseType.DOUBLE);
        new SingletonParameter(lowerBound.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        upperBound = new PortParameter(this, "upperBound", new DoubleToken(1.0));
        upperBound.setTypeEquals(BaseType.DOUBLE);
        new SingletonParameter(upperBound.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);
    }
View Full Code Here

TOP

Related Classes of ptolemy.data.expr.SingletonParameter

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.