Package ptolemy.data.type

Examples of ptolemy.data.type.ArrayType


        linearPredictor = new TypedIOPort(this, "linearPredictor", false, true);
        reflectionCoefficients = new TypedIOPort(this,
                "reflectionCoefficients", false, true);

        // FIXME: Can the inputs be complex?
        autocorrelation.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        errorPower.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        linearPredictor.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        reflectionCoefficients.setTypeEquals(new ArrayType(BaseType.DOUBLE));
    }
View Full Code Here


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

        input = new TypedIOPort(this, "input", true, false);
        input.setTypeEquals(new ArrayType(BaseType.UNSIGNED_BYTE));

        output = new TypedIOPort(this, "output", false, true);
        output.setTypeEquals(new ArrayType(BaseType.UNSIGNED_BYTE));

        provider = new StringParameter(this, "provider");
        provider.setExpression("SystemDefault");
        provider.addChoice("SystemDefault");
View Full Code Here

                                + " cannot be determined because "
                                + "no matching method was found.");
            }

            Type elementType = _cachedMethod.getReturnType();
            return new ArrayType(elementType);
        }
View Full Code Here

        remoteSocketNumber.setMultiport(true);
        remoteSocketNumber.setTypeEquals(BaseType.INT);

        data = new TypedIOPort(this, "data");
        data.setInput(true);
        data.setTypeEquals(new ArrayType(BaseType.UNSIGNED_BYTE));

        // Parameters that are default values for ports
        //defaultRemoteAddress =
        //        new StringAttribute(this, "defaultRemoteAddress");
        //defaultRemoteAddress.setExpression("localhost");
View Full Code Here

        softDecoding.setVisibility(Settable.NONE);
        softDecoding.setExpression("false");

        trellisDecoding.setExpression("true");

        constellation.setTypeEquals(new ArrayType(BaseType.COMPLEX));
        constellation.setExpression("{1.0, i, -1.0, -i}");
    }
View Full Code Here

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

        pmf = new Parameter(this, "pmf");
        pmf.setExpression("{0.5, 0.5}");
        pmf.setTypeEquals(new ArrayType(BaseType.DOUBLE));

        alphabet = new Parameter(this, "alphabet");
        alphabet.setExpression("{0, 1}");
        alphabet.setTypeAtLeast(ArrayType.ARRAY_BOTTOM);

        // Declare port types.
        huffmanCodeBook = new TypedIOPort(this, "huffmanCodeBook", false, true);
        huffmanCodeBook.setTypeEquals(new ArrayType(BaseType.STRING));
    }
View Full Code Here

    public Quantizer(CompositeEntity container, String name)
            throws NameDuplicationException, IllegalActionException {
        super(container, name);
        levels = new Parameter(this, "levels");
        levels.setExpression("{-1.0, 1.0}");
        levels.setTypeEquals(new ArrayType(BaseType.DOUBLE));

        // Call this so that we don't have to copy its code here...
        attributeChanged(levels);

        // Set the type constraints.
View Full Code Here

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

        output = new TypedIOPort(this, "output", false, true);
        output.setTypeEquals(new ArrayType(BaseType.INT));

        minimumValue = new Parameter(this, "minimumValue");
        minimumValue.setExpression("0.0");
        minimumValue.setTypeEquals(BaseType.DOUBLE);
View Full Code Here

        output.setTypeEquals(BaseType.BOOLEAN);
        _outputRate = new Parameter(output, "tokenProductionRate",
                new IntToken(1));

        table = new Parameter(this, "table");
        table.setTypeEquals(new ArrayType(BaseType.COMPLEX));
        table.setExpression("{-1.0, 1.0}");

        //attributeChanged(table);
        wordLength = new Parameter(this, "wordLength", new IntToken(1));
        wordLength.setTypeEquals(BaseType.INT);
View Full Code Here

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

        polynomialArray = new Parameter(this, "polynomialArray");
        polynomialArray.setTypeEquals(new ArrayType(BaseType.INT));
        polynomialArray.setExpression("{05, 07}");

        initialState = new Parameter(this, "initialState");
        initialState.setTypeEquals(BaseType.INT);
        initialState.setExpression("0");
View Full Code Here

TOP

Related Classes of ptolemy.data.type.ArrayType

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.