Class Cobweb.CNode

  • All Implemented Interfaces:
    java.io.Serializable, RevisionHandler
    Enclosing class:
    Cobweb

    public class Cobweb.CNode
    extends java.lang.Object
    implements java.io.Serializable, RevisionHandler
    Inner class handling node operations for Cobweb.
    See Also:
    Serializable, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CNode​(int numAttributes)
      Creates an empty CNode instance.
      CNode​(int numAttributes, Instance leafInstance)
      Creates a new leaf CNode instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRevision()
      Returns the revision string.
      • Methods inherited from class java.lang.Object

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

      • CNode

        public CNode​(int numAttributes)
        Creates an empty CNode instance.
        Parameters:
        numAttributes - the number of attributes in the data
      • CNode

        public CNode​(int numAttributes,
                     Instance leafInstance)
        Creates a new leaf CNode instance.
        Parameters:
        numAttributes - the number of attributes in the data
        leafInstance - the instance to store at this leaf
    • Method Detail

      • getRevision

        public java.lang.String getRevision()
        Returns the revision string.
        Specified by:
        getRevision in interface RevisionHandler
        Returns:
        the revision