de.unidu.is.pdatalog.ds
Class ProbExpression

java.lang.Object
  extended byde.unidu.is.expressions.AbstractExpression
      extended byde.unidu.is.pdatalog.ds.ProbExpression
All Implemented Interfaces:
Expression

public class ProbExpression
extends AbstractExpression

The expression representing the overall probability of facts derived by the single, obtained by the independence assumption.

Version:
$Revision: 1.5 $, $Date: 2005/02/28 22:27:55 $
Author:
nottelma

Constructor Summary
ProbExpression()
          Creates a new object.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 Expression substitute(java.util.Map binding)
          Performs an substitution for variables, e.g. for each key variable in the specified binding, all occurences of ${key} are replaced by the corresponding value in the map.
 java.lang.String toString()
           
 
Methods inherited from class de.unidu.is.expressions.AbstractExpression
getSQLTemplate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProbExpression

public ProbExpression()
Creates a new object.

Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

substitute

public Expression substitute(java.util.Map binding)
Description copied from class: AbstractExpression
Performs an substitution for variables, e.g. for each key variable in the specified binding, all occurences of ${key} are replaced by the corresponding value in the map.

Here, the same untouched expression is returned. Subclasses can overwrite this behaviour.

Specified by:
substitute in interface Expression
Overrides:
substitute in class AbstractExpression
Parameters:
binding - variable binding
Returns:
expression after substitution

hashCode

public int hashCode()