agg.parser
Class LayeredSimpleExcludeParser

java.lang.Object
  extended by agg.parser.AbstractParser
      extended by agg.parser.ExcludeParser
          extended by agg.parser.LayeredExcludeParser
              extended by 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(...)

Field Summary
 
Fields inherited from class agg.parser.LayeredExcludeParser
layer
 
Fields inherited from class agg.parser.ExcludeParser
correct, stack, stop
 
Fields inherited from class agg.parser.AbstractParser
delay, grammar, graph, listener, pairContainer, stopGraph
 
Constructor Summary
LayeredSimpleExcludeParser(GraGra grammar, Graph hostGraph, Graph stopGraph, LayeredExcludePairContainer excludeContainer, LayerFunction layer)
          Deprecated.  
LayeredSimpleExcludeParser(GraGra grammar, Graph hostGraph, Graph stopGraph, LayeredExcludePairContainer excludeContainer, RuleLayer layer)
          Creates a new parser.
 
Method Summary
 boolean parse()
          Starts the parser.
 
Methods inherited from class agg.parser.ExcludeParser
finalize, findInclusions, isMatchCritic, makeLightContainer, run, stop, wasStopped
 
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
 

Constructor Detail

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.
Method Detail

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.