public class IsoSafeEnumeratingDungTheoryGenerator extends java.lang.Object implements DungTheoryGenerator
| Modifier and Type | Field and Description |
|---|---|
private int |
cntArguments
The number of arguments in the theory that is to be generated next.
|
private int |
cntAttacks
The number of attacks in the theory that is to be generated next.
|
private java.util.Collection<DungTheory> |
currentTheories
The set of all Dung theories with cntArguments arguments and cntAttacks attacks.
|
private java.util.Iterator<DungTheory> |
iterator
The iterator on currentTheories.
|
| Constructor and Description |
|---|
IsoSafeEnumeratingDungTheoryGenerator()
Creates a new enumerating Dung theory generator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
private boolean |
isIsomorphic(DungTheory theory,
java.util.Collection<DungTheory> theories)
Checks whether the first theory is isomorphic to some theory
in "theories".
|
DungTheory |
next() |
DungTheory |
next(Argument arg)
Generates a new Dung theory where the given argument
is enforced to be in the grounded extension
|
void |
setSeed(long seed)
Set the seed for the generation.
|
private int cntArguments
private int cntAttacks
private java.util.Collection<DungTheory> currentTheories
private java.util.Iterator<DungTheory> iterator
public IsoSafeEnumeratingDungTheoryGenerator()
private boolean isIsomorphic(DungTheory theory, java.util.Collection<DungTheory> theories)
theory - a Dung theorytheories - a collection of Dung theories.public DungTheory next()
next in interface java.util.Iterator<DungTheory>next in interface DungTheoryGeneratornext in interface BeliefSetIterator<Argument,DungTheory>public DungTheory next(Argument arg)
DungTheoryGeneratornext in interface DungTheoryGeneratorarg - an argument that is enforced
to be in the grounded extension of the generated theory.public void setSeed(long seed)
DungTheoryGeneratorsetSeed in interface DungTheoryGeneratorseed - some seed.public boolean hasNext()
hasNext in interface java.util.Iterator<DungTheory>hasNext in interface DungTheoryGeneratorhasNext in interface BeliefSetIterator<Argument,DungTheory>