public class EmbeddingIndexChecker extends Object
For determining the matches between single indices you must provide an IndexMatcher which is also responsible for managing the index grammar. You must also provide an indexMaterializer which is able to apply materialization rules to a heapConfiguration.
This class will then take care that a consistent materialization is found for all nonterminals and will fail if this is impossible.
| Constructor and Description |
|---|
EmbeddingIndexChecker(IndexMatcher matcher,
IndexMaterializationStrategy materializer) |
| Modifier and Type | Method and Description |
|---|---|
IndexEmbeddingResult |
getIndexEmbeddingResult(HeapConfiguration toAbstract,
Matching embedding,
Nonterminal lhs)
Computes the necessary materialization and instantiation to match the nonterminals of the
embedding in toAbstract.
|
public EmbeddingIndexChecker(IndexMatcher matcher, IndexMaterializationStrategy materializer)
public IndexEmbeddingResult getIndexEmbeddingResult(HeapConfiguration toAbstract, Matching embedding, Nonterminal lhs) throws CannotMatchException
toAbstract - The "outer" graphembedding - the embedding of the pattern into the graph toAbstractlhs - the nonterminal with which the embedded pattern will be replacedCannotMatchException - if the indices of the matched endges cannot be matched.Copyright © 2019. All rights reserved.