Package dev.zemco.codegame.evaluation
Interface IEvaluationStrategy
- All Known Implementing Classes:
OutputSinkSatisfiedEvaluationStrategy
public interface IEvaluationStrategy
Algorithm that evaluates if the
execution context has reached a state,
where it satisfies rules as a valid solution of a problem case.- Author:
- Erik Zemčík
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateSolutionForProblemCase(IExecutionContext executionContext, ProblemCase problemCase) Evaluates if theexecution contextis in a state that is considered a valid solution of a givenproblem case.
-
Method Details
-
evaluateSolutionForProblemCase
Evaluates if theexecution contextis in a state that is considered a valid solution of a givenproblem case.- Parameters:
executionContext- execution context to evaluateproblemCase- problem case to check against- Returns:
- true if the state of the execution context is considered a valid solution, else false
- Throws:
IllegalArgumentException- ifexecutionContextisnullor ifproblemCaseisnull
-