Package ptolemy.data.expr

Examples of ptolemy.data.expr.Parameter


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

        leftPadding = new Parameter(this, "leftPadding", new IntToken(0));
        rightPadding = new Parameter(this, "rightPadding", new IntToken(0));
        topPadding = new Parameter(this, "topPadding", new IntToken(0));
        bottomPadding = new Parameter(this, "bottomPadding", new IntToken(0));

        borderType = new StringAttribute(this, "borderType");
        borderType.setExpression("Zero");
        _borderType = _BORDER_ZERO;

        constants = new Parameter(this, "constants", new ArrayToken(
                BaseType.DOUBLE, _initialArray));
    }
View Full Code Here


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

        matrix = new Parameter(this, "matrix", new DoubleMatrixToken(
                _initialMatrix));
    }
View Full Code Here

        super(container, name);
        dataFormat = new StringAttribute(this, "dataFormat");
        dataFormat.setExpression("byte");
        _dataFormat = _BYTE;

        scale = new Parameter(this, "scale");
        scale.setTypeEquals(BaseType.BOOLEAN);
        scale.setToken(BooleanToken.TRUE);

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

        secondMask = new StringAttribute(this, "secondMask");
        secondMask.setExpression("Sobel Vertical");
        _secondMask = _SOBEL_VERTICAL;

        userSpecifiedFirstMask = new Parameter(this, "userSpecifiedFirstMask",
                new DoubleMatrixToken(_initialMatrix));
        userSpecifiedSecondMask = new Parameter(this,
                "userSpecifiedSecondMask",
                new DoubleMatrixToken(_initialMatrix));
    }
View Full Code Here

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

        xShift = new Parameter(this, "xShift", new DoubleToken("0.0F"));
        yShift = new Parameter(this, "yShift", new DoubleToken("0.0F"));

        interpolationType = new StringAttribute(this, "interpolationType");
        interpolationType.setExpression("bilinear");
        _interpolationType = _BILINEAR;

        subSampleBits = new Parameter(this, "subSampleBits", new IntToken(8));

        input.setTypeEquals(BaseType.OBJECT);
        output.setTypeEquals(BaseType.OBJECT);
    }
View Full Code Here

        fileName.setExpression("file.jpg");

        quality = new IntRangeParameter(this, "quality");

        restartInterval = new Parameter(this, "restartInterval",
                new IntToken(0));

        writeJFIFHeader = new Parameter(this, "writeJFIFHeader");
        writeJFIFHeader.setTypeEquals(BaseType.BOOLEAN);
        writeJFIFHeader.setToken(BooleanToken.TRUE);
    }
View Full Code Here

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

        writeRawData = new Parameter(this, "writeRawData");
        writeRawData.setTypeEquals(BaseType.BOOLEAN);
        writeRawData.setToken(BooleanToken.FALSE);
    }
View Full Code Here

        shape = new StringAttribute(this, "shape");
        shape.setExpression("Square");
        _shape = MedianFilterDescriptor.MEDIAN_MASK_SQUARE;

        size = new Parameter(this, "size", new IntToken(3));
    }
View Full Code Here

            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        input.setTypeEquals(BaseType.OBJECT);
        output.setTypeEquals(BaseType.OBJECT);

        filter = new Parameter(this, "filter", new DoubleMatrixToken(
                _initialMatrix));
    }
View Full Code Here

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

        normalize = new Parameter(this, "normalize");
        normalize.setTypeEquals(BaseType.BOOLEAN);
        normalize.setToken(BooleanToken.TRUE);

        input.setTypeEquals(BaseType.OBJECT);
        output.setTypeEquals(BaseType.DOUBLE_MATRIX);
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.