Examples of SingletonParameter


Examples of ptolemy.data.expr.SingletonParameter

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

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

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

        cut.moveToFirst();
        gamma.moveToFirst();
        mean.moveToFirst();
View Full Code Here

Examples of ptolemy.data.expr.SingletonParameter

        input = new TypedIOPort(this, "input", true, false);
        input.setMultiport(true);
        output = new TypedIOPort(this, "output", false, true);
        output.setMultiport(true);

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

Examples of ptolemy.data.expr.SingletonParameter

        _highlightColor.setExpression("{1.0, 1.0, 0.0, 1.0}");

        label = new StringParameter(this, "label");
        label.setExpression("HighlightEntities");

        SingletonParameter hideName = new SingletonParameter(this, "_hideName");
        hideName.setToken(BooleanToken.TRUE);
        hideName.setVisibility(Settable.EXPERT);
    }
View Full Code Here

Examples of ptolemy.data.expr.SingletonParameter

    public WiredToWireless(CompositeEntity container, String name)
            throws NameDuplicationException, IllegalActionException {
        super(container, name);

        payload = new TypedIOPort(this, "payload", true, false);
        (new SingletonParameter(payload, "_showName"))
                .setToken(BooleanToken.TRUE);

        properties = new TypedIOPort(this, "properties", true, false);
        (new SingletonParameter(properties, "_showName"))
                .setToken(BooleanToken.TRUE);

        // FIXME: This should be constrained to be a record token.
        // How to do that?
        // Create and configure the parameters.
View Full Code Here

Examples of ptolemy.data.expr.SingletonParameter

        _circle2.lineColor.setToken("{0.0, 0.5, 0.5, 1.0}");

        node_icon.setPersistent(false);

        // Hide the name of this sensor node.
        SingletonParameter hide = new SingletonParameter(this, "_hideName");
        hide.setToken(BooleanToken.TRUE);
        hide.setVisibility(Settable.EXPERT);

        // Hide the ports.
        (new SingletonParameter(output, "_hide")).setToken(BooleanToken.TRUE);
        (new SingletonParameter(input, "_hide")).setToken(BooleanToken.TRUE);
        (new SingletonParameter(signal, "_hide")).setToken(BooleanToken.TRUE);
    }
View Full Code Here

Examples of ptolemy.data.expr.SingletonParameter

        _distance = new Variable(this, "distance");
        _distance.setExpression("Infinity");

        // Hide the ports in Vergil.
        SingletonParameter hide = new SingletonParameter(output, "_hide");
        hide.setToken(BooleanToken.TRUE);
        hide = new SingletonParameter(input, "_hide");
        hide.setToken(BooleanToken.TRUE);
        hide = new SingletonParameter(test, "_hide");
        hide.setToken(BooleanToken.TRUE);

        // Create an icon for this sensor node.
        EditorIcon node_icon = new EditorIcon(this, "_icon");

        // The icon has two parts: a circle and an antenna.
        // Create a circle that indicates the signal radius.
        _circle = new EllipseAttribute(node_icon, "_circle");
        _circle.centered.setToken("true");
        _circle.width.setToken("sureRange*2");
        _circle.height.setToken("sureRange*2");
        _circle.fillColor.setToken("{0.0, 0.0, 1.0, 0.05}");
        _circle.lineColor.setToken("{0.0, 0.0, 1.0, 0.05}");

        _circle2 = new EllipseAttribute(node_icon, "_circle2");
        _circle2.centered.setToken("true");
        _circle2.width.setToken("20");
        _circle2.height.setToken("20");
        _circle2.fillColor.setToken("{1.0, 1.0, 1.0, 1.0}");
        _circle2.lineColor.setToken("{0.0, 0.5, 0.5, 1.0}");

        node_icon.setPersistent(false);

        // Hide the name of this sensor node.
        hide = new SingletonParameter(this, "_hideName");
        hide.setToken(BooleanToken.TRUE);
        hide.setVisibility(Settable.EXPERT);
    }
View Full Code Here

Examples of ptolemy.data.expr.SingletonParameter

                + "style=\"font-size:12; font-family:SansSerif; fill:white\">"
                + "Double click to\nplot the schedule.</text></svg>");

        new SchedulePlotterEditorFactory(this, "_editorFactory");

        SingletonParameter hide = new SingletonParameter(this, "_hideName");
        hide.setToken(BooleanToken.TRUE);
        hide.setVisibility(Settable.EXPERT);

        // FIXME: This seems wrong.
        if (container instanceof CompositeActor) {
            // We need to check if the container is a CompositeActor
            // because the reference to SchedulePlotter in tmentities.xml
View Full Code Here

Examples of ptolemy.data.expr.SingletonParameter

        _attachText("_iconDescription", "<svg>\n"
                + "<circle cx=\"0\" cy=\"0\" r=\"20\" style=\"fill:white\"/>\n"
                + "</svg>\n");

        // Specify that the name should be centered in graphical displays.
        SingletonParameter center = new SingletonParameter(this, "_centerName");
        center.setExpression("true");
        center.setVisibility(Settable.EXPERT);

        isInitialState = new Parameter(this, "isInitialState");
        isInitialState.setTypeEquals(BaseType.BOOLEAN);
        // If this is the only state in the container, then make
        // it the initial state.  For backward compatibility,
View Full Code Here

Examples of ptolemy.data.expr.SingletonParameter

                && container.getFullName().equals(_currentAnnotationFullName)) {
            _currentlyProcessingAnnotation = false;
            _currentAnnotationFullName = null;

            try {
                SingletonParameter hide = new SingletonParameter(container,
                        "_hideName");
                hide.setToken(BooleanToken.TRUE);
                hide.setVisibility(Settable.EXPERT);

                MoMLParser.setModified(true);
            } catch (NameDuplicationException ex) {
                // Ignore, the container already has a _hideName.
                // The Network model has this problem.
View Full Code Here

Examples of ptolemy.data.expr.SingletonParameter

     */
    public GeneratorTableauAttribute(NamedObj container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);

        SingletonParameter hide = new SingletonParameter(this, "_hideName");
        hide.setToken(BooleanToken.TRUE);
        hide.setVisibility(Settable.EXPERT);

        new GeneratorTableauEditorFactory(this, "_editorFactory");
        _tableauFactory = new GeneratorTableau.Factory(this, "_tableauFactory");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.