public abstract class AbstractBalancingVisitor extends AbstractGrammarEntityVisitor
marked
Modifier | Constructor and Description |
---|---|
protected |
AbstractBalancingVisitor(ParenthesisModel model) |
Modifier and Type | Method and Description |
---|---|
int |
c(AlphabetSymbol a) |
protected int |
c(List<? extends AlphabetSymbol> s)
Returns the value of the c function for the string represented as
parametger s.
|
abstract Integer |
c(NonTerminal n)
Returns the value of the c function for the nonterminal n.
|
int |
c(Terminal t) |
protected Integer |
d(List<AlphabetSymbol> string)
Calculates d for at string assuming that d is well defined and fixed for all non terminals in the string
|
int |
d(List<Terminal> list) |
abstract Integer |
d(NonTerminal d) |
int |
d(Terminal t) |
abstract void |
setC(NonTerminal n,
Integer c) |
abstract void |
setD(NonTerminal n,
Integer d)
Sets the d value for the non terminal n to d
|
protected AbstractBalancingVisitor(ParenthesisModel model)
public int c(AlphabetSymbol a)
protected int c(List<? extends AlphabetSymbol> s)
s
- public abstract Integer c(NonTerminal n)
n
- public int c(Terminal t)
protected Integer d(List<AlphabetSymbol> string)
string
- public abstract Integer d(NonTerminal d)
public int d(Terminal t)
public abstract void setC(NonTerminal n, Integer c)
public abstract void setD(NonTerminal n, Integer d)
n
- d
- Copyright © 2008-2013 Mathias Schwarz.