Class LseMinHeap.Record

java.lang.Object
gov.nih.mipav.model.algorithms.levelset.LseMinHeap.Record
Enclosing class:
LseMinHeap

public class LseMinHeap.Record extends Object
Each heap record stores a numeric value, the index of the record within the records array, and a generator which acts as an identifier for the application to use to store information about how the numeric value was generated in the application.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private float
    The numeric value of the heap record.
    private int
    The generator for the heap record.
    private int
    The index of the heap record in the records array.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new heap record.
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    Get the generator for the heap record.
    final int
    Get the index of the heap record within the records array.
    final float
    Get the numeric value for the heap record.
    final void
    setGenerator(int iGenerator)
    Set the generator for the heap record.
    final void
    setIndex(int iIndex)
    Set the index of the heap record within the records array.
    final void
    setValue(float fValue)
    Set the numeric value for the heap record.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • m_iGenerator

      private int m_iGenerator
      The generator for the heap record. This is application-dependent data.
    • m_fValue

      private float m_fValue
      The numeric value of the heap record.
    • m_iIndex

      private int m_iIndex
      The index of the heap record in the records array.
  • Constructor Details

    • Record

      public Record()
      Creates a new heap record.
  • Method Details

    • setGenerator

      public final void setGenerator(int iGenerator)
      Set the generator for the heap record.
      Parameters:
      iGenerator - The generator value.
    • getGenerator

      public final int getGenerator()
      Get the generator for the heap record.
      Returns:
      The generator value.
    • setValue

      public final void setValue(float fValue)
      Set the numeric value for the heap record.
      Parameters:
      fValue - The numeric value.
    • getValue

      public final float getValue()
      Get the numeric value for the heap record.
      Returns:
      The numeric value.
    • setIndex

      public final void setIndex(int iIndex)
      Set the index of the heap record within the records array.
      Parameters:
      iIndex - The index of the heap record.
    • getIndex

      public final int getIndex()
      Get the index of the heap record within the records array.
      Returns:
      The index of the heap record.