pt.tumba.ngram.bayes
Class IFBayesNet

java.lang.Object
  extended by pt.tumba.ngram.bayes.IFBayesNet

public class IFBayesNet
extends java.lang.Object

Auxiliar class that stores the temporary information about a BayesNet, before it is possible to actually create a BayesNet object


Field Summary
(package private)  java.lang.String name
           
(package private)  java.util.Vector properties
           
(package private)  java.util.Vector pvs
           
(package private)  java.util.Vector upfs
           
 
Constructor Summary
IFBayesNet(java.lang.String n, java.util.Vector p)
          Basic constructor.
 
Method Summary
 void add(IFProbabilityFunction upf)
          Method that adds a IFProbabilityFunction object to the vector of functions.
 void add(IFProbabilityVariable pv)
          Method that adds a ProbabilityVariable object to the vector of variables.
 java.lang.String get_name()
           
 java.util.Vector get_properties()
           
 java.util.Vector get_pvs()
           
 java.util.Vector get_upfs()
           
 void invert_probability_tables()
          Method that inverts the tables in the ProbabilityFunction objects; necessary for formats that put the GIVEN variables as the lowest running indexes in the tables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

java.lang.String name

properties

java.util.Vector properties

pvs

java.util.Vector pvs

upfs

java.util.Vector upfs
Constructor Detail

IFBayesNet

public IFBayesNet(java.lang.String n,
                  java.util.Vector p)
Basic constructor.

Method Detail

get_name

public java.lang.String get_name()

get_properties

public java.util.Vector get_properties()

get_pvs

public java.util.Vector get_pvs()

get_upfs

public java.util.Vector get_upfs()

add

public void add(IFProbabilityVariable pv)
Method that adds a ProbabilityVariable object to the vector of variables.


add

public void add(IFProbabilityFunction upf)
Method that adds a IFProbabilityFunction object to the vector of functions.


invert_probability_tables

public void invert_probability_tables()
Method that inverts the tables in the ProbabilityFunction objects; necessary for formats that put the GIVEN variables as the lowest running indexes in the tables.