Class Config.TemperatureConfig

java.lang.Object
com.inertia.promove.Config.TemperatureConfig
All Implemented Interfaces:
Config.AbstractConfig, Config.LegacyConfig
Enclosing class:
Config

@Deprecated
public static class Config.TemperatureConfig
extends java.lang.Object
Deprecated.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    boolean adoptMod  
    boolean enableLogging  
    boolean enableSampling  
    boolean enableTransmit  
    long mod  
  • Constructor Summary

    Constructors 
    Constructor Description
    TemperatureConfig()
    Deprecated.
    default constructor, setting the Mask
  • Method Summary

    Modifier and Type Method Description
    int getBytes​(byte[] out)
    encode current configuration in a byte array
    Config.Mask getMask()
    get mask
    int parse​(byte[] in)
    Deprecated.
    pare input byte array to relevant configuration and return length of encoded config
    void setMod​(long _mod)
    set modulus for sampling (i.e.
    void setSampling​(boolean _enableSampling, boolean _enableTransmit, boolean _enableLogging)
    set sampling related booleans
    java.lang.String toString()
    Deprecated.
    create a string representation of the configuration

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • TemperatureConfig

      public TemperatureConfig()
      Deprecated.
      default constructor, setting the Mask
  • Method Details

    • parse

      public int parse​(byte[] in) throws InertiaException
      Deprecated.
      Description copied from interface: Config.AbstractConfig
      pare input byte array to relevant configuration and return length of encoded config
      Specified by:
      parse in interface Config.AbstractConfig
      Parameters:
      in - input byte array
      Returns:
      length of encoded config
      Throws:
      InertiaException - upon error such as when length is insufficient
    • toString

      public java.lang.String toString()
      Deprecated.
      Description copied from interface: Config.AbstractConfig
      create a string representation of the configuration
      Specified by:
      toString in interface Config.AbstractConfig
      Returns:
      string representation of configuration
    • setSampling

      public void setSampling​(boolean _enableSampling, boolean _enableTransmit, boolean _enableLogging)
      set sampling related booleans
      Parameters:
      _enableSampling - enable sampling?
      _enableTransmit - enable transmission?
      _enableLogging - enable logging?
    • setMod

      public void setMod​(long _mod)
      set modulus for sampling (i.e. divider of global sampling frequency)
      Parameters:
      _mod - the modulus
    • getBytes

      public int getBytes​(byte[] out)
      Description copied from interface: Config.AbstractConfig
      encode current configuration in a byte array
      Specified by:
      getBytes in interface Config.AbstractConfig
      Parameters:
      out - byte array for encoded configuration
      Returns:
      length of encoded configuration
    • getMask

      public Config.Mask getMask()
      Description copied from interface: Config.AbstractConfig
      get mask
      Specified by:
      getMask in interface Config.AbstractConfig
      Returns:
      mask for this config