public override void RemoveParent(TermNode_ObsoleteV1 Parent) { if (!(Parent is TermNodeWithGuid_ObsoleteV1)) { throw new NotSupportedException(); } Parents.Remove((Parent as TermNodeWithGuid_ObsoleteV1).GUID); }
public virtual bool Equals(TermNode_ObsoleteV1 tn) { if (tn == null) { return(false); } return(GetContent().Equals(tn.GetContent())); }
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)); } }
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); }
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)); }
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); //} }
public virtual void RemoveParent(TermNode_ObsoleteV1 Parent) { throw new NotSupportedException(); }
public virtual bool OverlapsWithoutInclusion(TermNode_ObsoleteV1 AnotherTermNode) { return(GetSubject().OverlapsWithoutInclusion(AnotherTermNode.GetSubject())); }
public virtual bool Overlaps(TermNode_ObsoleteV1 AnotherTermNode) { return(GetSubject().Overlaps(AnotherTermNode.GetSubject())); }
public virtual bool IsChildOf(TermNode_ObsoleteV1 AnotherTermNode) { return(GetSubject().IsSubsetOf(AnotherTermNode.GetSubject())); }
public TermNode_ObsoleteV1(TermNode_ObsoleteV1 TermNode) : this(TermNode.GetContent()) { IsItMultiBuildingPerRisk = TermNode.IsMultiBuildingPerRisk(); }
public TermNodeWithGuid_ObsoleteV1(TermNode_ObsoleteV1 TermNode) : base(TermNode) { Init(); }