Class AbstractDataProvider<DataUserType extends DataUser>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDataUser​(DataUserType dataUser)
      Add a data user.
      protected void fireUpdate()
      Notify all registered data users for a data update.
      void removeDataUser​(DataUserType dataUser)
      Remove a data user.
      protected byte toByte​(double value)
      Convert given value to a byte.
      protected byte[] toByte​(float[] values)
      Convert given value to a byte.
      • Methods inherited from class java.lang.Object

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

      • AbstractDataProvider

        public AbstractDataProvider()
    • Method Detail

      • fireUpdate

        protected final void fireUpdate()
        Notify all registered data users for a data update.
      • toByte

        protected byte toByte​(double value)
        Convert given value to a byte. double in [0, 1] are mapped to [0x00, 0xFF].
        Parameters:
        value - the given value.
        Returns:
        the byte corresponding to the given value.
      • toByte

        protected byte[] toByte​(float[] values)
        Convert given value to a byte. double in [0, 1] are mapped to [0x00, 0xFF].
        Parameters:
        values - the given value.
        Returns:
        the byte corresponding to the given value.