|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.ie.cowbots.elpParser.dlp.Vocabulary
public class Vocabulary
this class memories the vocabulary of constants and different predicate its function like a dictionary.
Field Summary | |
---|---|
private java.util.HashSet<DLPConstant> |
constants
|
private java.util.HashSet<Predicate> |
ps
|
Constructor Summary | |
---|---|
Vocabulary()
Default constructor |
Method Summary | |
---|---|
void |
addConstant(DLPConstant constant)
|
void |
addPredicate(Predicate p)
|
DLPConstant |
getConstant(java.lang.String constantName)
product from a string token to a constant, if this token do exist in the char set. |
Predicate |
getPredicate(java.lang.String pName)
product from a string to a predicate, if this string do exist in the predicate set. |
void |
resolve()
this method is only used by DLP parsing and present the stand of constants. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashSet<DLPConstant> constants
private java.util.HashSet<Predicate> ps
Constructor Detail |
---|
public Vocabulary()
Method Detail |
---|
public void addPredicate(Predicate p)
public DLPConstant getConstant(java.lang.String constantName)
DLPConstant
actual constant from dictionarypublic Predicate getPredicate(java.lang.String pName)
public void addConstant(DLPConstant constant)
public void resolve()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |