Package ptolemy.data

Examples of ptolemy.data.DoubleToken


        rgbFillColor.setExpression("{1.0, 1.0, 1.0, 1.0}");

        rgbOutlineColor = new ColorAttribute(this, "rgbOutlineColor");
        rgbOutlineColor.setExpression("{0.0, 0.0, 0.0, 1.0}");

        outlineWidth = new Parameter(this, "outlineWidth", new DoubleToken(1.0));
        outlineWidth.setTypeEquals(BaseType.DOUBLE);
    }
View Full Code Here


    public DDEDirector() throws IllegalActionException,
            NameDuplicationException {
        super();

        double value = PrioritizedTimedQueue.ETERNITY;
        stopTime = new Parameter(this, "stopTime", new DoubleToken(value));
        timeResolution.setVisibility(Settable.FULL);
    }
View Full Code Here

    public DDEDirector(Workspace workspace) throws IllegalActionException,
            NameDuplicationException {
        super(workspace);

        double value = PrioritizedTimedQueue.ETERNITY;
        stopTime = new Parameter(this, "stopTime", new DoubleToken(value));
        timeResolution.setVisibility(Settable.FULL);
    }
View Full Code Here

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

        double value = PrioritizedTimedQueue.ETERNITY;
        stopTime = new Parameter(this, "stopTime", new DoubleToken(value));
        timeResolution.setVisibility(Settable.FULL);
    }
View Full Code Here

        director.stopTime.setExpression("90.0");

        // Instantiate the Actors
        _clock = new ListenClock(toplevel, "Clock");
        _clock.values.setExpression("{1, 1, 1}");
        _clock.period.setToken(new DoubleToken(20.0));
        _clock.offsets.setExpression("{5.0, 10.0, 15.0}");

        _join1 = new ListenWire(toplevel, "UpperJoin");
        _fork1 = new ListenFork(toplevel, "UpperFork");
        _fBack1 = new ListenFeedBackDelay(toplevel, "UpperFeedBack");
        _join2 = new ListenWire(toplevel, "LowerJoin");
        _fork2 = new ListenFork(toplevel, "LowerFork");
        _fBack2 = new ZenoDelay(toplevel, "LowerFeedBack");

        _rcvr1 = new ListenSink(toplevel, "UpperRcvr");
        _rcvr2 = new ListenSink(toplevel, "LowerRcvr");

        _upperTime = new Const(toplevel, "upperTime");
        _upperPlotter = new TimedPlotter(toplevel, "upperPlotter");

        _lowerTime = new Const(toplevel, "lowerTime");
        _lowerPlotter = new TimedPlotter(toplevel, "lowerPlotter");

        //_fBack1.delay.setToken(new DoubleToken(4.5));
        //_fBack2.delay.setToken(new DoubleToken(4.5));
        _fBack1.delay.setToken(new DoubleToken(1.0));
        _fBack2.delay.setToken(new DoubleToken(1.0));

        // Set up ports, relations and connections
        Relation clkRelation = toplevel.connect(_clock.output, _join1.input);
        _join2.input.link(clkRelation);
View Full Code Here

        constrainBufferSizes = new Parameter(this, "constrainBufferSizes");
        constrainBufferSizes.setTypeEquals(BaseType.BOOLEAN);
        constrainBufferSizes.setExpression("true");

        period = new Parameter(this, "period", new DoubleToken(1.0));
        period.setTypeEquals(BaseType.DOUBLE);
        period.setExpression("0.0");

        synchronizeToRealTime = new Parameter(this, "synchronizeToRealTime");
        synchronizeToRealTime.setExpression("false");
View Full Code Here

        nullDelay = new Parameter(this, "nullDelay", new BooleanToken(true));
        nullDelay.setTypeEquals(BaseType.BOOLEAN);
        realDelay = new Parameter(this, "realDelay", new BooleanToken(false));
        realDelay.setTypeEquals(BaseType.BOOLEAN);
        delay = new Parameter(this, "delay", new DoubleToken(1.0));
        delay.setTypeEquals(BaseType.DOUBLE);
    }
View Full Code Here

        yTranslate.setTypeEquals(BaseType.DOUBLE);
        zTranslate = new TypedIOPort(this, "zTranslate", true, false);
        zTranslate.setTypeEquals(BaseType.DOUBLE);

        initialXTranslation = new Parameter(this, "initialXTranslation",
                new DoubleToken(0.0));
        initialYTranslation = new Parameter(this, "initialYTranslation",
                new DoubleToken(0.0));
        initialZTranslation = new Parameter(this, "initialZTranslation",
                new DoubleToken(0.0));
    }
View Full Code Here

     */
    public RectangularFigure2D(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);

        xPosition = new Parameter(this, "xPosition", new DoubleToken(0.0));
        yPosition = new Parameter(this, "yPosition", new DoubleToken(0.0));
        width = new Parameter(this, "width", new DoubleToken(50.0));
        height = new Parameter(this, "height", new DoubleToken(50.0));

        xPosition.setTypeEquals(BaseType.DOUBLE);
        yPosition.setTypeEquals(BaseType.DOUBLE);
        width.setTypeEquals(BaseType.DOUBLE);
        height.setTypeEquals(BaseType.DOUBLE);
View Full Code Here

                phaseChange -= (2 * Math.PI);
            }

            _tempPreviousPhaseOutput = _previousPhaseOutput + phaseChange;
            _tempPreviousPhaseInput = newPhase;
            output.send(0, new DoubleToken(_tempPreviousPhaseOutput));
        }
    }
View Full Code Here

TOP

Related Classes of ptolemy.data.DoubleToken

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.