Class AbstractEAFTheory<S extends Support>

Type Parameters:
S - the support link (ESupport or PSupport)
All Implemented Interfaces:
Iterable<BArgument>, Collection<BArgument>, BeliefBase, GeneralGraph<BArgument>, Graph<BArgument>
Direct Known Subclasses:
EAFTheory, PEAFTheory

public abstract class AbstractEAFTheory<S extends Support> extends AbstractBipolarFramework
A base class for implementing PEAFTheory and EAFTheory.
Author:
Taha Dogan Gunes
  • Constructor Details

    • AbstractEAFTheory

      public AbstractEAFTheory()
  • Method Details

    • addArgument

      public void addArgument(BArgument argument)
      Add an argument
      Parameters:
      argument - an EArgument objects
    • addAttack

      public boolean addAttack(EAttack attack)
      Add an attack
      Parameters:
      attack - an EAttack object
      Returns:
      true if successful
    • addSupport

      public boolean addSupport(S support)
      Add a support
      Parameters:
      support - a T-Support object
      Returns:
      true if successful
    • addAttack

      public void addAttack(BipolarEntity froms, BipolarEntity tos)
      Add an attack with sets
      Parameters:
      froms - arguments that originates the attack
      tos - arguments that receive the attack
    • addAttack

      public void addAttack(Set<BArgument> froms, Set<BArgument> tos)
      Add an attack with sets
      Parameters:
      froms - arguments that originates the attack
      tos - arguments that receive the attack
    • addArgument

      public BArgument addArgument(int identifier)
      Create and add a new argument with identifier
      Parameters:
      identifier - integer identifier for the argument
      Returns:
      the created argument
    • getArgumentsAsSet

      public Set<BArgument> getArgumentsAsSet()
      Get all arguments
      Returns:
      a set of arguments
    • getArguments

      public ArrayList<BArgument> getArguments()
      Returns:
      a list of arguments
    • getSupports

      public Set<Support> getSupports()
      Get all supports
      Specified by:
      getSupports in class AbstractBipolarFramework
      Returns:
      a list of supports
    • getSupports

      public Set<Support> getSupports(BArgument arg)
      Get all supports invloving argument arg
      Parameters:
      arg - an argument
      Returns:
      a list of supports
    • getAttacks

      public Set<Attack> getAttacks()
      Get all attacks
      Specified by:
      getAttacks in class AbstractBipolarFramework
      Returns:
      a list of attacks
    • powerSet

      public <T> Set<Set<T>> powerSet(Set<T> originalSet)
    • toString

      public String toString()
      Pretty print of the EAFTheory
      Specified by:
      toString in interface BeliefBase
      Specified by:
      toString in interface Graph<S extends Support>
      Overrides:
      toString in class BeliefSet<BArgument,DungSignature>
    • getNumberOfArguments

      public int getNumberOfArguments()
      Get all the number of arguments
      Returns:
      the number of arguments
    • getEta

      public BArgument getEta()
      Get the eta (the root) argument
      Returns:
      eta argument