blog
Class EqualsCPD

java.lang.Object
  extended by blog.AbstractCondProbDistrib
      extended by blog.DetCondProbDistrib
          extended by blog.EqualsCPD
All Implemented Interfaces:
CondProbDistrib

public class EqualsCPD
extends DetCondProbDistrib

EqualsCPD class is a convenience hack to represent the situation when the value of the right-hand side of a Clause depends on a function application rather than on a CPD.


Field Summary
static EqualsCPD CPD
          An instance of EqualsCPD.
 
Constructor Summary
EqualsCPD()
          Creates a new EqualsCPD.
EqualsCPD(java.util.List params)
          Creates a new EqualsCPD.
 
Method Summary
 java.lang.Object getChildValue(java.util.List args)
          Returns the first element of the given argument tuple.
 
Methods inherited from class blog.DetCondProbDistrib
getProb, sampleVal
 
Methods inherited from class blog.AbstractCondProbDistrib
getLogProb, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CPD

public static final EqualsCPD CPD
An instance of EqualsCPD.

Constructor Detail

EqualsCPD

public EqualsCPD()
Creates a new EqualsCPD.


EqualsCPD

public EqualsCPD(java.util.List params)
Creates a new EqualsCPD. The parameters are ignored.

Method Detail

getChildValue

public java.lang.Object getChildValue(java.util.List args)
Returns the first element of the given argument tuple.

Specified by:
getChildValue in class DetCondProbDistrib
Throws:
java.lang.IllegalArgumentException - if args is not of size 1