Class DefaultDungTheoryGenerator

    • Method Summary

      Modifier and Type Method Description
      private DungTheory generateTreeShape​(Argument arg)
      Generates a Dung theory with a tree shape where the given argument is the root.
      boolean hasNext()  
      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.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Field Detail

      • random

        private java.util.Random random
        Random numbers generator.
    • Constructor Detail

      • DefaultDungTheoryGenerator

        public DefaultDungTheoryGenerator​(DungTheoryGenerationParameters params)
        Creates a new generator with the given parameters.
        Parameters:
        params - some generation parameters.
    • Method Detail

      • next

        public DungTheory next​(Argument arg)
        Description copied from interface: DungTheoryGenerator
        Generates a new Dung theory where the given argument is enforced to be in the grounded extension
        Specified by:
        next in interface DungTheoryGenerator
        Parameters:
        arg - an argument that is enforced to be in the grounded extension of the generated theory.
        Returns:
        a Dung theory,
      • setSeed

        public void setSeed​(long seed)
        Description copied from interface: DungTheoryGenerator
        Set the seed for the generation. Every two runs of generations with the same seed are ensured to be identical.
        Specified by:
        setSeed in interface DungTheoryGenerator
        Parameters:
        seed - some seed.
      • generateTreeShape

        private DungTheory generateTreeShape​(Argument arg)
        Generates a Dung theory with a tree shape where the given argument is the root.
        Parameters:
        arg - some argument.
        Returns:
        a Dung theory.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object