Exemple #1
0
        /// <summary>
        /// GetInsideFeaturesPhaseList : Gives the Phase list of features which are connected downstream to active feature.
        /// </summary>
        /// <param name="p_affectedKeyObject">Active feature</param>
        /// <param name="outsidePhaseList">Returns list of Outside features Phase list</param>
        private void GetOutsideFeaturesPhaseList(IGTKeyObject p_affectedKeyObject, ConnectivityFactory connFactory, ref List <char> outsidePhaseList)
        {
            try
            {
                RelatedFeatureTypes relOutsideFeatureType = connFactory.GetHelper(ConnectivityHelper.OutsideFeatures);
                relOutsideFeatureType.AffectedFeature = p_affectedKeyObject;

                outsidePhaseList = relOutsideFeatureType.GetRelatedPhases();
            }
            catch
            {
                throw;
            }
        }
Exemple #2
0
        /// <summary>
        /// GetUpstreamFeaturesPhaseList : Gives the Phase list of features which are connected Upstream to active feature.
        /// </summary>
        /// <param name="p_affectedKeyObject">Active feature</param>
        /// <param name="upstreamPhaseList">Returns list of downstream features Phase list</param>
        private void GetUpstreamFeaturesPhaseList(IGTKeyObject p_affectedKeyObject, ConnectivityFactory connFactory, ref List <char> upstreamPhaseList)
        {
            List <IGTKeyObject> upstreamFeaturesKeyObjects = new List <IGTKeyObject>();

            try
            {
                RelatedFeatureTypes relUpstreamFeatureType = connFactory.GetHelper(ConnectivityHelper.SourceSideOrUSFeatures);
                relUpstreamFeatureType.AffectedFeature = p_affectedKeyObject;

                upstreamFeaturesKeyObjects = relUpstreamFeatureType.GetRelatedFeaturesForFeatureTypes();

                GetPhaseList(upstreamFeaturesKeyObjects, ref upstreamPhaseList);
            }
            catch
            {
                throw;
            }
        }
Exemple #3
0
        /// <summary>
        /// GetParallelFeaturesPhaseList : Gives the Phase list of features which are connected parallel to active feature.
        /// </summary>
        /// <param name="p_affectedKeyObject">Active feature</param>
        /// <param name="parallelPhaseList">Returns list of parallel features Phase list</param>
        private void GetParallelFeaturesPhaseList(IGTKeyObject p_affectedKeyObject, ConnectivityFactory connFactory, ref List <char> parallelPhaseList)
        {
            List <IGTKeyObject> parallelFeaturesKeyObjects = new List <IGTKeyObject>();

            try
            {
                RelatedFeatureTypes relParallelFeatureType = connFactory.GetHelper(ConnectivityHelper.ParallelFeatures);
                relParallelFeatureType.AffectedFeature = p_affectedKeyObject;

                parallelFeaturesKeyObjects = relParallelFeatureType.GetRelatedFeaturesForFeatureTypes();

                GetPhaseList(parallelFeaturesKeyObjects, ref parallelPhaseList);
            }
            catch
            {
                throw;
            }
        }
Exemple #4
0
        /// <summary>
        ///  Gives the parallel features of the active feature
        /// </summary>
        /// <param name="parallelFeatures"></param>
        /// <param name="p_activeFeature"></param>
        /// <param name="connectivityFactory"></param>
        private void GetParallelFeatures(ref List <IGTKeyObject> parallelFeatures, IGTKeyObject p_activeFeature, ConnectivityFactory connectivityFactory)
        {
            try
            {
                RelatedFeatureTypes relFeatureTypes = connectivityFactory.GetHelper(ConnectivityHelper.ParallelFeatures);

                relFeatureTypes.AffectedFeature = p_activeFeature;

                List <IGTKeyObject> actualParallelFeatures = relFeatureTypes.GetRelatedFeaturesForFeatureTypes();

                GetNonRemovalRelatedFeatures(ref parallelFeatures, actualParallelFeatures);
            }
            catch
            {
                throw;
            }
        }
Exemple #5
0
        /// <summary>
        ///  Gives the Load features or down stream features of the active feature
        /// </summary>
        /// <param name="downStreamNodeFeatures"></param>
        /// <param name="p_activeFeature"></param>
        private void GetLoadsFeatures(ref List <IGTKeyObject> loadFeatures, IGTKeyObject p_activeFeature, ConnectivityFactory connectivityFactory)
        {
            try
            {
                RelatedFeatureTypes relFeatureTypes = connectivityFactory.GetHelper(ConnectivityHelper.LoadSideORDSFeatures);

                relFeatureTypes.AffectedFeature = p_activeFeature;

                List <IGTKeyObject> actualDownStreamNodeFeatures = relFeatureTypes.GetRelatedFeaturesForFeatureTypes();

                GetNonRemovalRelatedFeatures(ref loadFeatures, actualDownStreamNodeFeatures);
            }
            catch
            {
                throw;
            }
        }
Exemple #6
0
        /// <summary>
        /// GetDownStreamFeaturesPhaseList : Gives the Phase list of features which are connected downstream to active feature.
        /// </summary>
        /// <param name="p_affectedKeyObject">Active feature</param>
        /// <param name="downstreamPhaseList">Returns list of DownStream features Phase list</param>
        private void GetDownStreamFeaturesPhaseList(IGTKeyObject p_affectedKeyObject, ConnectivityFactory connFactory, ref List <char> downstreamPhaseList)
        {
            List <IGTKeyObject> downstreamNodeFeaturesKeyObjects = new List <IGTKeyObject>();

            try
            {
                RelatedFeatureTypes relDownstreamFeatureType = connFactory.GetHelper(ConnectivityHelper.LoadSideORDSFeatures);
                relDownstreamFeatureType.AffectedFeature = p_affectedKeyObject;

                downstreamNodeFeaturesKeyObjects = relDownstreamFeatureType.GetRelatedFeaturesForFeatureTypes();

                GetPhaseList(downstreamNodeFeaturesKeyObjects, ref downstreamPhaseList);
            }
            catch
            {
                throw;
            }
        }