Package ptolemy.actor

Examples of ptolemy.actor.TypedIOPort.link()


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

        //hstr.link(hsr4);
        ctIncTr.link(hsr4);
        ctDecTr.link(hsr4);

        // connect the top level system
        this.connect(source.output, hsin);

        //sys.connect(hsout, responsePlot.input);
View Full Code Here


                    }
                    String relationName = _actor.uniqueName("relation");
                    TypedIORelation relation = new TypedIORelation(_actor,
                            relationName);
                    port.link(relation);
                    containerPort.link(relation);
                }
                for (String portName : _unknownPrefixes.keySet()) {
                    String suffix = evaluateString(_unknownExpressions
                            .get(portName));
                    if (suffix == null) {
View Full Code Here

                        }
                        String relationName = _actor.uniqueName("relation");
                        TypedIORelation relation = new TypedIORelation(_actor,
                                relationName);
                        port.link(relation);
                        containerPort.link(relation);
                    } else if (_getType(name).equals("relation")) {
                        String relationName = _actor.getMappedName(name);
                        TypedIORelation relation = (TypedIORelation) _actor
                                .getRelation(relationName);
                        TypedIOPort port = (TypedIOPort) actor
View Full Code Here

                            if (ioport.isMultiport()) {
                                relation.setWidth(ioport.getWidth());
                                newPort.setMultiport(true);
                                if (ioport.getWidth() == 0) {
                                    ioport.link(relation);
                                    newPort.link(relation);
                                } else {
                                    int width = ioport.getWidth();
                                    while (width > 0) {
                                        ioport.link(relation);
                                        newPort.link(relation);
View Full Code Here

                                    newPort.link(relation);
                                } else {
                                    int width = ioport.getWidth();
                                    while (width > 0) {
                                        ioport.link(relation);
                                        newPort.link(relation);
                                        width--;
                                    }
                                }
                            } else {
                                ioport.link(relation);
View Full Code Here

                                        width--;
                                    }
                                }
                            } else {
                                ioport.link(relation);
                                newPort.link(relation);
                            }
                        }
                    }
                }
            } catch (Exception ex) {
View Full Code Here

                        } else {
                            throw new PtalonRuntimeException("No port named "
                                    + portName);
                        }
                    }
                    port.link(relation);
                }
                for (String portName : _transparencies.keySet()) {
                    TypedIOPort port = (TypedIOPort) _actor.getPort(portName);
                    String shortName = _transparencies.get(portName);
                    if (_transparentRelations.containsKey(shortName)) {
View Full Code Here

                                throw new PtalonRuntimeException(
                                        "No port named " + portName);
                            }
                        }
                        port.link(rel);
                        connectionPoint.link(rel);
                    } else {
                        if (port == null) {
                            throw new PtalonRuntimeException("No port named "
                                    + portName);
                        }
View Full Code Here

                    }
                    String relationName = _actor.uniqueName("relation");
                    TypedIORelation relation = new TypedIORelation(_actor,
                            relationName);
                    port.link(relation);
                    containerPort.link(relation);
                }
                for (String portName : _unknownPrefixes.keySet()) {
                    String suffix = evaluateString(_unknownExpressions
                            .get(portName));
                    if (suffix == null) {
View Full Code Here

                        }
                        String relationName = _actor.uniqueName("relation");
                        TypedIORelation relation = new TypedIORelation(_actor,
                                relationName);
                        port.link(relation);
                        containerPort.link(relation);
                    } else if (_getType(name).equals("relation")) {
                        String relationName = _actor.getMappedName(name);
                        TypedIORelation relation = (TypedIORelation) _actor
                                .getRelation(relationName);
                        TypedIOPort port = (TypedIOPort) _actor
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.