public class Parser
extends java.lang.Object
implements fuzzydl.parser.ParserConstants
Modifier and Type | Field and Description |
---|---|
fuzzydl.parser.Token |
jj_nt
Next token.
|
fuzzydl.parser.Token |
token
Current token.
|
fuzzydl.parser.ParserTokenManager |
token_source
Generated Token Manager.
|
ALL, ALL_INSTANCE_QUERY, AND, BNP_QUERY, BOTTOM, BV, CHOQUET, CLASSICAL, COM, COMMA, COMMENT_MARK, CONSTRAINTS, CP, CRISP, CRISP_CONCEPT, CRISP_ROLE, CSB, DEFAULT, DEFINE_CONCEPT, DEFINE_FUZZY_CONCEPT, DEFINE_FUZZY_EQUIVALENCE, DEFINE_FUZZY_NUMBER, DEFINE_FUZZY_NUMBER_RANGE, DEFINE_FUZZY_SIMILARITY, DEFINE_MODIFIER, DEFINE_PRIMITIVE_CONCEPT, DEFINE_TRUTH_CONSTANT, DISJOINT, DISJOINT_UNION, DOMAIN, EOF, EOL, EQL, EQUIVALENT_CONCEPTS, FR, FUNCTIONAL, FUZZY_LOGIC, FUZZY_NUMBER_ADD, FUZZY_NUMBER_DIV, FUZZY_NUMBER_MINUS, FUZZY_NUMBER_MULT, G_AND, G_IMPLIES, G_OR, GRE, IDENTIFIER, IMPLIES, IMPLIES_ROLE, INSTANCE, INVERSE, KD_IMPLIES, L_AND, L_IMPLIES, L_OR, LESS, LINEAR, LM, LOM_DEFUZZIFY_QUERY, LOOSE_LOWER_APPROX, LOOSE_UPPER_APPROX, LOWER_APPROX, LS, LUKASIEWICZ, MAX_G_SUBSUMES_QUERY, MAX_INSTANCE_QUERY, MAX_KD_SUBSUMES_QUERY, MAX_L_SUBSUMES_QUERY, MAX_QUERY, MAX_RELATED_QUERY, MAX_SATISFIABLE_QUERY, MAX_SUBSUMES_QUERY, MIN_G_SUBSUMES_QUERY, MIN_INSTANCE_QUERY, MIN_KD_SUBSUMES_QUERY, MIN_L_SUBSUMES_QUERY, MIN_QUERY, MIN_RELATED_QUERY, MIN_SATISFIABLE_QUERY, MIN_SUBSUMES_QUERY, MINUS, MODIFIED, MOM_DEFUZZIFY_QUERY, NOT, NUMBER, NUMBER_TYPE, OP, OR, OSB, OWA, PLUS, QOWA, QSUGENO, RANGE, REFLEXIVE, RELATED, RS, SATISFIABLE_QUERY, SELF, SHOW_ABSTRACT_FILLER, SHOW_ABSTRACT_FILLER_FOR, SHOW_CONCEPTS, SHOW_CONCRETE_FILLER, SHOW_CONCRETE_FILLER_AND_LABELS, SHOW_CONCRETE_FILLER_FOR, SHOW_INSTANCES, SHOW_LANGUAGE, SHOW_VARIABLES, SINGLE_LINE_COMMENT, SOM_DEFUZZIFY_QUERY, SOME, STAR, STRING_TYPE, SUGENO, SYMMETRIC, TIGHT_LOWER_APPROX, TIGHT_UPPER_APPROX, tokenImage, TOP, TRANSITIVE, TRAP, TRI, TRIAM, UPPER_APPROX, W_MAX, W_MIN, W_SUM, W_SUM_ZERO, Z_IMPLIES, ZADEH
Constructor and Description |
---|
Parser(java.io.InputStream stream)
Constructor with InputStream.
|
Parser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
Parser(fuzzydl.parser.ParserTokenManager tm)
Constructor with generated Token Manager.
|
Parser(java.io.Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearKB()
Clear the fuzzy KB.
|
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
fuzzydl.parser.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.
|
fuzzydl.parser.Token |
getNextToken()
Get the next Token.
|
java.util.ArrayList<Query> |
getQueries()
Gets the queries.
|
java.lang.String |
getString()
Gets a String from a Token.
|
fuzzydl.parser.Token |
getToken(int index)
Get the specific Token.
|
static void |
main(java.lang.String[] args)
Main program.
|
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(fuzzydl.parser.ParserTokenManager tm)
Reinitialise.
|
void |
ReInit(java.io.Reader stream)
Reinitialise.
|
static void |
reset()
Reset the parser.
|
void |
Start() |
java.lang.String |
StringType()
Gets a fuzzyDL representation of the type "string" for the range of concrete features
|
public fuzzydl.parser.ParserTokenManager token_source
public fuzzydl.parser.Token token
public fuzzydl.parser.Token jj_nt
public Parser(java.io.InputStream stream)
public Parser(java.io.InputStream stream, java.lang.String encoding)
public Parser(java.io.Reader stream)
public Parser(fuzzydl.parser.ParserTokenManager tm)
public static void reset()
public static void main(java.lang.String[] args) throws FuzzyOntologyException, java.io.IOException, fuzzydl.parser.TokenMgrError
FuzzyOntologyException
java.io.IOException
fuzzydl.parser.TokenMgrError
public KnowledgeBase getKB()
public void clearKB()
public java.util.ArrayList<Query> getQueries()
public static KnowledgeBase getKB(java.lang.String fileName)
public final void Start() throws fuzzydl.parser.ParseException, FuzzyOntologyException
fuzzydl.parser.ParseException
FuzzyOntologyException
public final java.lang.String getString() throws fuzzydl.parser.ParseException
fuzzydl.parser.ParseException
public final java.lang.String StringType() throws fuzzydl.parser.ParseException
fuzzydl.parser.ParseException
public final java.lang.String NumericalType() throws fuzzydl.parser.ParseException
fuzzydl.parser.ParseException
public 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(fuzzydl.parser.ParserTokenManager tm)
public final fuzzydl.parser.Token getNextToken()
public final fuzzydl.parser.Token getToken(int index)
public fuzzydl.parser.ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()