Package ptolemy.data.type

Examples of ptolemy.data.type.ArrayType$TypeableArrayTypeTerm


     @exception IllegalActionException Not thrown in this base class.
     */
    public static Type elementMultiplyReturnType(Type type1, Type type2)
            throws IllegalActionException {
        if (type1 instanceof ArrayType) {
            return new ArrayType(TypeLattice.leastUpperBound(
                    ((ArrayType) type1).getElementType(), type2));
        } else {
            return new ArrayType(BaseType.UNKNOWN);
        }
    }
View Full Code Here


    /** Return the type of this ArrayToken.
     *  @return An ArrayType.
     */
    public Type getType() {
        return new ArrayType(getElementType(), length());
    }
View Full Code Here

        new SingletonAttribute(array, "_showName");

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

        // Set Type Constraints.
        array.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        output.setTypeEquals(BaseType.INT);
    }
View Full Code Here

TOP

Related Classes of ptolemy.data.type.ArrayType$TypeableArrayTypeTerm

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.