RBNpackage
Class RBN

java.lang.Object
  extended by RBNpackage.RBN

public class RBN
extends java.lang.Object


Constructor Summary
RBN()
          Creates new RBN
RBN(int i)
           
RBN(RBN toCopy)
           
RBN(java.lang.String filename)
           
 
Method Summary
 java.lang.String[] args(Rel r)
          Returns the argument tuple for the ProbForm for r
 java.lang.String[] ArgsAt(int i)
           
 java.lang.String[] argumentsAt(int i)
           
 RBNpackage.RBNelement[] elements()
           
 void InsertArguments(java.lang.String[] ags, int i)
           
 void InsertProbForm(ProbForm pf, int i)
           
 void insertRel(Rel r, int i)
           
 boolean multlinOnly()
           
 java.lang.String NameAt(int i)
           
 int NumPFs()
           
 java.lang.String[] parameters()
          Returns all the parameters contained in probability formulas in the RBN.
 ProbForm probForm(Rel r)
          Returns the probability formula for relation r
 ProbForm ProbFormAt(int i)
           
 Rel relAt(int i)
           
 Rel[] Rels()
           
 void saveToFile(java.io.File rbnfile)
           
 void setParameters(java.lang.String[] params, double[] values)
          Sets all occurrences of parameters appearing in params to their corresponding value in values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RBN

public RBN()
Creates new RBN


RBN

public RBN(int i)

RBN

public RBN(java.lang.String filename)

RBN

public RBN(RBN toCopy)
Since:
20060515
Method Detail

elements

public RBNpackage.RBNelement[] elements()

argumentsAt

public java.lang.String[] argumentsAt(int i)

multlinOnly

public boolean multlinOnly()

NumPFs

public int NumPFs()

Rels

public Rel[] Rels()

relAt

public Rel relAt(int i)

ProbFormAt

public ProbForm ProbFormAt(int i)

probForm

public ProbForm probForm(Rel r)
Returns the probability formula for relation r


NameAt

public java.lang.String NameAt(int i)

ArgsAt

public java.lang.String[] ArgsAt(int i)

args

public java.lang.String[] args(Rel r)
Returns the argument tuple for the ProbForm for r


insertRel

public void insertRel(Rel r,
                      int i)

InsertArguments

public void InsertArguments(java.lang.String[] ags,
                            int i)

InsertProbForm

public void InsertProbForm(ProbForm pf,
                           int i)

parameters

public java.lang.String[] parameters()
Returns all the parameters contained in probability formulas in the RBN. Two occurrences of parameters with the same name are included only once.

Returns:

saveToFile

public void saveToFile(java.io.File rbnfile)

setParameters

public void setParameters(java.lang.String[] params,
                          double[] values)
Sets all occurrences of parameters appearing in params to their corresponding value in values. params and values must be arrays of the same length

Parameters:
params -
values -