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

            return(GetContent().Equals(tn.GetContent()));
        }
コード例 #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));
     }
 }
コード例 #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);
 }
コード例 #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));
        }
コード例 #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);
            //}
        }
コード例 #7
0
 public virtual void RemoveParent(TermNode_ObsoleteV1 Parent)
 {
     throw new NotSupportedException();
 }
コード例 #8
0
 public virtual bool OverlapsWithoutInclusion(TermNode_ObsoleteV1 AnotherTermNode)
 {
     return(GetSubject().OverlapsWithoutInclusion(AnotherTermNode.GetSubject()));
 }
コード例 #9
0
 public virtual bool Overlaps(TermNode_ObsoleteV1 AnotherTermNode)
 {
     return(GetSubject().Overlaps(AnotherTermNode.GetSubject()));
 }
コード例 #10
0
 public virtual bool IsChildOf(TermNode_ObsoleteV1 AnotherTermNode)
 {
     return(GetSubject().IsSubsetOf(AnotherTermNode.GetSubject()));
 }
コード例 #11
0
 public TermNode_ObsoleteV1(TermNode_ObsoleteV1 TermNode) : this(TermNode.GetContent())
 {
     IsItMultiBuildingPerRisk = TermNode.IsMultiBuildingPerRisk();
 }
コード例 #12
0
 public TermNodeWithGuid_ObsoleteV1(TermNode_ObsoleteV1 TermNode) : base(TermNode)
 {
     Init();
 }