|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.pdatalog.ds.Rule
de.unidu.is.pdatalog.ds.Fact
de.unidu.is.hyspirit.HySpiritFact
A fact whose string representation matches the one of HySpirit (thus, it is pDatalog and not pDatalog++).
| Field Summary |
| Fields inherited from class de.unidu.is.pdatalog.ds.Rule |
body, head |
| Constructor Summary | |
HySpiritFact(double prob,
Literal head)
Creates a new object. |
|
HySpiritFact(Fact fact)
Creates a new object. |
|
HySpiritFact(Literal head)
Creates a new object. |
|
HySpiritFact(Literal head,
Expression mapping)
Creates a new object. |
|
| Method Summary | |
java.lang.String |
toString()
Returns a datalog representation of this rule. |
| Methods inherited from class de.unidu.is.pdatalog.ds.Fact |
getArity, getConst, getConsts, getProb |
| Methods inherited from class de.unidu.is.pdatalog.ds.Rule |
addLiteral, contains, containsExactly, containsExactlyInBody, getAllArguments, getAllArgumentsAsArray, getBody, getConstants, getHead, getMapping, getMapping, getMapping, getName, getPredicateName, getVariables, isOptimizable, literalAt, literalCount, putAllArguments, putConstants, putVariables, removeLiteral, removeLiteral, setHead, setLiteral, setMapping, setOptimizable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HySpiritFact(Literal head,
Expression mapping)
head - literal used for creating this factmapping - mapping for computing the probability of this factpublic HySpiritFact(Literal head)
head - literal used for creating this fact
public HySpiritFact(double prob,
Literal head)
prob - probability of the facthead - literal used for creating this factpublic HySpiritFact(Fact fact)
fact - original fact.| Method Detail |
public java.lang.String toString()
Rule
toString in class Rule
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||