Package ptolemy.data.expr

Examples of ptolemy.data.expr.Parameter


     default scheduler of the class SDFScheduler, an iterations
     *  parameter and a vectorizationFactor parameter.
     */
    private void _init() throws IllegalActionException,
            NameDuplicationException {
        iterations = new Parameter(this, "iterations");
        iterations.setTypeEquals(BaseType.INT);
        iterations.setExpression("0");

        vectorizationFactor = new Parameter(this, "vectorizationFactor");
        vectorizationFactor.setTypeEquals(BaseType.INT);
        vectorizationFactor.setExpression("1");

        allowDisconnectedGraphs = new Parameter(this, "allowDisconnectedGraphs");
        allowDisconnectedGraphs.setTypeEquals(BaseType.BOOLEAN);
        allowDisconnectedGraphs.setExpression("false");

        allowRateChanges = new Parameter(this, "allowRateChanges");
        allowRateChanges.setTypeEquals(BaseType.BOOLEAN);
        allowRateChanges.setExpression("false");

        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");
        synchronizeToRealTime.setTypeEquals(BaseType.BOOLEAN);

        timeResolution.setVisibility(Settable.FULL);
        timeResolution.moveToLast();
View Full Code Here


        input = new TypedIOPort(this, "input", true, false);
        output = new TypedIOPort(this, "output", false, true);
        input.setTypeEquals(BaseType.GENERAL);
        output.setTypeEquals(BaseType.GENERAL);

        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

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

        radius = new Parameter(this, "radius");
        radius.setExpression("0.1");
        radius.setTypeEquals(BaseType.DOUBLE);
        radius.moveToFirst();

        divisions = new Parameter(this, "divisions");
        divisions.setExpression("max(6, roundToInt(radius * 300))");
        divisions.setTypeEquals(BaseType.INT);
    }
View Full Code Here

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

        rows = new Parameter(this, "rows");
        rows.setExpression("2");
        rows.setTypeEquals(BaseType.INT);
        columns = new Parameter(this, "columns");
        columns.setExpression("2");
        columns.setTypeEquals(BaseType.INT);

        input.setTypeEquals(BaseType.DOUBLE);
        output.setTypeEquals(BaseType.DOUBLE_MATRIX);
View Full Code Here

        yTranslate = new TypedIOPort(this, "yTranslate", true, false);
        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

            throws NameDuplicationException, IllegalActionException {
        super(container, name);

        input.setTypeEquals(BaseType.INT);

        numberOfBits = new Parameter(this, "numberOfBits");
        numberOfBits.setExpression("32");

        output_tokenProductionRate.setExpression("numberOfBits");
        output.setTypeEquals(BaseType.BOOLEAN);
    }
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

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

        capacity = new Parameter(this, "capacity", new IntToken(-1));
        capacity.setTypeEquals(BaseType.INT);
    }
View Full Code Here

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

        deadZone = new Parameter(this, "deadZone", new DoubleToken("0.01"));

        isPolling = new Parameter(this, "isPolling", new BooleanToken("true"));

        pollingInterval = new Parameter(this, "pollingInterval", new IntToken(
                "50"));

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

View Full Code Here

        output.setTypeAtLeast(ArrayType.ARRAY_UNSIZED_BOTTOM);

        // NOTE: Consider constraining input element types.
        // This is a bit complicated to do, however.
        // Set Parameters.
        allowDuplicates = new Parameter(this, "allowDuplicates");
        allowDuplicates.setExpression("true");
        allowDuplicates.setTypeEquals(BaseType.BOOLEAN);

        ascending = new Parameter(this, "ascending");
        ascending.setExpression("true");
        ascending.setTypeEquals(BaseType.BOOLEAN);
    }
View Full Code Here

TOP

Related Classes of ptolemy.data.expr.Parameter

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.