Documentation of 'bayesnet.jayes.io.jbif.JayesBifWriter' Java class
JayesBifWriter
bayesnet.jayes.io.jbif

Class JayesBifWriter

  • All Implemented Interfaces:
    IBayesNetWriter, java.io.Closeable, java.lang.AutoCloseable


    public class JayesBifWriter
    extends java.lang.Object
    implements IBayesNetWriter
    Writer for the Jayes Binary Interchange Format (JBIF). JBIF conforms to the following grammar:
    JBIF
    Header BayesNet
    Header
    (magicNumber: 0xBA7E5B1F) (formatVersion: 1)
    BayesNet
    Name (nodeCount: int) NodeDeclaration* NodeDefinition*
    Name
    (byteCount: short) (utf8: byte...)
    NodeDeclaration
    Name (outcomeCount: int) Outcomes*
    Outcome
    Name
    NodeDefinition
    Parents CPT
    Parents
    (parentCount: byte) parentIds: (int...)
    CPT
    (entryCount: int) (probabilities: double...)
    Multi-byte primitive types are serialized in network byte-order.
    • Constructor Summary

      Constructors 
      Constructor and Description
      JayesBifWriter(java.io.OutputStream out) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close() 
      void write(BayesNet bayesNet) 
      • Methods inherited from class java.lang.Object

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

      • JayesBifWriter

        public JayesBifWriter(java.io.OutputStream out)
    • Method Detail

      • write

        public void write(BayesNet bayesNet)
                   throws java.io.IOException
        Specified by:
        write in interface IBayesNetWriter
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.