javaDungAF.tests
Class TestDefenceSets
Object
TestDefenceSets
public class TestDefenceSets
- extends Object
A class to test
getDefenceSetsAround(String)
. It checks
that, given the argument arg, the method returns a set of argument-sets which includes -
- no strict superset of a defence-set around arg;
- no non-admissible set; and
- every defence-set around arg.
The class runs this test for all arguments in 100 AFs, each comprising 20 arguments and 20 attacks, and each
generated by getRandomDungAF(int, int, int, int, Collection<String>)
.
The class assumes the correctness of
admissibleSetsContain(Collection<String>... )
and of getAdmissibleSets()
. The former method is very simple, while the
latter can be checked with TestWithAspartix
.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
argPool
static HashSet<String> argPool
af
static DungAF af
ITERATIONS
static final int ITERATIONS
- See Also:
- Constant Field Values
MIN_ARGS
static final int MIN_ARGS
- See Also:
- Constant Field Values
MAX_ARGS
static final int MAX_ARGS
- See Also:
- Constant Field Values
MIN_ATTS
static final int MIN_ATTS
- See Also:
- Constant Field Values
MAX_ATTS
static final int MAX_ATTS
- See Also:
- Constant Field Values
TestDefenceSets
public TestDefenceSets()
main
public static void main(String[] args)
checkDefenceSets
private static void checkDefenceSets()