edu.duke.cs.banjo.bayesnet
Interface EdgesWithCachedStatisticsI

All Superinterfaces:
EdgesI
All Known Implementing Classes:
EdgesAsArrayWithCachedStatistics, EdgesAsMatrixWithCachedStatistics

public interface EdgesWithCachedStatisticsI
extends EdgesI

Documents the interface for creating an EdgesAsMatrixWithCachedStatistics implementation.

Details:

Change History:
Created on Jun 13, 2006

Author:
Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.

Method Summary
 void addParent(int varIndex, int parentVarIndex, int lag)
           
 void adjustForLocalChange(int _nodeToCheck)
           
 void assignMatrix(EdgesWithCachedStatisticsI matrixToAssign)
           
 void computeComplementaryMatrix(EdgesWithCachedStatisticsI matrix1, EdgesWithCachedStatisticsI matrix2)
           
 void deleteParent(int varIndex, int parentVarIndex, int lag)
           
 int getCombinedParentCount()
           
 int[][] getCurrentParentIDlist(int nodeID, int lag)
           
 int getCycleAtNode()
           
 int[] getParentCount()
           
 int getParentCount(int nodeID)
           
 boolean hasOverlap(EdgesWithCachedStatisticsI _matrix)
           
 void initMatrix()
           
 void initMatrix(int valueToInitTo)
           
 boolean isCyclic()
           
 boolean isCyclic(BayesNetChangeI bayesNetChange)
           
 boolean isParent(int varIndex, int parentVarIndex, int lag)
           
 void omitExcludedParents()
           
 void omitNodesAsOwnParents()
           
 int parentCount(int varIndex)
           
 void reconstructMatrix(java.lang.String bayesNetStructureString, int _varCount, int _minMarkovLag, int _maxMarkovLag)
           
 void reconstructMatrixStatic(java.lang.String bayesNetStructureString, int _varCount, int _minMarkovLag, int _maxMarkovLag)
           
 void resetEntireGraph()
           
 void reverseRelation(int varIndex, int lagVar, int parentVarIndex, int lagParent)
           
 void setEntry(int varIndex, int parentVarIndex, int lag)
           
 void setEntry(int varIndex, int parentVarIndex, int lag, int newValue)
           
 void setToCombinedMatrices(EdgesWithCachedStatisticsI matrix1, EdgesWithCachedStatisticsI matrix2)
           
 void subtractMatrix(EdgesWithCachedStatisticsI matrixToSubtract)
           
 java.lang.StringBuffer toStringWithIDandParentCount()
           
 
Methods inherited from interface edu.duke.cs.banjo.bayesnet.EdgesI
assignMatrix, clone, getEntry, hasIdenticalEntries
 

Method Detail

initMatrix

public void initMatrix()
                throws java.lang.Exception
Throws:
java.lang.Exception

initMatrix

public void initMatrix(int valueToInitTo)
                throws java.lang.Exception
Throws:
java.lang.Exception

assignMatrix

public void assignMatrix(EdgesWithCachedStatisticsI matrixToAssign)
                  throws java.lang.Exception
Throws:
java.lang.Exception

subtractMatrix

public void subtractMatrix(EdgesWithCachedStatisticsI matrixToSubtract)
                    throws java.lang.Exception
Throws:
java.lang.Exception

reconstructMatrix

public void reconstructMatrix(java.lang.String bayesNetStructureString,
                              int _varCount,
                              int _minMarkovLag,
                              int _maxMarkovLag)
                       throws BanjoException
Throws:
BanjoException

reconstructMatrixStatic

public void reconstructMatrixStatic(java.lang.String bayesNetStructureString,
                                    int _varCount,
                                    int _minMarkovLag,
                                    int _maxMarkovLag)
                             throws BanjoException
Throws:
BanjoException

setToCombinedMatrices

public void setToCombinedMatrices(EdgesWithCachedStatisticsI matrix1,
                                  EdgesWithCachedStatisticsI matrix2)
                           throws java.lang.Exception
Throws:
java.lang.Exception

hasOverlap

public boolean hasOverlap(EdgesWithCachedStatisticsI _matrix)
                   throws java.lang.Exception
Throws:
java.lang.Exception

computeComplementaryMatrix

public void computeComplementaryMatrix(EdgesWithCachedStatisticsI matrix1,
                                       EdgesWithCachedStatisticsI matrix2)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getCurrentParentIDlist

public int[][] getCurrentParentIDlist(int nodeID,
                                      int lag)
                               throws java.lang.Exception
Throws:
java.lang.Exception

parentCount

public int parentCount(int varIndex)
                throws java.lang.Exception
Throws:
java.lang.Exception

isParent

public boolean isParent(int varIndex,
                        int parentVarIndex,
                        int lag)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setEntry

public void setEntry(int varIndex,
                     int parentVarIndex,
                     int lag)
              throws java.lang.Exception
Throws:
java.lang.Exception

setEntry

public void setEntry(int varIndex,
                     int parentVarIndex,
                     int lag,
                     int newValue)
              throws java.lang.Exception
Specified by:
setEntry in interface EdgesI
Throws:
java.lang.Exception

addParent

public void addParent(int varIndex,
                      int parentVarIndex,
                      int lag)
               throws java.lang.Exception
Throws:
java.lang.Exception

deleteParent

public void deleteParent(int varIndex,
                         int parentVarIndex,
                         int lag)
                  throws java.lang.Exception
Throws:
java.lang.Exception

reverseRelation

public void reverseRelation(int varIndex,
                            int lagVar,
                            int parentVarIndex,
                            int lagParent)
                     throws java.lang.Exception
Throws:
java.lang.Exception

isCyclic

public boolean isCyclic(BayesNetChangeI bayesNetChange)
                 throws java.lang.Exception
Throws:
java.lang.Exception

isCyclic

public boolean isCyclic()
                 throws java.lang.Exception
Throws:
java.lang.Exception

adjustForLocalChange

public void adjustForLocalChange(int _nodeToCheck)
                          throws java.lang.Exception
Throws:
java.lang.Exception

resetEntireGraph

public void resetEntireGraph()
                      throws java.lang.Exception
Throws:
java.lang.Exception

omitNodesAsOwnParents

public void omitNodesAsOwnParents()
                           throws java.lang.Exception
Throws:
java.lang.Exception

omitExcludedParents

public void omitExcludedParents()
                         throws java.lang.Exception
Throws:
java.lang.Exception

getParentCount

public int[] getParentCount()
Returns:
Returns the parentCount.

getParentCount

public int getParentCount(int nodeID)

getCycleAtNode

public int getCycleAtNode()
Returns:
Returns the cycleAtNode.

toStringWithIDandParentCount

public java.lang.StringBuffer toStringWithIDandParentCount()

getCombinedParentCount

public int getCombinedParentCount()
Returns:
Returns the combinedParentCount.