Class PreferredCountInconsistencyMeasure<T extends DungTheory>

java.lang.Object
org.tweetyproject.arg.dung.analysis.PreferredCountInconsistencyMeasure<T>
Type Parameters:
T - the type of Dung theory
All Implemented Interfaces:
InconsistencyMeasure<T>

public class PreferredCountInconsistencyMeasure<T extends DungTheory> extends Object implements InconsistencyMeasure<T>
This class represents an inconsistency measure based on the count of preferred extensions in a Dung theory. Preferred count inconsistency measure is the count of preferred extensions of the argumentation framework minus one. It implements the InconsistencyMeasure interface.
Author:
Timothy Gillespie
  • Constructor Details

    • PreferredCountInconsistencyMeasure

      public PreferredCountInconsistencyMeasure()
  • Method Details

    • inconsistencyMeasure

      public Double inconsistencyMeasure(T argumentationFramework)
      Calculates the inconsistency measure of the given argumentation framework based on preferred extensions. Preferred count inconsistency measure is computed by determining the count of preferred extensions and subtracting one from it.
      Specified by:
      inconsistencyMeasure in interface InconsistencyMeasure<T extends DungTheory>
      Parameters:
      argumentationFramework - The argumentation framework for which to calculate the inconsistency measure.
      Returns:
      The preferred count inconsistency measure of the argumentation framework. Returns the count of preferred extensions minus one. If there are no preferred extensions, returns -1.0.