Ejemplo n.º 1
0
        public ActivityInfoOptions(bool defaultSmoothing)
            : base()
        {
            IAnalysisSettings a = TrailsPlugin.Plugin.GetApplication().SystemPreferences.AnalysisSettings;

            m_CadenceCutoff  = a.CadenceCutoff;
            m_IncludePaused  = a.IncludePaused;
            m_IncludeStopped = a.IncludeStopped;
            m_PowerCutoff    = a.PowerCutoff;

            if (defaultSmoothing)
            {
                m_CadenceSmoothingSeconds                      = a.CadenceSmoothingSeconds;
                m_ElevationSmoothingSeconds                    = a.ElevationSmoothingSeconds;
                m_HeartRateSmoothingSeconds                    = a.HeartRateSmoothingSeconds;
                m_PowerSmoothingSeconds                        = a.PowerSmoothingSeconds;
                m_SpeedSmoothingSeconds                        = a.SpeedSmoothingSeconds;
                m_PowerBalanceSmoothingSeconds                 = 0;  //ST no smoothing by default
                m_TemperatureSmoothingSeconds                  = 0;  //ST no smoothing by default
                m_GroundContactTimeSmoothingSeconds            = 10; //ST hardcoded
                m_VerticalOscillationSmoothingSeconds          = 10; //ST hardcoded
                m_SaturatedHemoglobinSmoothingSeconds          = 10; //ST hardcoded
                m_TotalHemoglobinConcentrationSmoothingSeconds = 10; //ST hardcoded
            }
            else
            {
                m_CadenceSmoothingSeconds                      = 0;
                m_ElevationSmoothingSeconds                    = 0;
                m_HeartRateSmoothingSeconds                    = 0;
                m_PowerSmoothingSeconds                        = 0;
                m_SpeedSmoothingSeconds                        = 0;
                m_PowerBalanceSmoothingSeconds                 = 0;
                m_TemperatureSmoothingSeconds                  = 0;
                m_GroundContactTimeSmoothingSeconds            = 0;
                m_VerticalOscillationSmoothingSeconds          = 0;
                m_SaturatedHemoglobinSmoothingSeconds          = 0;
                m_TotalHemoglobinConcentrationSmoothingSeconds = 0;
            }
        }
Ejemplo n.º 2
0
 public EmotionAnalysisSettings(IAnalysisSettings analysisSettings) : base(analysisSettings)
 {
 }
Ejemplo n.º 3
0
 public TextAnalyticAnalysisSettings(IAnalysisSettings analysisSettings) : base(analysisSettings)
 {
 }
Ejemplo n.º 4
0
 public CoreAnalysisSettings(IAnalysisSettings analysisSettings)
 {
     ActionsToPerform      = analysisSettings.ActionsToPerform;
     ConfigurationSettings = analysisSettings.ConfigurationSettings;
     CommunicationEngine   = analysisSettings.CommunicationEngine;
 }