de.unidu.is.pdatalog
Class EqualsRelation

java.lang.Object
  extended byde.unidu.is.pdatalog.Relation
      extended byde.unidu.is.pdatalog.EDBComputedRelation
          extended byde.unidu.is.pdatalog.EqualsRelation

public class EqualsRelation
extends EDBComputedRelation

A class for the pDatalog++ equals relation which is computed on demand.

Since:
2004-01-28
Version:
$Revision: 1.4 $, $Date: 2005/03/14 17:33:13 $
Author:
Henrik Nottelmann

Field Summary
 
Fields inherited from class de.unidu.is.pdatalog.Relation
arity, base, name
 
Constructor Summary
EqualsRelation(RelationBase base)
          Constructs a new relation, and automatically adds it to the relation base.
 
Method Summary
 void addProb(Literal literal, java.util.List prob)
          Adds arguments for computing a probability for the literal to the specified list.
 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

EqualsRelation

public EqualsRelation(RelationBase base)
Constructs a new relation, and automatically adds it to the relation base.

Parameters:
base - corresponding relation base
Method Detail

addProb

public void addProb(Literal literal,
                    java.util.List prob)
Adds arguments for computing a probability for the literal to the specified list.

Specified by:
addProb in class EDBComputedRelation
Parameters:
literal - literal to be handled
prob - list of arguments for computing a probability

addWhere

public void addWhere(Literal literal,
                     java.util.List where)
Adds arguments for filtering for the literal to the specified list.

Specified by:
addWhere in class EDBComputedRelation
Parameters:
literal - literal to be handled
where - list of arguments for filtering