public bool IsProperSubsetTo(__Subject subject) { bool bIsProperSubset = false; if (this.IsSubsetTo(subject)) { if (subject.IsSubsetTo(this)) { bIsProperSubset = false; } else { bIsProperSubset = true; } } else { bIsProperSubset = false; } return(bIsProperSubset); }
//TODO public virtual CoverNode GetCoverNodeBySubject(__Subject subject) { InitCheck(); string extnId = string.Format("{0}-{1}", this.m_extnId, subject.ToShortString()); int intId = this.m_trCoverNode.GetNodeIntIdByExtnId(extnId); CoverNode cn; if (intId == -1) { cn = new CoverNode(); cn.Subject = subject; cn.ExtnId = extnId; } else { cn = this.m_trCoverNode.GetNodeByIntId(intId); } return(cn); }
public bool Overlaps(__Subject subject) { return(this.m_sched.IsSubsetTo(subject.Schedule) && this.SetExpType.Overlaps(subject.SetExpType) && this.SetCauseOfLoss.Overlaps(subject.SetCauseOfLoss)); }