de.unidu.is.pdatalog
Class EDBComputedRelation
java.lang.Object
de.unidu.is.pdatalog.Relation
de.unidu.is.pdatalog.EDBComputedRelation
- Direct Known Subclasses:
- EqualsRelation, GreaterEqualsRelation, GreaterThanRelation, LessEqualsRelation, LessThanRelation, StartsWithRelation, VagueLessThanRelation
- public abstract class EDBComputedRelation
- extends Relation
A class for pDatalog++ relation which is computed on demand.
- Since:
- 2003-10-07
- Version:
- $Revision: 1.5 $, $Date: 2005/02/28 22:27:54 $
- Author:
- Henrik Nottelmann
|
Constructor Summary |
EDBComputedRelation(RelationBase base,
java.lang.String name,
int arity)
Constructs a new relation, and automatically adds it to the
relation base. |
EDBComputedRelation(RelationBase base,
java.lang.String name,
int arity,
boolean create)
Constructs a new relation, and automatically adds it to the
relation base. |
|
Method Summary |
abstract void |
addProb(Literal literal,
java.util.List prob)
Adds arguments for computing a probability for the literal to the
specified list. |
abstract void |
addWhere(Literal literal,
java.util.List where)
Adds arguments for filtering for the literal to the specified list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EDBComputedRelation
public EDBComputedRelation(RelationBase base,
java.lang.String name,
int arity)
- Constructs a new relation, and automatically adds it to the
relation base.
- Parameters:
base - corresponding relation basename - relatio n namearity - arity of the relation
EDBComputedRelation
public EDBComputedRelation(RelationBase base,
java.lang.String name,
int arity,
boolean create)
- Constructs a new relation, and automatically adds it to the
relation base.
- Parameters:
base - corresponding relation basename - relatio n namearity - arity of the relationcreate - if true, the relation is physically created
addProb
public abstract void addProb(Literal literal,
java.util.List prob)
- Adds arguments for computing a probability for the literal to the
specified list.
- Parameters:
literal - literal to be handledprob - list of arguments for computing a probability
addWhere
public abstract void addWhere(Literal literal,
java.util.List where)
- Adds arguments for filtering for the literal to the specified list.
- Parameters:
literal - literal to be handledwhere - list of arguments for filtering