예제 #1
0
        public bool ConflictsWith(ChromoEvent Event)
        {
            switch (Event.Type)
            {
            case Types.Deletion:
                return(Range.Intersects(Event.Range));
            }

            return(false);
        }
예제 #2
0
        protected bool Conflicts(ChromoEvent Event)
        {
            bool conflict = false;

            foreach (ChromoEvent e in Events)
            {
                if (Event.ConflictsWith(e))
                {
                    conflict = true;
                    break;
                }
            }

            return(conflict);
        }