Package ptolemy.actor

Examples of ptolemy.actor.TypedIOPort


        defaultSleepTime.setTypeEquals(BaseType.LONG);

        // Data type polymorphic, multiports.
        input.setMultiport(true);
        output.setMultiport(true);
        sleepTime = new TypedIOPort(this, "sleepTime", true, false);
        sleepTime.setTypeEquals(BaseType.LONG);
    }
View Full Code Here


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

        // Inputs
        input = new TypedIOPort(this, "input");
        input.setTypeEquals(BaseType.STRING);
        input.setInput(true);

        trigger = new TypedIOPort(this, "trigger");
        trigger.setTypeEquals(BaseType.GENERAL);
        trigger.setInput(true);

        // Output
        output = new TypedIOPort(this, "output");
        output.setTypeEquals(BaseType.STRING);
        output.setOutput(true);
    }
View Full Code Here

     */
    public HistogramPlotter(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);

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

        binWidth = new Parameter(this, "binWidth");
        binWidth.setExpression("1.0");
View Full Code Here

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

        // Create the input ports and make them single ports.
        inputX = new TypedIOPort(this, "inputX", true, false);
        inputX.setMultiport(true);
        inputX.setTypeEquals(BaseType.DOUBLE);

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

        _attachText("_iconDescription", "<svg>\n"
                + "<rect x=\"-20\" y=\"-20\" " + "width=\"40\" height=\"40\" "
View Full Code Here

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

        // Outputs
        upArrow = new TypedIOPort(this, "upArrow");
        upArrow.setTypeEquals(BaseType.INT);
        upArrow.setOutput(true);

        leftArrow = new TypedIOPort(this, "leftArrow");
        leftArrow.setTypeEquals(BaseType.INT);
        leftArrow.setOutput(true);

        rightArrow = new TypedIOPort(this, "rightArrow");
        rightArrow.setTypeEquals(BaseType.INT);
        rightArrow.setOutput(true);

        downArrow = new TypedIOPort(this, "downArrow");
        downArrow.setTypeEquals(BaseType.INT);
        downArrow.setOutput(true);
    }
View Full Code Here

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

        // Create the input ports.
        column = new TypedIOPort(this, "column", true, false);
        column.setTypeEquals(BaseType.INT);
        row = new TypedIOPort(this, "row", true, false);
        row.setTypeEquals(BaseType.INT);

        control = new TypedIOPort(this, "control", true, false);
        control.setTypeEquals(BaseType.BOOLEAN);

        // The number of columns
        columns = new Parameter(this, "columns");
        columns.setExpression("10");
View Full Code Here

     */
    public ModelDisplay(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        modelURL = new FileParameter(this, "modelURL");
        input = new TypedIOPort(this, "input", true, false);
        input.setTypeEquals(BaseType.STRING);
    }
View Full Code Here

     @exception IllegalActionException If creating the parameters
     *  and ports throws it.
     */
    private void _init() throws IllegalActionException {
        try {
            input = new TypedIOPort(this, "input", true, false);
            modelString = new TypedIOPort(this, "modelString", true, false);
            modelString.setTypeEquals(BaseType.STRING);
            defaultValue = new Parameter(this, "defaultValue", new IntToken(0));
            output = new TypedIOPort(this, "output", false, true);
            output.setTypeAtLeast(defaultValue);
            refresh = new Parameter(this, "refresh", new BooleanToken(true));
            refresh.setTypeEquals(BaseType.BOOLEAN);
            connectPorts = new Parameter(this, "connectPorts",
                    new BooleanToken(true));
View Full Code Here

     */
    public Backtrack(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);

        _checkpoint = new TypedIOPort(this, "checkpoint", true, false);
        _checkpoint.setTypeEquals(BaseType.BOOLEAN);

        _rollback = new TypedIOPort(this, "rollback", true, false);
        _rollback.setTypeEquals(BaseType.LONG);

        _handle = new TypedIOPort(this, "handle", false, true);
        _handle.setTypeEquals(BaseType.LONG);

        // Put the rollback input on the bottom of the actor.
        StringAttribute rollbackCardinal = new StringAttribute(_rollback,
                "_cardinal");
View Full Code Here

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

        // start port.
        start = new TypedIOPort(this, "start");
        start.setInput(true);

        // type is undeclared.
        // Annotate DISCRETE, for the benefit of CT.
        new Parameter(start, "signalType", new StringToken("DISCRETE"));

        // stop port.
        stop = new TypedIOPort(this, "stop");
        stop.setInput(true);

        // type is undeclared.
        // Annotate DISCRETE, for the benefit of CT.
        new Parameter(stop, "signalType", new StringToken("DISCRETE"));
View Full Code Here

TOP

Related Classes of ptolemy.actor.TypedIOPort

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.