Class Config.LoggingConfig

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

public static class Config.LoggingConfig
extends java.lang.Object
implements Config.LegacyConfig
class for logging configuration
  • Field Summary

    Fields 
    Modifier and Type Field Description
    boolean autoStart  
    int frameSize  
    int type  
  • Constructor Summary

    Constructors 
    Constructor Description
    LoggingConfig()  
  • 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)
    pare input byte array to relevant configuration and return length of encoded config
    void set​(boolean _autoStart, int _type, int _frameSize)
    set logging related parameters
    java.lang.String toString()
    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

  • Method Details

    • set

      public void set​(boolean _autoStart, int _type, int _frameSize)
      set logging related parameters
      Parameters:
      _autoStart - start logging when the node is turned on?
      _type - the type of logging
      _frameSize - the number of samples per frame
    • parse

      public int parse​(byte[] in) throws InertiaException
      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
    • 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
    • toString

      public java.lang.String toString()
      Description copied from interface: Config.AbstractConfig
      create a string representation of the configuration
      Specified by:
      toString in interface Config.AbstractConfig
      Overrides:
      toString in class java.lang.Object
      Returns:
      string representation of 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