// MinRemMatchLen and MaxRemMatchLen are calculated on the fly during the matching process // DEZE UITEINDELIJK GEBRUIKEN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // DENK AAN CopyEx() public ListPatternElem(DownRepFactor downRepFactor, DisjunctiveSearchTerm altSearchTerms, AcrossRepFactor acrossRepFactor) : base("RANGE") // used by CopyEx { this.downRepFactor = downRepFactor; this.altSearchTerms = altSearchTerms; this.acrossRepFactor = acrossRepFactor; int n = TARGETOFFSET + (altSearchTerms == null ? 1 : altSearchTerms.Count); args = new BaseTerm [n]; args [0] = HasAcrossRepFactor ? acrossRepFactor.minLenTerm : DecimalTerm.ZERO; args [1] = HasAcrossRepFactor ? acrossRepFactor.maxLenTerm : DecimalTerm.ZERO; args [2] = HasAcrossRepFactor ? acrossRepFactor.bindVar : null; args [3] = HasAltSearchTerms ? altSearchTerms.bindVar : null; int i = TARGETOFFSET; if (altSearchTerms != null) { foreach (BaseTerm t in altSearchTerms.alternatives) { args [i++] = t; } } isNegSearch = (altSearchTerms == null) ? false : altSearchTerms.isNegSearch; }
// MinRemMatchLen and MaxRemMatchLen are calculated on the fly during the matching process // DEZE UITEINDELIJK GEBRUIKEN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // DENK AAN CopyEx() public ListPatternElem (DownRepFactor downRepFactor, DisjunctiveSearchTerm altSearchTerms, AcrossRepFactor acrossRepFactor) : base ("RANGE") // used by CopyEx { this.downRepFactor = downRepFactor; this.altSearchTerms = altSearchTerms; this.acrossRepFactor = acrossRepFactor; int n = TARGETOFFSET + (altSearchTerms == null ? 1 : altSearchTerms.Count); args = new BaseTerm [n]; args [0] = HasAcrossRepFactor ? acrossRepFactor.minLenTerm : DecimalTerm.ZERO; args [1] = HasAcrossRepFactor ? acrossRepFactor.maxLenTerm : DecimalTerm.ZERO; args [2] = HasAcrossRepFactor ? acrossRepFactor.bindVar : null; args [3] = HasAltSearchTerms ? altSearchTerms.bindVar : null; int i = TARGETOFFSET; if (altSearchTerms != null) foreach (BaseTerm t in altSearchTerms.alternatives) args [i++] = t; isNegSearch = (altSearchTerms == null) ? false : altSearchTerms.isNegSearch; }