Example #1
0
        public XmlVisitor GetCombinedSectionsNode()
        {
            XmlVisitor Node = XmlVisitor.Create("Combined_sections", null);

//BMGR-0048 red signal has <Combined_sections />

            if (null != upPath)
            {//BMGR-0070
                AddCombinSectionNode(ref Node, "Upstream_section", upPath.GetUpstreamPathName());
                UpSection = upPath.GetUpstreamPathName();
            }

            if (null != rpRs)
            {//BMGR-0077
                AddCombinSectionNode(ref Node, "Reopening_section", rpRs.GetName());
                RpSection = rpRs.GetName();
            }

            if (null != apRs)
            {//BMGR-0078
                AddCombinSectionNode(ref Node, "Approach_section", apRs.GetName());
                ApSection = apRs.GetName();
            }

            //BMGR-0079
            if (null != olPath)
            {
                AddCombinSectionNode(ref Node, "Overlap_section", olPath.GetOverlapPathName());
                OlSection = olPath.GetOverlapPathName();
            }
            else if (null != overlap)
            {
                AddCombinSectionNode(ref Node, "Overlap_section", overlap.GetSigname());
                OlSection = overlap.GetSigname();
            }

            return(Node);
        }