Package elki.parallel.variables
Class SharedDouble.Instance
- java.lang.Object
-
- elki.parallel.variables.SharedDouble.Instance
-
- All Implemented Interfaces:
SharedVariable.Instance<java.lang.Double>
- Enclosing class:
- SharedDouble
public static class SharedDouble.Instance extends java.lang.Object implements SharedVariable.Instance<java.lang.Double>
Instance for a sub-channel.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private double
data
Cache for last data consumed/produced
-
Constructor Summary
Constructors Constructor Description Instance()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
doubleValue()
Get the variables value.java.lang.Double
get()
Deprecated.usedoubleValue()
!void
set(double data)
Set the variables value.void
set(java.lang.Double data)
Deprecated.useset(double)
!
-
-
-
Method Detail
-
get
@Deprecated public java.lang.Double get()
Deprecated.usedoubleValue()
!Description copied from interface:SharedVariable.Instance
Get the current value- Specified by:
get
in interfaceSharedVariable.Instance<java.lang.Double>
- Returns:
- Value
-
set
@Deprecated public void set(java.lang.Double data)
Deprecated.useset(double)
!Description copied from interface:SharedVariable.Instance
Set a new value- Specified by:
set
in interfaceSharedVariable.Instance<java.lang.Double>
- Parameters:
data
- Setter
-
doubleValue
public double doubleValue()
Get the variables value.- Returns:
- Double value
-
set
public void set(double data)
Set the variables value.- Parameters:
data
- New value
-
-