Package org.orekit.utils
Class DataDictionary.Entry
java.lang.Object
org.orekit.utils.DataDictionary.Entry
- All Implemented Interfaces:
Serializable
- Enclosing class:
DataDictionary
Entry in a dictionary.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()Get the entry key.getValue()Get the value.voidincrement(double[] increment) Increment the value if it is a double array.voidscaledIncrement(double factor, DoubleArrayDictionary.Entry raw) Increment the value with another scaled entry if it is a double array.voidzero()Reset the value to zero if it is a double array.
-
Method Details
-
getKey
Get the entry key.- Returns:
- entry key
-
getValue
Get the value.- Returns:
- a copy of the value (independent from internal array if it is a double array)
-
increment
public void increment(double[] increment) Increment the value if it is a double array.For the sake of performance, no checks are done on argument.
- Parameters:
increment- increment to apply to the entry value
-
scaledIncrement
Increment the value with another scaled entry if it is a double array.Each component
value[i]will be replaced byvalue[i] + factor * raw.value[i].For the sake of performance, no checks are done on arguments.
- Parameters:
factor- multiplicative factor for incrementraw- raw increment to be multiplied byfactorand then added
-
zero
public void zero()Reset the value to zero if it is a double array.
-