Package ptolemy.data.expr

Examples of ptolemy.data.expr.SingletonParameter


        output.setTypeEquals(BaseType.DOUBLE);

        alpha = new PortParameter(this, "alpha");
        alpha.setExpression("2.0");
        alpha.setTypeEquals(BaseType.DOUBLE);
        new SingletonParameter(alpha.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        beta = new PortParameter(this, "beta");
        beta.setExpression("2.0");
        beta.setTypeEquals(BaseType.DOUBLE);
        new SingletonParameter(beta.getPort(), "_showName")
                .setToken(BooleanToken.TRUE);

        beta.moveToFirst();
        alpha.moveToFirst();
    }
View Full Code Here


        output.setTypeEquals(BaseType.DOUBLE);

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

        tau.moveToFirst();
    }
View Full Code Here

        output.setTypeEquals(BaseType.DOUBLE);

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

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

        lambda.moveToFirst();
        alpha.moveToFirst();
    }
View Full Code Here

        output.setTypeEquals(BaseType.INT);

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

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

        pk.moveToFirst();
        ro.moveToFirst();
    }
View Full Code Here

        output.setTypeEquals(BaseType.DOUBLE);

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

        freedom.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);

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

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

        standardDeviation.moveToFirst();
        mean.moveToFirst();
    }
View Full Code Here

        output.setTypeEquals(BaseType.DOUBLE);

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

        freedom.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);

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

        freedom.moveToFirst();
    }
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.