agg.parser
Class LayeredSimpleExcludeParser
java.lang.Object
agg.parser.AbstractParser
agg.parser.ExcludeParser
agg.parser.LayeredExcludeParser
agg.parser.LayeredSimpleExcludeParser
- All Implemented Interfaces:
- Parser, java.lang.Runnable
public class LayeredSimpleExcludeParser
- extends LayeredExcludeParser
This class provides a parser which needs critical pair analysis. This
critical pair must be LayeredExcludePair
. So objects has to
be instanciated with LayeredExcludePairContainer
.
Additionally there is a layer function for more optimization.
- See Also:
createParser(...)
Method Summary |
boolean |
parse()
Starts the parser. |
Methods inherited from class agg.parser.AbstractParser |
addParserEventListener, applyRule, findMatch, findMatch, fireParserEvent, getGraph, getHostGraph, getStopGraph, parseString, printGraph, printImageGraph, removeParserEventListener, setCriticalPairs, setDelayAfterApplyRule, setGrammar, setHostGraph, setStopGraph |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayeredSimpleExcludeParser
public LayeredSimpleExcludeParser(GraGra grammar,
Graph hostGraph,
Graph stopGraph,
LayeredExcludePairContainer excludeContainer,
LayerFunction layer)
- Deprecated.
- Creates a new parser.
- Parameters:
grammar
- The graph grammar.hostGraph
- The host graph.stopGraph
- The stop graph.excludeContainer
- The critical pairs.layer
- The layer function.
LayeredSimpleExcludeParser
public LayeredSimpleExcludeParser(GraGra grammar,
Graph hostGraph,
Graph stopGraph,
LayeredExcludePairContainer excludeContainer,
RuleLayer layer)
- Creates a new parser.
- Parameters:
grammar
- The graph grammar.hostGraph
- The host graph.stopGraph
- The stop graph.excludeContainer
- The critical pairs.layer
- The rule layer.
parse
public boolean parse()
- Starts the parser.
- Specified by:
parse
in interface Parser
- Overrides:
parse
in class LayeredExcludeParser
- Returns:
- true if the graph can be parsed.