Consistency Checker

v1.0

groupID
at.tugraz.ist.ase.hiconfit
artifactID
ca-cdr

Besides consistency based algorithms, ca-cdr provides a consistency checker class (ChocoConsistencyChecker) supporting to check the consistency of sets of constraints or sets of test cases.

TBD


Table of Contents

  1. What ca-cdr provides
  2. How-tos
    1. Use the two last isConsistent functions

What ca-cdr provides

ChocoConsistencyChecker provides a variant of isConsistent functions with different parameters. In the current version 1.0, the class provides five isConsistent functions as the following:

  1. isConsistent(Collection C) – checks the consistency of set of constraints
  2. isConsistent(Collection C, ITestCase testcase) – checks the consistency of a test case with the background knowledge (a set of constraints).
  3. Set isConsistent(Collection C, Collection TC, boolean onlyOne) – checks the consistency of a set of test cases with the background knowledge (a set of constraints). The function returns violated test cases. If onlyOne=true, the function returns the first violated test case.
  4. isConsistent(ITestCase testcase, ITestCase neg_testcase) – checks the consistency between two test cases (testcase /\ ¬neg_testcase) to identify a redundant test case. If the output is false (inconsistent), then neg_testcase is a redundant test case. This function is used in the WipeOutR_T algorithm.
  5. isConsistent(Collection C, Constraint cstr) – checks the consistency of (C - {cstr} ∪ {¬cstr}) to identify the redundant constraints. If the output is false (inconsistent), then cstr is a redundant constraint. The WipeOutR_FM algorithm uses this function.

How-tos

Use the two last isConsistent functions

You can inherit the ChocoConsistencyChecker to add your new isConsistent function or ask me to help you. Example – how to use the two last isConsistent functions: - two algorithms WipeOutR_FM and WipeOutR_T