public class DefaultGrammarResponseApplier extends Object implements GrammarResponseApplier
DefaultGrammarResponse to a graph| Constructor and Description |
|---|
DefaultGrammarResponseApplier(GraphMaterializer graphMaterializer) |
| Modifier and Type | Method and Description |
|---|---|
Collection<HeapConfiguration> |
applyGrammarResponseTo(HeapConfiguration inputGraph,
int edgeId,
GrammarResponse grammarResponse)
Materializes the given edge in the inputGraph with each rule in the
grammarResponse yielding a collection of materialized graphs.
|
public DefaultGrammarResponseApplier(GraphMaterializer graphMaterializer)
public Collection<HeapConfiguration> applyGrammarResponseTo(HeapConfiguration inputGraph, int edgeId, GrammarResponse grammarResponse) throws WrongResponseTypeException
GrammarResponseApplierapplyGrammarResponseTo in interface GrammarResponseApplierinputGraph - the graph which will be materializededgeId - the id of the nonterminal edge which will be materializedgrammarResponse - a DefaultGrammarResponse holding all the rules
which will be appliedWrongResponseTypeException - if the grammarResponse is not instanceof
DefaultGrammarResponse.GrammarResponseApplier.applyGrammarResponseTo(de.rwth.i2.attestor.graph.heap.HeapConfiguration, int, de.rwth.i2.attestor.grammar.materialization.communication.GrammarResponse)Copyright © 2018. All rights reserved.