Class IeNormalizedValue

  • Direct Known Subclasses:
    IeScaledValue

    public class IeNormalizedValue
    extends InformationElement
    Represents a normalized value (NVA) information element.
    • Constructor Summary

      Constructors 
      Constructor Description
      IeNormalizedValue​(double value)
      Normalized value is a value in the range from -1 to (1-1/(2^15)).
      IeNormalizedValue​(int value)
      Normalized value is a value in the range from -1 to (1-1/(2^15)).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getNormalizedValue()
      Get the value as a normalized double value ranging from -1 to (1-1/(2^15))
      int getUnnormalizedValue()
      Get the value as a non-normalized integer value ranging from -32768..32767.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IeNormalizedValue

        public IeNormalizedValue​(int value)
        Normalized value is a value in the range from -1 to (1-1/(2^15)). The normalized value is encoded as a 16 bit integer ranging from -32768 to 32767. In order to get the normalized value the integer value is divided by 32768. Use this constructor to initialize the value exactly using the integer value in the range from -32768 to 32767.
        Parameters:
        value - non-normalized value in the range -32768 to 32767
      • IeNormalizedValue

        public IeNormalizedValue​(double value)
        Normalized value is a value in the range from -1 to (1-1/(2^15)). Use this constructor to initialize the value using a double value ranging from -1 to (1-1/(2^15)).
        Parameters:
        value - normalized value in the range -1 to (1-1/(2^15))
    • Method Detail

      • getNormalizedValue

        public double getNormalizedValue()
        Get the value as a normalized double value ranging from -1 to (1-1/(2^15))
        Returns:
        the value as a normalized double.
      • getUnnormalizedValue

        public int getUnnormalizedValue()
        Get the value as a non-normalized integer value ranging from -32768..32767. In order to get the normalized value the returned integer value has to be devided by 32768. The normalized value can also be retrieved using getNormalizedValue()
        Returns:
        the value as a non-normalized integer value