Package ptolemy.data.type

Examples of ptolemy.data.type.ArrayType$TypeableArrayTypeTerm


        // Create the input port and make it a multiport.
        x = new TypedIOPort(this, "x", true, false);
        x.setMultiport(true);
        x.setTypeEquals(BaseType.DOUBLE);
        x.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        new Parameter(x, "_showName", BooleanToken.TRUE);

        y = new TypedIOPort(this, "y", true, false);
        y.setMultiport(true);
        y.setTypeEquals(BaseType.DOUBLE);
        y.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        new Parameter(y, "_showName", BooleanToken.TRUE);

        iterationsPerUpdate = new Parameter(this, "iterationsPerUpdate");
        iterationsPerUpdate.setExpression("1");
    }
View Full Code Here


        // The initial trace is used to make the sketched value
        // persistent, and also to provide an initial trace when
        // an instance of the actor is first dragged onto a model.
        initialTrace = new Parameter(this, "initialTrace");
        initialTrace.setExpression("repeat(length, 0.0)");
        initialTrace.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        initialTrace.setVisibility(Settable.EXPERT);

        periodic = new Parameter(this, "periodic", BooleanToken.TRUE);
        periodic.setTypeEquals(BaseType.BOOLEAN);
        yBottom = new Parameter(this, "yBottom", new DoubleToken(-1.0));
View Full Code Here

         */
        public boolean transferOutputs(IOPort port)
                throws IllegalActionException {
            boolean result = false;

            ArrayType type = (ArrayType) ((TypedIOPort) port).getType();
            Type elementType = type.getElementType();

            for (int i = 0; i < port.getWidthInside(); i++) {
                try {
                    ArrayList list = new ArrayList();

View Full Code Here

            try {
                try {
                    _workspace.getReadAccess();

                    ArrayType type = (ArrayType) getType();
                    int compare = TypeLattice.compare(token.getType(), type
                            .getElementType());

                    if ((compare == CPO.HIGHER)
                            || (compare == CPO.INCOMPARABLE)) {
                        throw new IllegalActionException(
View Full Code Here

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

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

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

        privateKey = new TypedIOPort(this, "privateKey", true, false);
        privateKey.setTypeEquals(KeyToken.KEY);

        signature = new TypedIOPort(this, "signature", false, true);
        signature.setTypeEquals(new ArrayType(BaseType.UNSIGNED_BYTE));
    }
View Full Code Here

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

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

        publicKey = new TypedIOPort(this, "publicKey", true, false);
        publicKey.setTypeEquals(KeyToken.KEY);
    }
View Full Code Here

        // Create the input port and make it a multiport.
        input = new TypedIOPort(this, "input", true, false);
        input.setMultiport(true);
        input.setTypeEquals(BaseType.DOUBLE);
        input.setTypeEquals(new ArrayType(BaseType.DOUBLE));

        iterationsPerUpdate = new Parameter(this, "iterationsPerUpdate");
        iterationsPerUpdate.setExpression("1");

        // set the parameters
View Full Code Here

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

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

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

        // Do not use TypedCompositeActor as the MoML name for this actor.
        setClassName("ptolemy.domains.ct.lib.ContinuousTransferFunction");

        // icon
View Full Code Here

    public CryptographyActor(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));

        // Add the possible algorithm choices.
        algorithm = new StringParameter(this, "algorithm");

        Set algorithms = Security.getAlgorithms("Cipher");
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.