Uses of Interface
org.variantsync.diffdetective.variation.tree.view.relevance.Relevance
Package
Description
-
Uses of Relevance in org.variantsync.diffdetective.experiments.views
Modifier and TypeMethodDescriptionViewAnalysis.generateRandomRelevances
(VariationDiff<DiffLinesLabel> d) Generates random relevance predicates for creating random views on the given variation diff d, as explained in Section 6.1 in our paper.Modifier and TypeMethodDescriptionprivate void
ViewAnalysis.runRelevanceExperiment
(Analysis analysis, VariationDiff<DiffLinesLabel> d, Relevance rho) Benchmark for view generation on the given variation diff with the given relevance.Modifier and TypeMethodDescriptionprivate static <RelevanceParams,
RelevanceCandidates extends Collection<? extends RelevanceParams>>
voidViewAnalysis.addAll
(RelevanceCandidates source, Function<? super RelevanceCandidates, ? extends Collection<? extends Relevance>> prepare, Collection<Relevance> target) This is a convenience method for creating relevance predicates from their parameters.private static <RelevanceParams,
RelevanceCandidates extends Collection<? extends RelevanceParams>>
voidViewAnalysis.addAll
(RelevanceCandidates source, Function<? super RelevanceCandidates, ? extends Collection<? extends Relevance>> prepare, Collection<Relevance> target) This is a convenience method for creating relevance predicates from their parameters.private static <RelevanceParams,
RelevanceCandidates extends Collection<RelevanceParams>>
voidViewAnalysis.addRandomRelevance
(RelevanceCandidates source, Function<RelevanceCandidates, Relevance> pick, Collection<Relevance> target) This is a convenience method for creating a random relevance predicate from a collection of potential parameterisations.private static <RelevanceParams,
RelevanceCandidates extends Collection<RelevanceParams>>
voidViewAnalysis.addRandomRelevance
(RelevanceCandidates source, Function<RelevanceCandidates, Relevance> pick, Collection<Relevance> target) This is a convenience method for creating a random relevance predicate from a collection of potential parameterisations. -
Uses of Relevance in org.variantsync.diffdetective.experiments.views.result
Modifier and TypeFieldDescriptionprivate final Relevance
ViewEvaluation.relevance
The field for therelevance
record component.Modifier and TypeMethodDescriptionViewEvaluation.relevance()
Returns the value of therelevance
record component.ModifierConstructorDescriptionViewEvaluation
(String commit, String file, Relevance relevance, long msNaive, long msOptimized, ViewEvaluation.DiffStatistics diffStatistics, ViewEvaluation.DiffStatistics viewStatistics) Creates an instance of aViewEvaluation
record class. -
Uses of Relevance in org.variantsync.diffdetective.variation.diff.view
Modifier and TypeFieldDescriptionprivate final Relevance
ViewSource.relevance
The field for therelevance
record component.Modifier and TypeMethodDescriptionViewSource.relevance()
Returns the value of therelevance
record component.Modifier and TypeMethodDescriptionstatic <L extends Label>
VariationDiff<L>DiffView.badgood
(VariationDiff<L> d, Relevance rho) An alternative algorithm for generating of views on variation diffs based on (1) removing cycles in the variation diff, (2) interpreting the resulting acyclic variation diff as a colored variation tree, (3) creating a view on the variation tree, (4) and finally reintroducing the removed cycles.static <L extends Label>
BiPredicate<Time,Projection<L>> DiffView.computeWhenNodesAreRelevant
(VariationDiff<L> d, Relevance rho) Translates a relevance predicate for nodes on variation trees to a relevance predicate on nodes in a variation diff.static <L extends Label>
VariationDiff<DiffLinesLabel>DiffView.naive
(VariationDiff<L> d, Relevance rho) This function generates a view on the given variation diff by generating views on the underlying variation trees, and then differencing these tree views.private static <L extends Label>
VariationDiff<DiffLinesLabel>DiffView.naive
(VariationDiff<L> d, Relevance rho, String[] projectionViewText) This method is not intended to be used directly and exists for optimization purposes only.static <L extends Label>
VariationDiff<DiffLinesLabel>DiffView.naive
(VariationDiff<L> d, Relevance rho, BiPredicate<Time, Projection<L>> inView) This method is not intended to be used directly and exists for optimization purposes only.static <L extends Label>
VariationDiff<L>DiffView.optimized
(VariationDiff<L> d, Relevance rho) This function generates a view on the given variation diff by determining the times of relevance for each node.static <L extends Label>
VariationDiff<L>DiffView.optimized
(VariationDiff<L> d, Relevance rho, BiPredicate<Time, Projection<L>> inView) This method is not intended to be used directly and exists for optimization purposes only.ModifierConstructorDescriptionViewSource
(VariationDiff<L> diff, Relevance relevance) Creates an instance of aViewSource
record class. -
Uses of Relevance in org.variantsync.diffdetective.variation.tree.view
Modifier and TypeMethodDescriptionstatic VariationTree<?>
TreeView.tree
(VariationTree<?> t, Relevance r) Creates a view on the given variation tree as described by the given relevance predicate.static <L extends Label>
voidTreeView.treeInline
(VariationTree<L> t, Relevance r) Mutates a variation tree inplace to a view on itself. -
Uses of Relevance in org.variantsync.diffdetective.variation.tree.view.relevance
Modifier and TypeClassDescriptionclass
Relevance predicate that generates (partial) variants from variation trees.final record
Relevance predicate that searches for implementation artifacts in a variation tree.final record
Relevance predicate that traces a certain feature syntactically within a variation tree.final record
Relevance predicate that traces a certain feature semantically within a variation tree.Modifier and TypeMethodDescriptionstatic <TreeNode extends VariationNode<TreeNode,
?>>
voidRelevance.computeViewNodesCheckAll
(Relevance rho, TreeNode v, Consumer<TreeNode> markRelevant) Marks all nodes that should be contained within a view on the given tree.static String
Default implementation forObject.toString()
that can be reused by implementing classes.