|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.pdatalog.Relation
de.unidu.is.pdatalog.EDBRelation
A class for pDatalog++ relation whose facts are stored in a database table (corresponding to an extensional predicate).
| Field Summary |
| Fields inherited from class de.unidu.is.pdatalog.Relation |
arity, base, name |
| Constructor Summary | |
EDBRelation(RelationBase base,
java.lang.String name,
int arity)
Constructs a new relation, and automatically adds it to the relation base. |
|
EDBRelation(RelationBase base,
java.lang.String name,
int arity,
boolean create)
Constructs a new relation, and automatically adds it to the relation base. |
|
| Method Summary | |
void |
add(double prob,
java.lang.String[] arguments)
Adds the specified fact to the knowledge base. |
void |
add(double prob,
StringExpression[] args)
Adds the specified fact to the knowledge base. |
void |
add(Fact fact)
Adds the specified fact to the knowledge base. |
void |
add(java.lang.String[] arguments)
Adds the specified fact to the knowledge base. |
void |
add(StringExpression[] args)
Adds the specified fact to the knowledge base. |
| Methods inherited from class de.unidu.is.pdatalog.Relation |
getArity, getName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public EDBRelation(RelationBase base,
java.lang.String name,
int arity)
base - corresponding relation basename - relatio n namearity - arity of the relation
public EDBRelation(RelationBase base,
java.lang.String name,
int arity,
boolean create)
base - corresponding relation basename - relatio n namearity - arity of the relationcreate - if true, the relation is physically created| Method Detail |
public void add(StringExpression[] args)
args - arguments
public void add(double prob,
StringExpression[] args)
prob - probability of this factargs - argumentspublic void add(java.lang.String[] arguments)
arguments - arguments
public void add(double prob,
java.lang.String[] arguments)
prob - probability of this factarguments - argumentspublic void add(Fact fact)
fact - fact to be added
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||