Package ptolemy.actor

Examples of ptolemy.actor.TypedIOPort.link()


                // One port for each state variable.
                for (int k = 0; k < n; k++) {
                    TypedIOPort port = new TypedIOPort(equations[i], states[k],
                            true, false);
                    port.setTypeEquals(BaseType.DOUBLE);
                    port.link(stateRelations[k]);
                }

                // One port for each input variable.
                for (int k = 0; k < m; k++) {
                    TypedIOPort port = new TypedIOPort(equations[i], inputs[k],
View Full Code Here


                // One port for each input variable.
                for (int k = 0; k < m; k++) {
                    TypedIOPort port = new TypedIOPort(equations[i], inputs[k],
                            true, false);
                    port.setTypeEquals(BaseType.DOUBLE);
                    port.link(inputRelations[k]);
                }
            }

            // Connect output expressions.
            // The policy now is that the output should never directly
View Full Code Here

                // One port for each state variable.
                for (int k = 0; k < n; k++) {
                    TypedIOPort port = new TypedIOPort(maps[l], states[k],
                            true, false);
                    port.setTypeEquals(BaseType.DOUBLE);
                    port.link(stateRelations[k]);
                }

                /*
                 // One port for each input variable.

View Full Code Here

                newPort.setContainer(_embeddedActor);
                for (int channel = 0; channel < port.getWidth(); channel++) {
                    TypedIORelation relation = new TypedIORelation(this,
                            "relation" + i++);
                    port.link(relation);
                    newPort.link(relation);
                }
            }
        } catch (NameDuplicationException ex) {
            throw new IllegalActionException(this, ex, "Name duplication.");
        } catch (CloneNotSupportedException ex) {
View Full Code Here

                // One port for each state variable.
                for (int k = 0; k < n; k++) {
                    TypedIOPort port = new TypedIOPort(equations[i], states[k],
                            true, false);
                    port.setTypeEquals(BaseType.DOUBLE);
                    port.link(stateRelations[k]);
                }

                // One port for each input variable.
                for (int k = 0; k < m; k++) {
                    TypedIOPort port = new TypedIOPort(equations[i], inputs[k],
View Full Code Here

                // One port for each input variable.
                for (int k = 0; k < m; k++) {
                    TypedIOPort port = new TypedIOPort(equations[i], inputs[k],
                            true, false);
                    port.setTypeEquals(BaseType.DOUBLE);
                    port.link(inputRelations[k]);
                }
            }

            // Connect output expressions.
            // The policy now is that the output should never directly
View Full Code Here

                // One port for each state variable.
                for (int k = 0; k < n; k++) {
                    TypedIOPort port = new TypedIOPort(maps[l], states[k],
                            true, false);
                    port.setTypeEquals(BaseType.DOUBLE);
                    port.link(stateRelations[k]);
                }

                /*
                 // One port for each input variable.

View Full Code Here

        // The ports are public members of these classes.
        // The first connection is a three way connection, so we have
        // to create a relation and then link to it.
        TypedIORelation node = (TypedIORelation) newRelation("node");
        ramp.output.link(node);
        expInput.link(node);
        polarToCartesian.angle.link(node);

        // The rest of the connections are point-to-point, so we can use
        // the connect() method.
        connect(expression.output, polarToCartesian.magnitude);
View Full Code Here

        ctInc.connect(ctIncIn, ctIncI.input);

        Relation ctIncR2 = ctInc.newRelation("R2");
        ctIncGF.output.link(ctIncR2);
        ctIncD.trigger.link(ctIncR2);
        ctIncTr.link(ctIncR2);
        ctInc.connect(ctIncD.output, ctIncOut);

        //ctInc.connect(ctIncS.output, ctIncSt);
        TypedIORelation ctIncR1 = (TypedIORelation) ctInc
                .newRelation("CTIncR1");
View Full Code Here

        ctDec.connect(ctGain.output, ctDecI.input);

        Relation ctDecR2 = ctDec.newRelation("R2");
        ctDecGF.output.link(ctDecR2);
        ctDecD.trigger.link(ctDecR2);
        ctDecTr.link(ctDecR2);
        ctDec.connect(ctDecD.output, ctDecOut);

        //ctDec.connect(ctDecS.output, ctDecSt);
        TypedIORelation ctDecR1 = (TypedIORelation) ctDec
                .newRelation("CTDecR1");
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.