Class GeneralizedMeMachineShop
- java.lang.Object
-
- net.sf.tweety.logics.pcl.analysis.GeneralizedMeMachineShop
-
- All Implemented Interfaces:
BeliefBaseMachineShop
public class GeneralizedMeMachineShop extends java.lang.Object implements BeliefBaseMachineShop
Uses the generalized ME-model of a knowledge base to repair it, cf. [Potyka, Thimm, 2014].- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private intpParameter p for p-norm.
-
Constructor Summary
Constructors Constructor Description GeneralizedMeMachineShop(int p)Creates a new machine shop with the given norm.
-
Method Summary
Modifier and Type Method Description BeliefBaserepair(BeliefBase beliefBase)Repairs the given belief base, i.e.java.lang.StringtoString()
-
-
-
Method Detail
-
repair
public BeliefBase repair(BeliefBase beliefBase)
Description copied from interface:BeliefBaseMachineShopRepairs the given belief base, i.e. restores consistency.- Specified by:
repairin interfaceBeliefBaseMachineShop- 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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-