示例#1
0
    public ArrayList RetrievalCases_partial(Case problem, ArrayList testingcases)
    {
        if (_env == null)
        {
            throw new ContextException("environment variable is not set");
        }
        ICBRContext ctx = CBRContextManager.GetCBRContext(_env);

        if (ctx == null)
        {
            throw new ContextException("context is not set");
        }

        IMethod m = ctx.GetCaseRetrievalMethod();

        if (m == null)
        {
            throw new ContextException(
                      "context's GetCaseRetrievalMethod is not set");
        }
        ctx.SetMatchedCase((ArrayList)m.Execute_partial(problem, testingcases));

        return((ArrayList)m.Execute_partial(problem, testingcases));
    }