Examples of TypedIOPort


Examples of ptolemy.actor.TypedIOPort

     *   actor with this name.
     */
    public MatrixViewer(CompositeEntity container, String name)
            throws NameDuplicationException, IllegalActionException {
        super(container, name);
        input = new TypedIOPort(this, "input", true, false);
        input.setTypeEquals(BaseType.MATRIX);

        width = new Parameter(this, "width", new IntToken(500));
        width.setTypeEquals(BaseType.INT);
        height = new Parameter(this, "height", new IntToken(300));
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

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

        output = new TypedIOPort(this, "output", false, true);
        new Parameter(output, "signalType", new StringToken("DISCRETE"));

        trigger = new TypedIOPort(this, "trigger", true, false);
        trigger.setMultiport(false);
        trigger.setTypeEquals(BaseType.DOUBLE);
        new Parameter(trigger, "signalType", new StringToken("CONTINUOUS"));

        level = new Parameter(this, "level", new DoubleToken(0.0));
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

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

        // 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);
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     * @exception IllegalActionException If there was an internal problem.
     */
    public LinearStateSpace(CompositeEntity container, String name)
            throws NameDuplicationException, IllegalActionException {
        super(container, name);
        input = new TypedIOPort(this, "input", true, false);
        input.setMultiport(true);
        output = new TypedIOPort(this, "output", false, true);
        output.setMultiport(true);
        stateOutput = new TypedIOPort(this, "stateOutput", false, true);
        stateOutput.setMultiport(true);
        _opaque = true;
        _requestInitialization = true;

        double[][] one = { { 1.0 } };
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

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

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

        // Create the parameters.
        length = new Parameter(this, "length", new IntToken(100));
        length.setTypeEquals(BaseType.INT);
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

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

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

Examples of ptolemy.actor.TypedIOPort

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

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

        magnitude.setTypeEquals(BaseType.OBJECT);
        phase.setTypeEquals(BaseType.OBJECT);
        output.setTypeEquals(BaseType.OBJECT);
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     *   actor with this name.
     */
    public MobileFunction(Workspace workspace) throws IllegalActionException,
            NameDuplicationException {
        super(workspace);
        input = new TypedIOPort(this, "input", true, false);
        function = new TypedIOPort(this, "function", true, false);

        //function.setTypeAtMost(new FunctionType
        //        (new Type[]{BaseType.UNKNOWN}, BaseType.GENERAL));
        output = new TypedIOPort(this, "output", false, true);
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     *   an actor already in the container.
     */
    public MobileFunction(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        input = new TypedIOPort(this, "input", true, false);
        function = new TypedIOPort(this, "function", true, false);

        //function.setTypeAtMost(new FunctionType
        //        (new Type[]{BaseType.UNKNOWN}, BaseType.GENERAL));
        output = new TypedIOPort(this, "output", false, true);
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     *   actor with this name.
     */
    public ApplyFunction(Workspace workspace) throws IllegalActionException,
            NameDuplicationException {
        super(workspace);
        output = new TypedIOPort(this, "output", false, true);
        function = new PortParameter(this, "function");
    }
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.