//Look for a match between some start be-tiep to a corresponding finish be-tiep public bool checkStFinMatch(List <BETiep> sts, BETiep fin) { foreach (BETiep st in sts) { if (checkStFinMatch(st, fin)) { return(true); } } return(false); }
//Look for a match between a start be-tiep to a corresponding finish tiep projector public bool checkStFinMatch(BETiep st, TiepProjector fin) { List <string> ents = new List <string>(); foreach (KeyValuePair <int, int> sp_entry in fin.co_starts) { if (st.indexes.ContainsKey(sp_entry.Key) && checkStFinMatch(st.indexes[sp_entry.Key], sp_entry.Value)) { ents.Add(trans_db[sp_entry.Key].Item1.entity); } } bool closed = sup == ents.Count; return(closed); }
//Look for a match between a start be-tiep to a corresponding finish be-tiep public bool checkStFinMatch(BETiep st, BETiep fin) { List <string> ents = new List <string>(); foreach (KeyValuePair <int, List <STI> > entry in fin.indexes) { if (st.indexes.ContainsKey(entry.Key) && checkStFinMatch(st.indexes[entry.Key], entry.Value)) { ents.Add(trans_db[entry.Key].Item1.entity); } } bool closed = sup == ents.Count; return(closed); }