Esempio n. 1
0
        public CommonTraversal(CyPhy.ConnectorComposition connection, CyPhy.ComponentAssembly topassembly)
        {
            Initialize();
            startNodeID = "";

            this.topAssembly = topassembly;

            VisitConnectorComposition(connection);
        }
Esempio n. 2
0
        private bool IsParent(CyPhy.ConnectorComposition conn, CyPhy.ComponentAssembly topassembly)
        {
            GmeCommon.Interfaces.Container container = conn.ParentContainer;
            while (container != null)
            {
                if (container.Guid == topAssembly.Guid)
                {
                    return(true);
                }

                container = container.ParentContainer;
            }
            return(false);
        }
Esempio n. 3
0
        private void VisitConnectorComposition(CyPhy.ConnectorComposition connection)
        {
            CyPhy.Connector dstconnector = connection.DstEnds.Connector;
            CyPhy.Connector srcconnector = connection.SrcEnds.Connector;
            if (dstconnector != null)
            {
                VisitConnector(dstconnector, GetRefportOrParent((MgaConnection)connection.Impl, "dst"));
            }

            if (srcconnector != null)
            {
                VisitConnector(srcconnector, GetRefportOrParent((MgaConnection)connection.Impl, "src"));
            }
        }