Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.StringAttribute


        _handle = new TypedIOPort(this, "handle", false, true);
        _handle.setTypeEquals(BaseType.LONG);

        // Put the rollback input on the bottom of the actor.
        StringAttribute rollbackCardinal = new StringAttribute(_rollback,
                "_cardinal");
        rollbackCardinal.setExpression("SOUTH");
    }
View Full Code Here


        majorTickSpacing.setTypeEquals(BaseType.INT);
        minorTickSpacing = new Parameter(this, "minorTickSpacing",
                new IntToken(1));
        minorTickSpacing.setTypeEquals(BaseType.INT);

        title = new StringAttribute(this, "title");
        title.setExpression("");
    }
View Full Code Here

        xScaleFactor = new Parameter(this, "xScaleFactor", new DoubleToken(
                "1.0F"));
        yScaleFactor = new Parameter(this, "yScaleFactor", new DoubleToken(
                "1.0F"));

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

        subSampleBits = new Parameter(this, "subSampleBits", new IntToken(8));
View Full Code Here

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

        scalingType = new StringAttribute(this, "scalingType");
        scalingType.setExpression("none");
        _scalingType = _NONE;

        dataNature = new StringAttribute(this, "dataNature");
        dataNature.setExpression("realToComplex");
        _dataNature = _REAL_TO_COMPLEX;

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

        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

     *   actor with this name.
     */
    public DoubleMatrixToJAI(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        dataFormat = new StringAttribute(this, "dataFormat");
        dataFormat.setExpression("byte");
        _dataFormat = _BYTE;

        scale = new Parameter(this, "scale");
        scale.setTypeEquals(BaseType.BOOLEAN);
View Full Code Here

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

        firstMask = new StringAttribute(this, "firstMask");
        firstMask.setExpression("Sobel Horizontal");
        _firstMask = _SOBEL_HORIZONTAL;

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

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

        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));
View Full Code Here

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

        transposeType = new StringAttribute(this, "transposeType");
        transposeType.setExpression("flip horizontal");
        _transposeType = TransposeDescriptor.FLIP_HORIZONTAL;

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

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

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

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

TOP

Related Classes of ptolemy.kernel.util.StringAttribute

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.