Examples of TypeAttribute


Examples of ptolemy.actor.TypeAttribute

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

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

        TypeAttribute inputType = new TypeAttribute(input, "type");
        inputType.setExpression("{location = {double}, time = double}");

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

        TypeAttribute outputType = new TypeAttribute(output, "type");
        outputType.setExpression("{double}");

        // Create parameters.
        signalPropagationSpeed = new Parameter(this, "signalPropagationSpeed");
        signalPropagationSpeed.setToken("344.0");
        signalPropagationSpeed.setTypeEquals(BaseType.DOUBLE);
View Full Code Here

Examples of ptolemy.actor.TypeAttribute

        output = new WirelessIOPort(this, "output", false, true);
        output.outsideChannel.setExpression("$outputChannelName");

        // Since this actor sources the data at this port, we have to
        // declare the type.
        TypeAttribute portType = new TypeAttribute(output, "type");
        portType
                .setExpression("{location=arrayType(double, 2), time=double, depth=int}");

        // Create an icon for this sensor node.
        EditorIcon node_icon = new EditorIcon(this, "_icon");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.