Code coverage report for api/data_list/ExperimentDataList.js

Statements: 100% (11 / 11)      Branches: 50% (1 / 2)      Functions: 100% (1 / 1)      Lines: 100% (11 / 11)      Ignored: none     

All files » api/data_list/ » ExperimentDataList.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 411 1 1 1                   1 1 1   1 1     1                                   1  
var SubExperimentDataList = require("./SubExperimentDataList").SubExperimentDataList;
var DocumentCollection = require("./../datum/DocumentCollection").DocumentCollection;
var Comments = require("./../comment/Comments").Comments;
var ContextualizableObject = require("./../locales/ContextualizableObject").ContextualizableObject;
 
/**
 * @class The ExperimentDataList allows the user to add additional information
 *  which can be used for experiments using the datum in the datalist.
 *
 * @name  ExperimentDataList
 * @extends SubExperimentDataList
 * @constructs
 */
var ExperimentDataList = function ExperimentDataList(options) {
  Eif (!this._fieldDBtype) {
    this._fieldDBtype = "ExperimentDataList";
  }
  this.debug("Constructing ExperimentDataList ", options);
  SubExperimentDataList.apply(this, arguments);
};
 
ExperimentDataList.prototype = Object.create(SubExperimentDataList.prototype, /** @lends ExperimentDataList.prototype */ {
  constructor: {
    value: ExperimentDataList
  },
 
  // Internal models: used by the parse function
  INTERNAL_MODELS: {
    value: {
      comments: Comments,
      docs: DocumentCollection,
      title: ContextualizableObject,
      description: ContextualizableObject,
      instructions: ContextualizableObject,
      item: SubExperimentDataList
    }
  }
 
});
exports.ExperimentDataList = ExperimentDataList;