|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.parser.ParserFactory
public class ParserFactory
This factory produces diffrent objects. With the help of some option objects the specific object is creates. E.g. if a parser is desired the option distinguish which parser is created.
Method Summary | |
---|---|
static PairContainer |
createEmptyCriticalPairs(GraGra grammar,
CriticalPairOption option)
Creates a empty container for critical pairs. |
static PairContainer |
createEmptyCriticalPairs(GraGra grammar,
int algorithm,
boolean layered)
|
static PairContainer |
createEmptyCriticalPairs(GraGra grammar,
LayerFunction layerFunc,
CriticalPairOption option)
Deprecated. |
static LayerFunction |
createLayerFunction(GraGra grammar,
LayerOption option)
Deprecated. |
static Parser |
createParser(GraGra grammar,
Graph hostGraph,
Graph stopGraph,
PairContainer pairs,
ParserOption option,
LayerFunction layer)
Deprecated. |
static Parser |
createParser(GraGra grammar,
Graph hostGraph,
Graph stopGraph,
PairContainer pairs,
ParserOption option,
RuleLayer layer)
Here is a new parser created. |
static PairContainer |
generateCriticalPairs(GraGra grammar,
LayerFunction layer,
CriticalPairOption option)
Deprecated. |
static java.lang.Thread |
generateCriticalPairs(PairContainer pc)
Generates critical pairs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Parser createParser(GraGra grammar, Graph hostGraph, Graph stopGraph, PairContainer pairs, ParserOption option, LayerFunction layer)
null
. Anyway only the critical
pairs can be null
if they are not needed for the
configured parser. This can happen e.g. for parser without optimization.
If one of the parameters is null
null
is
returned.
grammar
- The graph grammar with all the rules.hostGraph
- The host graph to work on.stopGraph
- The stop graph stops the parser.pairs
- The critical pairs for optimization.option
- The option to configure the parser.layer
- The layer function.
generateCriticalPairs(agg.parser.PairContainer)
public static Parser createParser(GraGra grammar, Graph hostGraph, Graph stopGraph, PairContainer pairs, ParserOption option, RuleLayer layer)
null
. Anyway only the critical
pairs can be null
if they are not needed for the
configured parser. This can happen e.g. for parser without optimization.
If one of the parameters is null
null
is
returned.
grammar
- The graph grammar with all the rules.hostGraph
- The host graph to work on.stopGraph
- The stop graph stops the parser.pairs
- The critical pairs for optimization.option
- The option to configure the parser.layer
- The layer function.
generateCriticalPairs(agg.parser.PairContainer)
public static PairContainer createEmptyCriticalPairs(GraGra grammar, LayerFunction layerFunc, CriticalPairOption option)
grammar
- The graph grammar to generate the pairs for. This must not be
null
or null
is returned.layerFunc
- The layer function. This can only be null
if
the critical pairs do not need them. (null
can
be returned.)option
- The option to configure the critical pairs. This must not be
null
or null
is returned.
public static PairContainer createEmptyCriticalPairs(GraGra grammar, CriticalPairOption option)
grammar
- The graph grammar to generate the pairs for. This must not be
null
or null
is returned.option
- The option to configure the critical pairs. This must not be
null
or null
is returned.
public static PairContainer createEmptyCriticalPairs(GraGra grammar, int algorithm, boolean layered)
public static java.lang.Thread generateCriticalPairs(PairContainer pc)
pc
- The pair container to be filled.public static PairContainer generateCriticalPairs(GraGra grammar, LayerFunction layer, CriticalPairOption option)
grammar
- The graph grammar to generate the pairs for. This must not be
null
or null
is returned.layer
- The layer function. This can only be null
if
the critical pairs do not need them.option
- The option to configure the critical pairs. This must not be
null
.
public static LayerFunction createLayerFunction(GraGra grammar, LayerOption option)
grammar
- The graph grammar to generate the layer function for. This
must not be null
or null
is
returned.option
- The option to configure the layer function. This must not be
null
or null
is returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |