org.hypergraphdb.atom

Class HGAtomRef

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  HGAtomRef.Mode 
    • Constructor Summary

      Constructors 
      Constructor and Description
      HGAtomRef(HGHandle referent, HGAtomRef.Mode mode)
      Construct a new HGAtomRef to the atom pointed by reference and with the specified mode.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      HGAtomRef.Mode getMode()
      Return the atom reference mode.
      HGHandle getReferent()
      Return the referent atom.
      boolean isFloating()
      Return true if this is a floating reference and false otherwise.
      boolean isHard()
      Return true if this is a hard reference and false otherwise.
      boolean isSymbolic()
      Return true if this is a symbolic reference and false otherwise.
      • Methods inherited from class java.lang.Object

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

      • HGAtomRef

        public HGAtomRef(HGHandle referent,
                 HGAtomRef.Mode mode)

        Construct a new HGAtomRef to the atom pointed by reference and with the specified mode.

        Parameters:
        referent - The HGHandle of the refered to atom.
        mode - The atom reference mode. this class.
    • Method Detail

      • getMode

        public HGAtomRef.Mode getMode()

        Return the atom reference mode.

      • isHard

        public boolean isHard()

        Return true if this is a hard reference and false otherwise.

      • isSymbolic

        public boolean isSymbolic()

        Return true if this is a symbolic reference and false otherwise.

      • isFloating

        public boolean isFloating()

        Return true if this is a floating reference and false otherwise.

      • getReferent

        public HGHandle getReferent()

        Return the referent atom.