pt.tumba.ngram.bayes
Class Ordering

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

public class Ordering
extends java.lang.Object


Field Summary
(package private)  BayesNet bn
           
(package private)  int explanation_status
           
static int MINIMUM_WEIGHT
           
(package private)  java.lang.String[] order
           
(package private)  int ordering_type
           
static int USER_DEFINED
           
static int USER_ORDER
           
 
Constructor Summary
Ordering(BayesNet b_n, java.lang.String[] or)
          Basic constructor for Ordering.
Ordering(BayesNet b_n, java.lang.String[] or, int ds)
          Basic constructor for Ordering.
Ordering(BayesNet b_n, java.lang.String objective, int ot)
          Basic constructor for Ordering.
Ordering(BayesNet b_n, java.lang.String objective, int ds, int ot)
          Basic constructor for Ordering.
 
Method Summary
private  java.lang.String[] heuristic_order(java.util.Vector vo, int objective_index, int ordering_type)
           
private  void interconnect(BayesNet bn, java.util.Vector[] vectors, DiscreteVariable[] variables_to_be_interconnected)
           
private  void interconnect(BayesNet bn, java.util.Vector[] vectors, DiscreteVariable pvi, DiscreteVariable pvj)
           
private  int obtain_explanation_status(BayesNet b_n)
           
private  long obtain_value(java.util.Vector v, int ordering_type)
           
private  java.lang.String[] ordering(java.lang.String objective)
           
private  java.lang.String[] user_order(java.util.Vector variables_to_order, int objective_index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bn

BayesNet bn

order

java.lang.String[] order

explanation_status

int explanation_status

ordering_type

int ordering_type

USER_DEFINED

public static final int USER_DEFINED
See Also:
Constant Field Values

USER_ORDER

public static final int USER_ORDER
See Also:
Constant Field Values

MINIMUM_WEIGHT

public static final int MINIMUM_WEIGHT
See Also:
Constant Field Values
Constructor Detail

Ordering

public Ordering(BayesNet b_n,
                java.lang.String objective,
                int ot)
Basic constructor for Ordering.


Ordering

public Ordering(BayesNet b_n,
                java.lang.String[] or)
Basic constructor for Ordering.


Ordering

public Ordering(BayesNet b_n,
                java.lang.String objective,
                int ds,
                int ot)
Basic constructor for Ordering.


Ordering

public Ordering(BayesNet b_n,
                java.lang.String[] or,
                int ds)
Basic constructor for Ordering.

Method Detail

obtain_explanation_status

private int obtain_explanation_status(BayesNet b_n)

ordering

private java.lang.String[] ordering(java.lang.String objective)

user_order

private java.lang.String[] user_order(java.util.Vector variables_to_order,
                                      int objective_index)

heuristic_order

private java.lang.String[] heuristic_order(java.util.Vector vo,
                                           int objective_index,
                                           int ordering_type)

obtain_value

private long obtain_value(java.util.Vector v,
                          int ordering_type)

interconnect

private void interconnect(BayesNet bn,
                          java.util.Vector[] vectors,
                          DiscreteVariable[] variables_to_be_interconnected)

interconnect

private void interconnect(BayesNet bn,
                          java.util.Vector[] vectors,
                          DiscreteVariable pvi,
                          DiscreteVariable pvj)