public class BruteForceCReasoner extends AbstractConditionalLogicReasoner
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,Conditional> |
indexToConditional
Maps the indices of the kappa vector to their corresponding
conditionals.
|
private java.util.List<java.lang.Integer[]> |
kappa
The current vectors of kappa values.
|
private int |
numConditionals
The number of conditionals in the given knowledge base.
|
private boolean |
simple
indicates whether the computed c-representation is simple.
|
Constructor and Description |
---|
BruteForceCReasoner()
Creates a new simple c-representation reasoner.
|
BruteForceCReasoner(boolean simple)
Creates a new c-representation reasoner
|
Modifier and Type | Method and Description |
---|---|
private RankingFunction |
constructRankingFunction(ClBeliefSet beliefset,
java.lang.Integer[] kappa)
Constructs a ranking function with the given kappa values [k1+,k1-,...,kn+,kn-], i.e.
|
private void |
filter(java.util.ArrayList<PropositionalFormula> list,
ClBeliefSet beliefset) |
RankingFunction |
getModel(ClBeliefSet beliefset)
Returns a single (dedicated) model of the given belief base.
|
private java.lang.Integer[] |
increment(java.lang.Integer[] kappa)
This method increments the given array by one value.
|
private boolean |
incrementStep(java.lang.Integer[] kappaRow)
This method increments the given vector (which composes of exactly
one "1" entry and zeros otherwise), e.g.
|
getModels, query
private java.util.List<java.lang.Integer[]> kappa
private int numConditionals
private java.util.Map<java.lang.Integer,Conditional> indexToConditional
private boolean simple
public BruteForceCReasoner(boolean simple)
simple
- whether the computed c-representation is simple.public BruteForceCReasoner()
beliefBase
- a knowledge base.private void filter(java.util.ArrayList<PropositionalFormula> list, ClBeliefSet beliefset)
private RankingFunction constructRankingFunction(ClBeliefSet beliefset, java.lang.Integer[] kappa)
kappa
- private java.lang.Integer[] increment(java.lang.Integer[] kappa)
kappa
- an array of integers.private boolean incrementStep(java.lang.Integer[] kappaRow)
kappaRow
- a vector of zeros and one "1"public RankingFunction getModel(ClBeliefSet beliefset)
ModelProvider
getModel
in interface ModelProvider<Conditional,ClBeliefSet,RankingFunction>
getModel
in class AbstractConditionalLogicReasoner