Class BayesNet

  • All Implemented Interfaces:
    org.api4.java.common.control.ILoggingCustomizable

    public class BayesNet
    extends java.lang.Object
    implements org.api4.java.common.control.ILoggingCustomizable
    • Constructor Summary

      Constructors 
      Constructor Description
      BayesNet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDependency​(java.lang.String child, java.lang.String parent)  
      void addNode​(java.lang.String name)  
      void addProbability​(java.lang.String node, double probability)  
      void addProbability​(java.lang.String node, java.util.Collection<java.lang.String> parentsThatAreTrue, double probability)  
      java.lang.String getLoggerName()  
      java.util.Map<java.lang.String,​java.util.Map<java.util.Set<java.lang.String>,​java.lang.Double>> getMap()  
      ai.libs.jaicore.graph.Graph<java.lang.String> getNet()  
      double getProbabilityOfPositiveEvent​(java.lang.String node, java.util.Set<java.lang.String> event)  
      boolean isProbabilityTableOfNodeWellDefined​(java.lang.String node)  
      boolean isWellDefined()  
      void setLoggerName​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BayesNet

        public BayesNet()
    • Method Detail

      • addNode

        public void addNode​(java.lang.String name)
      • addDependency

        public void addDependency​(java.lang.String child,
                                  java.lang.String parent)
      • addProbability

        public void addProbability​(java.lang.String node,
                                   java.util.Collection<java.lang.String> parentsThatAreTrue,
                                   double probability)
      • addProbability

        public void addProbability​(java.lang.String node,
                                   double probability)
      • isWellDefined

        public boolean isWellDefined()
                              throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • isProbabilityTableOfNodeWellDefined

        public boolean isProbabilityTableOfNodeWellDefined​(java.lang.String node)
                                                    throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • getMap

        public java.util.Map<java.lang.String,​java.util.Map<java.util.Set<java.lang.String>,​java.lang.Double>> getMap()
      • getNet

        public ai.libs.jaicore.graph.Graph<java.lang.String> getNet()
      • getProbabilityOfPositiveEvent

        public double getProbabilityOfPositiveEvent​(java.lang.String node,
                                                    java.util.Set<java.lang.String> event)
      • getLoggerName

        public java.lang.String getLoggerName()
        Specified by:
        getLoggerName in interface org.api4.java.common.control.ILoggingCustomizable
      • setLoggerName

        public void setLoggerName​(java.lang.String name)
        Specified by:
        setLoggerName in interface org.api4.java.common.control.ILoggingCustomizable