|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectreasoner.RoleQuery
public class RoleQuery
This class represents a Query in the generic form (Qt)(Q)R.C, where Qt is a temporal Quantifier, Q is a Quantifier, R is a Role, C is a Concept
Field Summary | |
---|---|
private Concept |
c
The Concept |
private java.text.NumberFormat |
formatter
|
private java.text.NumberFormat |
formatter0
|
private KnowledgeBase |
kb
The KnowledgeBase |
private Quantifier |
q
The Quantifier |
private Role |
r
The Role |
private java.lang.String |
str
|
private ConcreteConcept |
tc
The ConcreteConcept |
private Quantifier |
tempq
The temporal Quantifier |
Constructor Summary | |
---|---|
RoleQuery(Quantifier tempq,
Quantifier q,
Role r,
ConcreteConcept tc,
KnowledgeBase kb)
Constructor for this RoleQuery |
|
RoleQuery(Quantifier q,
Role r,
ConcreteConcept tc,
KnowledgeBase kb)
Constructor for this RoleQuery, with null temporal quantifier |
Method Summary | |
---|---|
double |
evaluate()
Evaluates this Query. |
java.lang.String |
evaluateString()
Gets this RoleQuery evaluation in String format |
Concept |
getC()
|
KnowledgeBase |
getKb()
|
java.lang.String |
getMeaning()
Gives a String about this Query meaning |
Quantifier |
getQ()
|
Role |
getR()
|
ConcreteConcept |
getTc()
|
Quantifier |
getTempq()
|
void |
setC(Concept c)
|
private void |
setFormatter(int n)
|
private void |
setFormatter0(int n)
|
void |
setKb(KnowledgeBase kb)
|
void |
setQ(Quantifier q)
|
void |
setR(Role r)
|
void |
setTc(ConcreteConcept tc)
|
void |
setTempq(Quantifier tempq)
|
java.lang.String |
toString()
Gives a String representation for this Query |
Concept |
trap2Concept(ConcreteConcept t)
Converts a ConcreteConcept in a correspondent Concept |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Quantifier q
private Quantifier tempq
private Role r
private KnowledgeBase kb
private ConcreteConcept tc
private Concept c
private java.lang.String str
private java.text.NumberFormat formatter
private java.text.NumberFormat formatter0
Constructor Detail |
---|
public RoleQuery(Quantifier q, Role r, ConcreteConcept tc, KnowledgeBase kb)
q
- the Quantifierr
- the Rolekb
- the KnowledgeBasetc
- the ConcreteConceptpublic RoleQuery(Quantifier tempq, Quantifier q, Role r, ConcreteConcept tc, KnowledgeBase kb)
tempq
- the temporal Quantifierq
- the Quantifierr
- the Roletc
- the ConcreteConceptkb
- the KnowledgeBaseMethod Detail |
---|
public double evaluate()
Query
evaluate
in interface Query
public java.lang.String evaluateString()
public Concept trap2Concept(ConcreteConcept t)
t
- the ConcreteConcept
public ConcreteConcept getTc()
public void setTc(ConcreteConcept tc)
tc
- the tc to setpublic KnowledgeBase getKb()
public void setKb(KnowledgeBase kb)
kb
- the kb to setpublic Quantifier getQ()
public void setQ(Quantifier q)
q
- the q to setpublic Role getR()
public void setR(Role r)
r
- the r to setpublic java.lang.String toString()
Query
toString
in interface Query
toString
in class java.lang.Object
public java.lang.String getMeaning()
Query
getMeaning
in interface Query
public Concept getC()
public void setC(Concept c)
c
- the c to setpublic Quantifier getTempq()
public void setTempq(Quantifier tempq)
tempq
- the tempq to setprivate void setFormatter(int n)
private void setFormatter0(int n)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |