|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.util.grammar.Rule
public class Rule
A context-free grammar rule.
ContextFreeGrammar,
Production,
Symbol| Constructor Summary | |
|---|---|
Rule(Symbol symbol)
Constructs a rule with the specified symbol. |
|
| Method Summary | |
|---|---|
void |
add(Production production)
Adds a production to this rule. |
Production |
get(int index)
Returns the production at the specified index. |
Symbol |
getSymbol()
Returns the non-terminal symbol of this rule. |
void |
remove(Production production)
Removes a production from this rule. |
int |
size()
Returns the number of productions contained in this rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Rule(Symbol symbol)
add(Production) method.
symbol - the non-terminal symbol of this rule| Method Detail |
|---|
public Symbol getSymbol()
public void add(Production production)
production - the production to be addedpublic void remove(Production production)
production - the production to be removedpublic int size()
public Production get(int index)
index - the index of the production to be returned
IndexOutOfBoundsException - if index is out of range ((index
< 0) || (index >= size())
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||