public PartialMatch(Person person, IMatcherFramework framework, IModel model) : base(framework) { this.person = person; this.State = PartialMatchState.ReadyToStart; this.model = model; }
public PartialMatchBase(IMatcherFramework framework) { this.framework = framework; this.cts = new CancellationTokenSource(); this.pattern = PatternFactory.CreateUnmatched(); this.matcherFuncs = new List <MatcherFunc> { TryMatchGroupLeader, TryMatchCommunityScore, TryMatchActiveMemebership, TryMatchActiveMembershipForSemesterValuation, }; }
public RemotePartialMatch(Guid sessionId, INode node, Pattern pattern, IMatcherFramework framework) : base(framework) { this.sessionId = sessionId; this.node = node; this.pattern = pattern; if (string.IsNullOrEmpty(pattern.CurrentPatternNodeName)) { throw new InvalidOperationException("pattern.CurrentPatternNodeName cannot be empty"); } matcherFuncs = new Dictionary <string, MatcherFunc> { { PatternNodes.GroupLeader, TryMatchGroupLeader }, { PatternNodes.CommunityScore, TryMatchCommunityScore }, { PatternNodes.ActiveMembership1, TryMatchActiveMembershipForSemesterValuation }, { PatternNodes.Group1, TryMatchGroupForSemesterValuation }, { PatternNodes.SemesterValuation, TryMatchSemesterValuation }, { PatternNodes.SemesterValuationNext, TryMatchNextSemesterValuation }, { PatternNodes.ActiveMembership2, TryMatchActiveMemebership }, { PatternNodes.Group2, TryMatchGroup }, }; }
public override void Initialize(IMatcherFramework framework) { base.Initialize(framework); this.framework = framework; }
public void Initialize(IMatcherFramework framework) { Console.WriteLine("Hello from local matcher!"); }
public virtual void Initialize(IMatcherFramework framework) { this.pattern = CreateUnmatchedPattern(); }
public void Initialize(IMatcherFramework framework) { this.framework = framework; }