public class IndexedCanonicalizationHelper extends Object implements CanonicalizationHelper
| Modifier and Type | Field and Description |
|---|---|
EmbeddingCheckerProvider |
checkerProvider |
IndexCanonizationStrategy |
indexCanonizationStrategy |
EmbeddingIndexChecker |
indexChecker |
| Constructor and Description |
|---|
IndexedCanonicalizationHelper(IndexCanonizationStrategy indexCanonicalizer,
EmbeddingCheckerProvider checkerProvider,
EmbeddingIndexChecker indexChecker) |
| Modifier and Type | Method and Description |
|---|---|
HeapConfiguration |
prepareHeapForCanonicalization(HeapConfiguration toAbstract)
For indexed HeapConfigurations this performs index canonicalization.
|
HeapConfiguration |
tryReplaceMatching(HeapConfiguration toAbstract,
CollapsedHeapConfiguration rhs,
Nonterminal lhs)
If an embedding of rhs in toAbstract can be found it computes it
and replaces it with a nonterminal edge labeled with lhs.
|
HeapConfiguration |
tryReplaceMatching(HeapConfiguration heapConfiguration,
HeapConfiguration rhs,
Nonterminal lhs)
If an embedding of rhs in toAbstract can be found it computes it
and replaces it with a nonterminal edge labeled with lhs.
|
public final IndexCanonizationStrategy indexCanonizationStrategy
public final EmbeddingCheckerProvider checkerProvider
public final EmbeddingIndexChecker indexChecker
public IndexedCanonicalizationHelper(IndexCanonizationStrategy indexCanonicalizer, EmbeddingCheckerProvider checkerProvider, EmbeddingIndexChecker indexChecker)
indexCanonicalizer - canonicalises the indices before the graph is canonicalised.
Also responsible to canonicalise them only when admissiblecheckerProvider - generates a EmbeddingChecker for given graph and pattern. Responsible
to generate the correct one for given communication and semantics.indexChecker - responsible to match the indices of embeddings provided my the embeddingCheckerpublic HeapConfiguration tryReplaceMatching(HeapConfiguration heapConfiguration, HeapConfiguration rhs, Nonterminal lhs)
CanonicalizationHelpertryReplaceMatching in interface CanonicalizationHelperheapConfiguration - the target graphrhs - the pattern graphlhs - the label of the replacing nonterminal edgepublic HeapConfiguration prepareHeapForCanonicalization(HeapConfiguration toAbstract)
prepareHeapForCanonicalization in interface CanonicalizationHelpertoAbstract - the graph which shall be abstractedpublic HeapConfiguration tryReplaceMatching(HeapConfiguration toAbstract, CollapsedHeapConfiguration rhs, Nonterminal lhs)
CanonicalizationHelpertryReplaceMatching in interface CanonicalizationHelpertoAbstract - the target graphrhs - the pattern graphlhs - the label of the replacing nonterminal edgeCopyright © 2019. All rights reserved.