Package noiseMonitor

Class NoiseLogging

java.lang.Object
generalDatabase.SQLLogging
noiseMonitor.NoiseLogging

public class NoiseLogging extends SQLLogging
  • Constructor Details Link icon

  • Method Details Link icon

    • createAndCheckTable Link icon

      public boolean createAndCheckTable()
      Called from the noise monitor process to recreate the table definition based on the noise measurements created by the user and then check the table columns in the database
      Returns:
      true if all Ok. False if no database or an error creating a column.
    • setTableData Link icon

      public void setTableData(SQLTypes sqlTypes, PamDataUnit pamDataUnit)
      Description copied from class: SQLLogging
      Callback function when new data are created that allows the user to set the data for each column. Columns that have data which can be filled automatically (counters, primary keys and columns cross referenced to data in other tables) are filled automatically in fillTableData()
      Specified by:
      setTableData in class SQLLogging
      Parameters:
      pamDataUnit -
    • createDataUnit Link icon

      protected PamDataUnit createDataUnit(SQLTypes sqlTypes, long timeMilliseconds, int databaseIndex)
      Description copied from class: SQLLogging
      Turn the data, which have been transferred back into the PamTableItems back into a usable data. Don't add to datablock. This will happen in calling function after additional add-ons and annotations have been added to the data unit. .
      Overrides:
      createDataUnit in class SQLLogging
      Returns:
      true if a data unit was successfully created