Package jsonStorage

Class JSONObjectData

java.lang.Object
jsonStorage.JSONObjectData
Direct Known Subclasses:
ClickBackgroundJSONData, ClickJSONData, WhistleJSONData

public class JSONObjectData extends Object
Class to hold data that will be converted into a json-formatted string. Individual classes should extend this class, and call the packDataUnitBaseData method in order to load up the generic fields with everything from the data unit base data Note that the majority of the fields use the wrapper (e.g. Integer) instead of the primitive (e.g. int) class so that they can be null if empty. The json formatter will ignore null fields.
Author:
michaeloswald
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Main constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    Added in so that the Click Detector can use the channelMap field to save the number of channels in it's nChan field (to match the Matlab code)
    Added in so that the Click Detector can copy over the sampleDuration variable into it's own duration field (to match the Matlab code)

    Methods inherited from class java.lang.Object

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

    • identifier

      public Integer identifier
  • Constructor Details

    • JSONObjectData

      public JSONObjectData()
      Main constructor
  • Method Details

    • getSampleDuration

      public Long getSampleDuration()
      Added in so that the Click Detector can copy over the sampleDuration variable into it's own duration field (to match the Matlab code)
      Returns:
    • getChannelMap

      public Integer getChannelMap()
      Added in so that the Click Detector can use the channelMap field to save the number of channels in it's nChan field (to match the Matlab code)
      Returns: