Package ptolemy.actor

Examples of ptolemy.actor.IOPort.link()


                            System.out.println("> for Port : " + portName
                                    + " created Relation: "
                                    + relation.getName());
                        }

                        port.link(relation);
                    } catch (NameDuplicationException e) {
                        KernelException.stackTraceToString(e);
                    } catch (IllegalActionException e) {
                        KernelException.stackTraceToString(e);
                    }
View Full Code Here


                    if (VERBOSE) {
                        System.out.println("> for Port : " + portName
                                + " created Relation: " + relation.getName());
                    }

                    port.link(relation);
                } catch (NameDuplicationException e) {
                    KernelException.stackTraceToString(e);
                } catch (IllegalActionException e) {
                    KernelException.stackTraceToString(e);
                }
View Full Code Here

                // Connect the corresponding ports of both actors.
                IOPort matchingPort = (IOPort) clone.getPort(port.getName());
                IORelation relation = (IORelation) newRelation("r_" + i++);
                port.link(relation);
                matchingPort.link(relation);

                if (port.isMultiport()) {
                    relation.setWidth(port.getWidth());
                }
            }
View Full Code Here

        TypedIORelation hsr3 = (TypedIORelation) hs.newRelation("HSr3");
        hsst.link(hsr3);
        ctIncSt.link(hsr3);
        ctDecSt.link(hsr3);
        ctrlSt.link(hsr3);

        Relation hsr4 = hs.newRelation("HSr4");

        //hstr.link(hsr4);
        ctIncTr.link(hsr4);
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.