java.lang.Object
org.tweetyproject.arg.dung.learning.syntax.Entity

public class Entity extends Object
Class representing an entity with an underlying hidden argumentation framework. An agent can ask the entity for labelings
Author:
Lars Bengel
  • Constructor Details

    • Entity

      public Entity(DungTheory theory)
      initialize the entity with the given AF
      Parameters:
      theory - some argumentation framework
    • Entity

      public Entity(DungTheory theory, List<Input> inputs)
      Parameters:
      theory - a DUng theory
      inputs - inputs
  • Method Details

    • getLabeling

      public Input getLabeling(Semantics sem)
      Ask for a random labeling w.r.t. the given semantics The labeling is also removed from the internal storage so it can ot be given out again
      Parameters:
      sem - a semantics
      Returns:
      a labeling
    • getAnyLabeling

      public Input getAnyLabeling()
      Returns:
      any labeling
    • getAllLabelings

      public Collection<Input> getAllLabelings(Semantics sem)
      shortcut for getting all labelings wrt a semantics
      Parameters:
      sem - a semantics
      Returns:
      all labelings of the hidden AF wrt. the given semantics
    • verifyFramework

      public boolean verifyFramework(DungTheory theory, Collection<Input> inputs)
      verify if the given theory is equivalent to the hidden framework w.r.t. the given labelings very inefficiently implemented right now
      Parameters:
      theory - a dung theory
      inputs - a set of labelings
      Returns:
      "true" if both frameworks are equivalent
    • getArguments

      public Collection<Argument> getArguments()
      get the set of arguments of the hidden AF
      Returns:
      the set of arguments
    • getHiddenAF

      public DungTheory getHiddenAF()
      return the hidden AF should not be used normally
      Returns:
      the hidden AF