Class LseMinHeap.Record
java.lang.Object
gov.nih.mipav.model.algorithms.levelset.LseMinHeap.Record
- Enclosing class:
LseMinHeap
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
FieldsModifier and TypeFieldDescriptionprivate floatThe numeric value of the heap record.private intThe generator for the heap record.private intThe index of the heap record in the records array. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intGet the generator for the heap record.final intgetIndex()Get the index of the heap record within the records array.final floatgetValue()Get the numeric value for the heap record.final voidsetGenerator(int iGenerator) Set the generator for the heap record.final voidsetIndex(int iIndex) Set the index of the heap record within the records array.final voidsetValue(float fValue) Set the numeric value for the heap record.
-
Field Details
-
m_iGenerator
private int m_iGeneratorThe generator for the heap record. This is application-dependent data. -
m_fValue
private float m_fValueThe numeric value of the heap record. -
m_iIndex
private int m_iIndexThe 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.
-