Package jsonStorage
Class JSONObjectData
java.lang.Object
jsonStorage.JSONObjectData
- Direct Known Subclasses:
ClickBackgroundJSONData
,ClickJSONData
,WhistleJSONData
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdded 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)
-
Field Details
-
identifier
-
-
Constructor Details
-
JSONObjectData
public JSONObjectData()Main constructor
-
-
Method Details
-
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
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:
-