Class GeneralizedMeMachineShop

java.lang.Object
org.tweetyproject.logics.pcl.analysis.GeneralizedMeMachineShop
All Implemented Interfaces:
BeliefBaseMachineShop

public class GeneralizedMeMachineShop extends Object implements BeliefBaseMachineShop
Uses the generalized ME-model of a knowledge base to repair it, cf. [Potyka, Thimm, 2014].
Author:
Matthias Thimm
  • Constructor Details

    • GeneralizedMeMachineShop

      public GeneralizedMeMachineShop(int p)
      Creates a new machine shop with the given norm.
      Parameters:
      p - the p for the p-norm.
  • Method Details

    • repair

      public BeliefBase repair(BeliefBase beliefBase)
      Description copied from interface: BeliefBaseMachineShop
      Repairs the given belief base, i.e. restores consistency.
      Specified by:
      repair in interface BeliefBaseMachineShop
      Parameters:
      beliefBase - a possibly inconsistent belief base.
      Returns:
      a consistent belief base that is as close as possible to the given belief base. NOTE: if the given belief base is consistent this method is expected to return it unmodified.
    • toString

      public String toString()
      Overrides:
      toString in class Object