js/dataCollector/dataCollector.js
function configureEventCollection(eventType, collectionStatus, timePeriod){

    if (eventType in dataConfig){

        // check that collection status is present as true or false
        collectionStatus = collectionStatus == false ? false : true;
        dataConfig[eventType].status = collectionStatus;

        if(!isNaN(timePeriod)){

            timePeriod = parseInt(timePeriod);

            if(timePeriod > 0){

                dataConfig[eventType].timePeriod = timePeriod;

            }else{

                dataConfig[eventType].status = false;

            }
            
        }
    }

}
function configureEventCollection(eventType, collectionStatus, timePeriod){

    if (eventType in dataConfig){

        // check that collection status is present as true or false
        collectionStatus = collectionStatus == false ? false : true;
        dataConfig[eventType].status = collectionStatus;

        if(!isNaN(timePeriod)){

            timePeriod = parseInt(timePeriod);

            if(timePeriod > 0){

                dataConfig[eventType].timePeriod = timePeriod;

            }else{

                dataConfig[eventType].status = false;

            }
            
        }
    }

}
function configureEventCollection ( eventType , collectionStatus , timePeriod ) { if ( eventType in dataConfig ) { // check that collection status is present as true or false collectionStatus = collectionStatus == false ? false : true ; dataConfig [ eventType ] . status = collectionStatus ; if ( ! isNaN ( timePeriod ) ) { timePeriod = parseInt ( timePeriod ) ; if ( timePeriod > 0 ) { dataConfig [ eventType ] . timePeriod = timePeriod ; } else { dataConfig [ eventType ] . status = false ; } } } }
Configures which events to collect by default and by what frequency
@memberof DataCollector
@param {string} eventType type of event - Orientation, Gaze, Performance
@param {boolean} collectionStatus set to true if you want to collect the event
@param {number} timePeriod time period in milliseconds after which to collect the data
Configures which events to collect by default and by what frequency