Example #1
0
 public override void RemoveParent(TermNode_ObsoleteV1 Parent)
 {
     if (!(Parent is TermNodeWithGuid_ObsoleteV1))
     {
         throw new NotSupportedException();
     }
     Parents.Remove((Parent as TermNodeWithGuid_ObsoleteV1).GUID);
 }
Example #2
0
        public virtual bool Equals(TermNode_ObsoleteV1 tn)
        {
            if (tn == null)
            {
                return(false);
            }

            return(GetContent().Equals(tn.GetContent()));
        }
Example #3
0
 public override bool IsChildOf(TermNode_ObsoleteV1 AnotherTermNode)
 {
     if (!(AnotherTermNode is TermNodeWithGuid_ObsoleteV1))
     {
         return(GetSubject().IsSubsetOf(AnotherTermNode.GetSubject()));
     }
     else
     {
         return(this.Parents.Contains(((TermNodeWithGuid_ObsoleteV1)AnotherTermNode).GUID));
     }
 }
Example #4
0
 public override bool Overlaps(TermNode_ObsoleteV1 AnotherTermNode)
 {
     if (this.Parents.Overlaps(((TermNodeWithGuid_ObsoleteV1)AnotherTermNode).Parents))
     {
         return(true);
     }
     return(base.Overlaps(AnotherTermNode));
     // DISABLING THE FOLLOWING DUE TO CHICKEN AND EGG PROBLEM
     //if (!(AnotherTermNode is TermNodeWithGuid_ObsoleteV1))
     //    return GetSubject().Overlaps(AnotherTermNode.GetSubject());
     //else
     //    return this.Parents.Overlaps(((TermNodeWithGuid_ObsoleteV1)AnotherTermNode).Parents);
 }
Example #5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType() != typeof(TermNode_ObsoleteV1))
            {
                return(false);
            }

            TermNode_ObsoleteV1 tn = obj as TermNode_ObsoleteV1;

            return(this.Equals(tn));
        }
Example #6
0
        public override bool OverlapsWithoutInclusion(TermNode_ObsoleteV1 AnotherTermNode)
        {
            if (!this.Parents.IsSubsetOf(((TermNodeWithGuid_ObsoleteV1)AnotherTermNode).Parents) &&
                !((TermNodeWithGuid_ObsoleteV1)AnotherTermNode).Parents.IsSubsetOf(this.Parents) &&
                this.Parents.Overlaps(((TermNodeWithGuid_ObsoleteV1)AnotherTermNode).Parents))
            {
                return(true);
            }
            return(base.OverlapsWithoutInclusion(AnotherTermNode));
            // DISABLING THE FOLLOWING DUE TO CHICKEN AND EGG PROBLEM
            //if (!(AnotherTermNode is TermNodeWithGuid_ObsoleteV1))
            //    return GetSubject().OverlapsWithoutInclusion(AnotherTermNode.GetSubject());
            //else
            //{
            //    if (this.IsChildOf(((TermNodeWithGuid_ObsoleteV1)AnotherTermNode)))
            //        return false;

            //    if (((TermNodeWithGuid_ObsoleteV1)AnotherTermNode).IsChildOf(this))
            //        return false;

            //    return this.Overlaps(AnotherTermNode);
            //}
        }
Example #7
0
 public virtual void RemoveParent(TermNode_ObsoleteV1 Parent)
 {
     throw new NotSupportedException();
 }
Example #8
0
 public virtual bool OverlapsWithoutInclusion(TermNode_ObsoleteV1 AnotherTermNode)
 {
     return(GetSubject().OverlapsWithoutInclusion(AnotherTermNode.GetSubject()));
 }
Example #9
0
 public virtual bool Overlaps(TermNode_ObsoleteV1 AnotherTermNode)
 {
     return(GetSubject().Overlaps(AnotherTermNode.GetSubject()));
 }
Example #10
0
 public virtual bool IsChildOf(TermNode_ObsoleteV1 AnotherTermNode)
 {
     return(GetSubject().IsSubsetOf(AnotherTermNode.GetSubject()));
 }
Example #11
0
 public TermNode_ObsoleteV1(TermNode_ObsoleteV1 TermNode) : this(TermNode.GetContent())
 {
     IsItMultiBuildingPerRisk = TermNode.IsMultiBuildingPerRisk();
 }
Example #12
0
 public TermNodeWithGuid_ObsoleteV1(TermNode_ObsoleteV1 TermNode) : base(TermNode)
 {
     Init();
 }