Class LseMinHeap.Record
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.levelset.LseMinHeap.Record
-
- Enclosing class:
- LseMinHeap
public class LseMinHeap.Record extends java.lang.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
m_fValue
The numeric value of the heap record.private int
m_iGenerator
The generator for the heap record.private int
m_iIndex
The index of the heap record in the records array.
-
Constructor Summary
Constructors Constructor Description Record()
Creates a new heap record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGenerator()
Get the generator for the heap record.int
getIndex()
Get the index of the heap record within the records array.float
getValue()
Get the numeric value for the heap record.void
setGenerator(int iGenerator)
Set the generator for the heap record.void
setIndex(int iIndex)
Set the index of the heap record within the records array.void
setValue(float fValue)
Set the numeric value for the heap record.
-
-
-
Method Detail
-
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.
-
-