de.unidu.is.pdatalog
Class EDBComputedRelation

java.lang.Object
  extended byde.unidu.is.pdatalog.Relation
      extended byde.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

Field Summary
 
Fields inherited from class de.unidu.is.pdatalog.Relation
arity, base, name
 
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 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

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 base
name - relatio n name
arity - 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 base
name - relatio n name
arity - arity of the relation
create - if true, the relation is physically created
Method Detail

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 handled
prob - 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 handled
where - list of arguments for filtering