public object Execute(object obj) { if (_env == null) { throw new ContextException("environment variable is not set"); } ICBRContext ctx = CBRContextManager.GetCBRContext(_env); if (ctx == null) { //throw NoContextException throw new ContextException("not set the context"); } ICaseReuseStrategy strategy = ctx.GetCaseReuseStrategy(); if (strategy == null) { throw new ContextException( "context CaseReuseStrategy is not set"); } return(strategy.Reuse((ArrayList)obj)); }
public void SetCaseReuseStrategy(ICaseReuseStrategy strategy) { _caseReuseStrategy = strategy; }