edu.ksu.cis.bnj.bbn.prm
Class PRMK2_handCoded

java.lang.Object
  extended byedu.ksu.cis.bnj.bbn.prm.PRMK2_handCoded

public class PRMK2_handCoded
extends java.lang.Object

Author:
Prashanth Boddhireddy (pbo8844@ksu.edu)

Field Summary
 java.sql.Connection con
           
 BBNGraph mBBNGraph
           
 java.sql.Statement stmt
           
 
Constructor Summary
PRMK2_handCoded()
           
 
Method Summary
 void displayList(java.util.LinkedList list)
           
 void displayTable(java.util.LinkedList[] listArray)
           
protected  BBNGraph getBBNGraph()
           
 void getDatabaseConnection()
           
 java.lang.String[] getQueryAttributeNames(int nodeIndex, int currentNodeIndex, java.util.LinkedList parentSet)
           
 java.lang.String[] getQueryTableNames(int nodeIndex, int currentNodeIndex, java.util.LinkedList parentSet)
           
 double getScore(int nodeIndex, int candidateParents, java.util.LinkedList parentTable)
           
 double getScorefromDatabase(int nodeIndex, int currentParentNodeIndex, java.util.LinkedList parentSet)
           
static void main(java.lang.String[] args)
           
 java.lang.String preprocessArrayToString(java.lang.String[] attributesNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mBBNGraph

public BBNGraph mBBNGraph

con

public java.sql.Connection con

stmt

public java.sql.Statement stmt
Constructor Detail

PRMK2_handCoded

public PRMK2_handCoded()
Method Detail

displayTable

public void displayTable(java.util.LinkedList[] listArray)

getScore

public double getScore(int nodeIndex,
                       int candidateParents,
                       java.util.LinkedList parentTable)

getScorefromDatabase

public double getScorefromDatabase(int nodeIndex,
                                   int currentParentNodeIndex,
                                   java.util.LinkedList parentSet)
                            throws java.sql.SQLException,
                                   java.lang.ClassNotFoundException
Throws:
java.sql.SQLException
java.lang.ClassNotFoundException

displayList

public void displayList(java.util.LinkedList list)

getQueryAttributeNames

public java.lang.String[] getQueryAttributeNames(int nodeIndex,
                                                 int currentNodeIndex,
                                                 java.util.LinkedList parentSet)

getQueryTableNames

public java.lang.String[] getQueryTableNames(int nodeIndex,
                                             int currentNodeIndex,
                                             java.util.LinkedList parentSet)

preprocessArrayToString

public java.lang.String preprocessArrayToString(java.lang.String[] attributesNames)

main

public static void main(java.lang.String[] args)

getBBNGraph

protected BBNGraph getBBNGraph()

getDatabaseConnection

public void getDatabaseConnection()
                           throws java.sql.SQLException,
                                  java.lang.ClassNotFoundException
Throws:
java.sql.SQLException
java.lang.ClassNotFoundException