Class Configure
java.lang.Object
org.variantsync.diffdetective.variation.tree.view.relevance.Configure
- All Implemented Interfaces:
Predicate<VariationNode<?,
,?>> Relevance
Relevance predicate that generates (partial) variants from variation trees.
This relevance predicate is the implementation of Equation 5 in our SPLC'23 paper.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConfigure
(org.prop4j.Node configuration) Create a configuration relevance from a propositional formula that encodes selections and deselections of variables.Configure
(FixTrueFalse.Formula configuration) Same asConfigure(Node)
but with a formula that is witnessed to not contain true or false constants not at the root. -
Method Summary
Modifier and TypeMethodDescription<TreeNode extends VariationNode<TreeNode,
?>>
voidcomputeViewNodes
(TreeNode v, Consumer<TreeNode> markRelevant) Delegates toRelevance.computeViewNodesCheckAll(Relevance, VariationNode, Consumer)
with this relevance as the first parameter.boolean
test
(VariationNode<?, ?> v) toString()
-
Field Details
-
configuration
-
-
Constructor Details
-
Configure
Same asConfigure(Node)
but with a formula that is witnessed to not contain true or false constants not at the root. Workaround for FeatureIDE bug FeatureIDE Issue 1333. -
Configure
public Configure(org.prop4j.Node configuration) Create a configuration relevance from a propositional formula that encodes selections and deselections of variables. Typically, the given formula should be in conjunctive normal form. The given configuration may be partial or complete.- Parameters:
configuration
- A propositional formula that denotes selections and deselections.
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<VariationNode<?,
?>>
-
computeViewNodes
public <TreeNode extends VariationNode<TreeNode,?>> void computeViewNodes(TreeNode v, Consumer<TreeNode> markRelevant) Description copied from interface:Relevance
Delegates toRelevance.computeViewNodesCheckAll(Relevance, VariationNode, Consumer)
with this relevance as the first parameter.- Specified by:
computeViewNodes
in interfaceRelevance
-
parametersToString
- Specified by:
parametersToString
in interfaceRelevance
- Returns:
- The parameters set for this particular relevance predicate, as a comma-separated string (without braces).
-
getFunctionName
- Specified by:
getFunctionName
in interfaceRelevance
- Returns:
- The name of this relevance predicate's type.
-
toString
-