Package ptolemy.data.type

Examples of ptolemy.data.type.ArrayType


        timeConstant.validate();

        // The currently adapted reflection coefficients
        adaptedReflectionCoefficients = new TypedIOPort(this,
                "adaptedReflectionCoefficients", false, true);
        adaptedReflectionCoefficients.setTypeEquals(new ArrayType(
                BaseType.DOUBLE));

        output.setTypeAtLeast(input);
    }
View Full Code Here


        // Attribute that specifies what to do on double click.
        new HighlightIcons(this, "_highlightIcons");

        entityNames = new Parameter(this, "entityNames");
        entityNames.setTypeEquals(new ArrayType(BaseType.STRING));

        // NOTE: The name of the this parameter violates the
        // naming conventions so that it is recorgnized as a highlight
        // color for this icon.
        _highlightColor = new ColorAttribute(this, "_highlightColor");
View Full Code Here

        period.setExpression("2.0");
        period.setTypeEquals(BaseType.DOUBLE);

        offsets = new Parameter(this, "offsets");
        offsets.setExpression("{0.0, 1.0}");
        offsets.setTypeEquals(new ArrayType(BaseType.DOUBLE));

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

        // set the values parameter
View Full Code Here

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

        // Set parameters.
        rowSplit = new Parameter(this, "rowSplit");
        rowSplit.setTypeEquals(new ArrayType(BaseType.INT));
        rowSplit.setExpression("{1}");

        columnSplit = new Parameter(this, "columnSplit");
        columnSplit.setTypeEquals(new ArrayType(BaseType.INT));
        columnSplit.setExpression("{1}");

        output_tokenProductionRate
                .setExpression("rowSplit.length() * columnSplit.length()");
    }
View Full Code Here

        output = new TypedIOPort(this, "output", false, true);
        output.setTypeSameAs(input);

        // Create and configure the variables.
        senderLocation = new Parameter(this, "senderLocation");
        senderLocation.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        senderLocation.setExpression("{0.0, 0.0}");
        senderLocation.setVisibility(Settable.EXPERT);

        receiverLocation = new Parameter(this, "receiverLocation");
        receiverLocation.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        receiverLocation.setExpression("{0.0, 0.0}");
        receiverLocation.setVisibility(Settable.EXPERT);

        properties = new Parameter(this, "properties");
View Full Code Here

         *   cannot be determined.
         */
        private ArrayType _getArrayTypeRaw() throws IllegalActionException {
            Type type = input.getType();
            if (_arrayType == null || !_arrayType.getElementType().equals(type)) {
                _arrayType = new ArrayType(type);
            }
            return _arrayType;
        }
View Full Code Here

         */
        private ArrayType _getArrayTypeRaw(int length)
                throws IllegalActionException {
            Type type = input.getType();
            if (_arrayType == null || !_arrayType.getElementType().equals(type)) {
                _arrayType = new ArrayType(type, length);
            }
            return _arrayType;
        }
View Full Code Here

     */
    public PolyCylinder3D(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        polygon = new Parameter(this, "polygon");
        polygon.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        polygon.setExpression("{0.0, 0.5, -0.433, -0.25, 0.433, -0.25}");

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

        resetOnEachRun = new Parameter(this, "resetOnEachRun");
        resetOnEachRun.setExpression("true");

        range = new Parameter(this, "range");

        Type rangeType = new ArrayType(new ArrayType(BaseType.DOUBLE));
        range.setTypeEquals(rangeType);
        range.setExpression("{{0.0, 500.0}, {0.0, 500.0}}");

        seed = new Parameter(this, "seed");
        seed.setExpression("0L");
View Full Code Here

                    // We need to explicit return an ArrayType here
                    // because the port type may not be an ArrayType.
                    String portName = name.substring(0, name.length() - 5);
                    if (port == _identifierToPort.get(portName)) {
                        Type portType = ((Typeable) port).getType();
                        return new ArrayType(portType);
                    }
                }
                return ((Typeable) port).getType();
            }
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.