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 Link icon

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Main constructor
  • Method Summary Link icon

    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 Link icon

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

    • identifier Link icon

      public Integer identifier
  • Constructor Details Link icon

    • JSONObjectData Link icon

      public JSONObjectData()
      Main constructor
  • Method Details Link icon

    • getSampleDuration Link icon

      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 Link icon

      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: