|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuzzydl.parser.Parser
public class Parser
Parses an input file containing a fuzzy ontology.
| Field Summary | |
|---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
ParserTokenManager |
token_source
Generated Token Manager. |
| Constructor Summary | |
|---|---|
Parser(java.io.InputStream stream)
Constructor with InputStream. |
|
Parser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
Parser(ParserTokenManager tm)
Constructor with generated Token Manager. |
|
Parser(java.io.Reader stream)
Constructor. |
|
| Method Summary | |
|---|---|
void |
checkAbstract(Concept c)
Checks whether a concept is abstract. |
void |
clearKB()
Clear the fuzzy KB. |
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
ParseException |
generateParseException()
Generate ParseException. |
KnowledgeBase |
getKB()
Gets the fuzzy KB. |
static KnowledgeBase |
getKB(java.lang.String fileName)
Creates a fuzzy KB from an external file. |
Token |
getNextToken()
Get the next Token. |
java.util.ArrayList<Query> |
getQueries()
Gets the queries. |
java.lang.String |
getString()
Gets a String from a Token. |
Token |
getToken(int index)
Get the specific Token. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
NumericalType()
Gets a fuzzyDL representation of the numerical types for the range of concrete features |
void |
ReInit(java.io.InputStream stream)
Reinitialise. |
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise. |
void |
ReInit(ParserTokenManager tm)
Reinitialise. |
void |
ReInit(java.io.Reader stream)
Reinitialise. |
void |
Start()
|
java.lang.String |
StringType()
Gets a fuzzyDL representation of the type "string" for the range of concrete features |
WeightedConcept |
WeightedConcept()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ParserTokenManager token_source
public Token token
public Token jj_nt
| Constructor Detail |
|---|
public Parser(java.io.InputStream stream)
public Parser(java.io.InputStream stream,
java.lang.String encoding)
public Parser(java.io.Reader stream)
public Parser(ParserTokenManager tm)
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws FuzzyOntologyException,
java.io.IOException,
ParseException,
TokenMgrError
FuzzyOntologyException
java.io.IOException
ParseException
TokenMgrErrorpublic KnowledgeBase getKB()
public void clearKB()
public java.util.ArrayList<Query> getQueries()
public static KnowledgeBase getKB(java.lang.String fileName)
public final void Start()
throws ParseException,
FuzzyOntologyException
ParseException
FuzzyOntologyException
public final WeightedConcept WeightedConcept()
throws ParseException,
FuzzyOntologyException
ParseException
FuzzyOntologyException
public final void checkAbstract(Concept c)
throws ParseException,
FuzzyOntologyException
ParseException
FuzzyOntologyException
public final java.lang.String getString()
throws ParseException
ParseException
public final java.lang.String StringType()
throws ParseException
ParseException
public final java.lang.String NumericalType()
throws ParseException
ParseExceptionpublic void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||