|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMapper.Grammar
Mapper.ContextFreeGrammar
public abstract class ContextFreeGrammar
Abstract ContextFreeGrammar
Method Summary | |
---|---|
Rule |
findRule(java.lang.String s)
Find a rule given a string. |
Rule |
findRule(Symbol s)
Find a rule given a symbol. |
abstract boolean |
genotype2Phenotype()
Maps from a input(genotype) to an output (phenotype) |
java.util.ArrayList |
getNonTerminalRules()
This method returns a vector of the rules with exclusively terminal productions |
java.util.ArrayList |
getTerminalRules()
This method returns a vector of the rules with exclusively terminal productions |
abstract int |
getUsedCodons()
|
abstract int |
getUsedWraps()
|
abstract boolean |
phenotype2Genotype()
Not yet implemented! |
boolean |
readBNFFile(java.lang.String file_name)
Read a BNF file to a string and call readBNFString to parse the grammar string. |
Methods inherited from class Mapper.Grammar |
---|
clear, getDerivationString, getProductionCount, getRules, getStartRule, getStartSymbol, getTerminals, getTerminalStrings, setRules, setStartSymbol, setStartSymbol |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Mapper.Mapper |
---|
getGenotype, getPhenotype, setGenotype, setPhenotype |
Method Detail |
---|
public abstract boolean genotype2Phenotype()
Mapper
genotype2Phenotype
in interface Mapper
genotype2Phenotype
in class Grammar
public abstract boolean phenotype2Genotype()
Mapper
phenotype2Genotype
in interface Mapper
phenotype2Genotype
in class Grammar
public abstract int getUsedCodons()
public abstract int getUsedWraps()
public boolean readBNFFile(java.lang.String file_name)
file_name
- name of file
public Rule findRule(Symbol s)
s
- symbol of left hand side of rule
public Rule findRule(java.lang.String s)
s
- string of left hand side of rule
public java.util.ArrayList getTerminalRules()
public java.util.ArrayList getNonTerminalRules()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |