|
Example
|
#include "Capsule/CDefinesPrivate.h"#include "Capsule/CError.h"#include "Capsule/CNFBCalibrator.h"#include "Capsule/CSession.h"

Go to the source code of this file.
Classes | |
| struct | clCNFBMetricsProductivityBaselines |
| struct | clCNFBMetricsProductivityIndividualIndexes |
| struct | clCNFBMetricsProductivityValues |
| struct | clCNFBUserArtifacts |
| Artifacts when measuring the state user. More... | |
Functions | |
| CLC_CLASS_WN (ProductivityMetricsPrivate, clCNFBMetricProductivity) | |
| CL_DLL clCNFBMetricProductivity | clCNFBMetricsProductivity_Create (clCSession session, const char *path, double speed, double maxSpeed, double slowDown, clCError *error) NOEXCEPT |
| Create a NFB classifier for metrics productivity. | |
| CL_DLL clCNFBMetricProductivity | clCNFBMetricsProductivity_CreateCalibrated (clCNFBCalibrator calibrator, const char *path, double speed, double maxSpeed, double slowDown, clCError *error) NOEXCEPT |
| Create a NFB classifier for metrics productivity after individual NFB has been calibrated. | |
| CL_DLL void | clCNFBMetricsProductivity_Destroy (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Destroy NFB classifier. Release the NFBMetrics productivity handle. | |
| CL_DLL void | clCNFBMetricsProductivity_InitializeNFB (clCNFBMetricProductivity nfbMetrics, const char *platformAddress, clCError *error) NOEXCEPT |
| Initialize NFB classifier for metrics productivity. | |
| CLC_STRUCT (clCNFBMetricsProductivityCalibratedDelegate) | |
| CL_DLL void | clCNFBMetricsProductivity_CalibratedEvent_Set (clCNFBMetricsProductivityCalibratedDelegate delegate, clCNFBMetricsProductivityCalibratedHandler handler) NOEXCEPT |
| Set handler for calibrated event NFB classifier, not involved yet. | |
| CL_DLL clCNFBMetricsProductivityCalibratedDelegate | clCNFBMetricsProductivity_GetOnBaselineCalibratedEvent (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for baseline calibration finished event. | |
| CLC_STRUCT (clCNFBMetricsProductivityInitialBaselineCalibratedDelegate) | |
| CL_DLL void | clCNFBMetricsProductivity_InitialBaselineCalibratedEvent_Set (clCNFBMetricsProductivityInitialBaselineCalibratedDelegate delegate, clCNFBMetricsProductivityInitialBaselineCalibratedHandler handler) NOEXCEPT |
| Set delegate for initial baseline calibration finished event. | |
| CL_DLL clCNFBMetricsProductivityInitialBaselineCalibratedDelegate | clCNFBMetricsProductivity_GetOnInitialBaselineCalibratedEvent (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for initial baseline calibration finished event. | |
| CLC_STRUCT (clCNFBMetricsProductivityIndividualDelegate) | |
| CL_DLL clCNFBMetricsProductivityIndividualDelegate | clCNFBMetricsProductivity_GetOnIndividualMeasuredEvent (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for Individual measure event. | |
| CL_DLL void | clCNFBMetricsProductivity_IndividualMeasuredEvent_Set (clCNFBMetricsProductivityIndividualDelegate delegate, clCNFBMetricsProductivityIndividualHandler handler) NOEXCEPT |
| Set handler for Individual measure event. | |
| CLC_STRUCT (clCNFBMetricsProductivityValuesDelegate) | |
| CL_DLL clCNFBMetricsProductivityValuesDelegate | clCNFBMetricsProductivity_GetOnProductivityValuesEvent (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for Productivity scores event. | |
| CL_DLL void | clCNFBMetricsProductivity_ValuesEvent_Set (clCNFBMetricsProductivityValuesDelegate delegate, clCNFBMetricsProductivityValuesHandler handler) NOEXCEPT |
| Set handler for Productivity scores event. | |
| CL_DLL float | clCNFBMetricsProductivity_GetIAPF (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Set handler for Individual measure event. | |
| CL_DLL float | clCNFBMetricsProductivity_GetIAF (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Set handler for Individual measure event. | |
| CL_DLL void | clCNFBMetricsProductivity_ResetAccumulatedFatigue (clCNFBMetricProductivity nfbMetrics, clCError *error) NOEXCEPT |
| Reset accumulated fatigue and start calculated it from 0. | |
| CLC_STRUCT (clCNFBMetricsProductivityArtifactsDelegate) | |
| CL_DLL clCNFBMetricsProductivityArtifactsDelegate | clCNFBMetricsProductivity_GetOnArtifactsEvent (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for occurrence artifacts event. | |
| CL_DLL void | clCNFBMetricsProductivity_ArtifactsEvent_Set (clCNFBMetricsProductivityArtifactsDelegate delegate, clCNFBMetricsProductivityArtifactsHandler handler) NOEXCEPT |
| Set handler for occurrence artifacts event. | |
| CLC_STRUCT (clCNFBMetricsProductivityTrainingInfoDelegate) | |
| CL_DLL void | clCNFBMetricsProductivity_TrainingInfoEvent_Set (clCNFBMetricsProductivityTrainingInfoDelegate delegate, clCNFBMetricsProductivityTrainingInfoHandler handler) NOEXCEPT |
| CL_DLL clCNFBMetricsProductivityTrainingInfoDelegate | clCNFBMetricsProductivity_GetOnTrainingInfoEvent (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| CLC_STRUCT (clCNFBMetricsProductivityEventDelegate) | |
| CL_DLL void | clCNFBMetricsProductivity_UpdateEvent_Set (clCNFBMetricsProductivityEventDelegate delegate, clCNFBMetricsProductivityEventHandler handler) NOEXCEPT |
| Set handler for update event productivity metrics: 1min, 5min ... 60min. | |
| CL_DLL clCNFBMetricsProductivityEventDelegate | clCNFBMetricsProductivity_GetOnUpdateEvent_1min (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for update event productivity metric 1 min. | |
| CL_DLL clCNFBMetricsProductivityEventDelegate | clCNFBMetricsProductivity_GetOnUpdateEvent_5min (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for update event productivity metric 5 min. | |
| CL_DLL clCNFBMetricsProductivityEventDelegate | clCNFBMetricsProductivity_GetOnUpdateEvent_15min (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for update event productivity metric 15 min. | |
| CL_DLL clCNFBMetricsProductivityEventDelegate | clCNFBMetricsProductivity_GetOnUpdateEvent_30min (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for update event productivity metric 30 min. | |
| CL_DLL clCNFBMetricsProductivityEventDelegate | clCNFBMetricsProductivity_GetOnUpdateEvent_60min (clCNFBMetricProductivity nfbMetrics) NOEXCEPT |
| Get delegate for update event productivity metric 60 min. | |
| typedef float clCNFBMetricsProductivity_CurrentPowerIAPF |
| typedef float clCNFBMetricsProductivity_relaxValue |
| typedef void(* clCNFBMetricsProductivityArtifactsHandler) (clCNFBMetricProductivity, const clCNFBUserArtifacts *) |
| typedef void(* clCNFBMetricsProductivityCalibratedHandler) (clCNFBMetricProductivity) |
| typedef void(* clCNFBMetricsProductivityEventHandler) (clCNFBMetricProductivity, float) |
| typedef void(* clCNFBMetricsProductivityIndividualHandler) (clCNFBMetricProductivity, const clCNFBMetricsProductivityIndividualIndexes *) |
| typedef struct clCNFBMetricsProductivityIndividualIndexes clCNFBMetricsProductivityIndividualIndexes |
| typedef void(* clCNFBMetricsProductivityInitialBaselineCalibratedHandler) (clCNFBMetricProductivity, const clCNFBMetricsProductivityBaselines *) |
| typedef void(* clCNFBMetricsProductivityTrainingInfoHandler) (clCNFBMetricProductivity, clCNFBMetricsProductivity_CurrentPowerIAPF, clCNFBMetricsProductivity_relaxValue) |
| typedef struct clCNFBMetricsProductivityValues clCNFBMetricsProductivityValues |
| typedef void(* clCNFBMetricsProductivityValuesHandler) (clCNFBMetricProductivity, const clCNFBMetricsProductivityValues *) |
| typedef struct clCNFBUserArtifacts clCNFBUserArtifacts |
Artifacts when measuring the state user.
| CLC_CLASS_WN | ( | ProductivityMetricsPrivate | , |
| clCNFBMetricProductivity | |||
| ) |
| CLC_STRUCT | ( | clCNFBMetricsProductivityArtifactsDelegate | ) |
| CLC_STRUCT | ( | clCNFBMetricsProductivityCalibratedDelegate | ) |
| CLC_STRUCT | ( | clCNFBMetricsProductivityEventDelegate | ) |
| CLC_STRUCT | ( | clCNFBMetricsProductivityIndividualDelegate | ) |
| CLC_STRUCT | ( | clCNFBMetricsProductivityInitialBaselineCalibratedDelegate | ) |
| CLC_STRUCT | ( | clCNFBMetricsProductivityTrainingInfoDelegate | ) |
| CLC_STRUCT | ( | clCNFBMetricsProductivityValuesDelegate | ) |
| CL_DLL void clCNFBMetricsProductivity_ArtifactsEvent_Set | ( | clCNFBMetricsProductivityArtifactsDelegate | delegate, |
| clCNFBMetricsProductivityArtifactsHandler | handler | ||
| ) |
Set handler for occurrence artifacts event.
| CL_DLL void clCNFBMetricsProductivity_CalibratedEvent_Set | ( | clCNFBMetricsProductivityCalibratedDelegate | delegate, |
| clCNFBMetricsProductivityCalibratedHandler | handler | ||
| ) |
Set handler for calibrated event NFB classifier, not involved yet.
| CL_DLL clCNFBMetricProductivity clCNFBMetricsProductivity_Create | ( | clCSession | session, |
| const char * | path, | ||
| double | speed, | ||
| double | maxSpeed, | ||
| double | slowDown, | ||
| clCError * | error | ||
| ) |
Create a NFB classifier for metrics productivity.
| session | session handle. Valid session must be passed (does not need to be active) |
| path | path to the directory with logs |
| error | out error parameter |
| CL_DLL clCNFBMetricProductivity clCNFBMetricsProductivity_CreateCalibrated | ( | clCNFBCalibrator | calibrator, |
| const char * | path, | ||
| double | speed, | ||
| double | maxSpeed, | ||
| double | slowDown, | ||
| clCError * | error | ||
| ) |
Create a NFB classifier for metrics productivity after individual NFB has been calibrated.
| calibrator | calibrator handle. A calibrated calibrator must be passed |
| path | path to the directory with logs |
| error | out error parameter |
| CL_DLL void clCNFBMetricsProductivity_Destroy | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Destroy NFB classifier. Release the NFBMetrics productivity handle.
| nfbMetrics | NFBMetrics productivity handle |
| CL_DLL float clCNFBMetricsProductivity_GetIAF | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Set handler for Individual measure event.
| CL_DLL float clCNFBMetricsProductivity_GetIAPF | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Set handler for Individual measure event.
| CL_DLL clCNFBMetricsProductivityArtifactsDelegate clCNFBMetricsProductivity_GetOnArtifactsEvent | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for occurrence artifacts event.
| CL_DLL clCNFBMetricsProductivityCalibratedDelegate clCNFBMetricsProductivity_GetOnBaselineCalibratedEvent | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for baseline calibration finished event.
| CL_DLL clCNFBMetricsProductivityIndividualDelegate clCNFBMetricsProductivity_GetOnIndividualMeasuredEvent | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for Individual measure event.
| CL_DLL clCNFBMetricsProductivityInitialBaselineCalibratedDelegate clCNFBMetricsProductivity_GetOnInitialBaselineCalibratedEvent | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for initial baseline calibration finished event.
| CL_DLL clCNFBMetricsProductivityValuesDelegate clCNFBMetricsProductivity_GetOnProductivityValuesEvent | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for Productivity scores event.
| CL_DLL clCNFBMetricsProductivityTrainingInfoDelegate clCNFBMetricsProductivity_GetOnTrainingInfoEvent | ( | clCNFBMetricProductivity | nfbMetrics | ) |
| CL_DLL clCNFBMetricsProductivityEventDelegate clCNFBMetricsProductivity_GetOnUpdateEvent_15min | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for update event productivity metric 15 min.
| CL_DLL clCNFBMetricsProductivityEventDelegate clCNFBMetricsProductivity_GetOnUpdateEvent_1min | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for update event productivity metric 1 min.
| CL_DLL clCNFBMetricsProductivityEventDelegate clCNFBMetricsProductivity_GetOnUpdateEvent_30min | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for update event productivity metric 30 min.
| CL_DLL clCNFBMetricsProductivityEventDelegate clCNFBMetricsProductivity_GetOnUpdateEvent_5min | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for update event productivity metric 5 min.
| CL_DLL clCNFBMetricsProductivityEventDelegate clCNFBMetricsProductivity_GetOnUpdateEvent_60min | ( | clCNFBMetricProductivity | nfbMetrics | ) |
Get delegate for update event productivity metric 60 min.
| CL_DLL void clCNFBMetricsProductivity_IndividualMeasuredEvent_Set | ( | clCNFBMetricsProductivityIndividualDelegate | delegate, |
| clCNFBMetricsProductivityIndividualHandler | handler | ||
| ) |
Set handler for Individual measure event.
| CL_DLL void clCNFBMetricsProductivity_InitialBaselineCalibratedEvent_Set | ( | clCNFBMetricsProductivityInitialBaselineCalibratedDelegate | delegate, |
| clCNFBMetricsProductivityInitialBaselineCalibratedHandler | handler | ||
| ) |
Set delegate for initial baseline calibration finished event.
| CL_DLL void clCNFBMetricsProductivity_InitializeNFB | ( | clCNFBMetricProductivity | nfbMetrics, |
| const char * | platformAddress, | ||
| clCError * | error | ||
| ) |
Initialize NFB classifier for metrics productivity.
| nfbMetrics | NFBMetrics productivity handle |
| CL_DLL void clCNFBMetricsProductivity_ResetAccumulatedFatigue | ( | clCNFBMetricProductivity | nfbMetrics, |
| clCError * | error | ||
| ) |
Reset accumulated fatigue and start calculated it from 0.
| CL_DLL void clCNFBMetricsProductivity_TrainingInfoEvent_Set | ( | clCNFBMetricsProductivityTrainingInfoDelegate | delegate, |
| clCNFBMetricsProductivityTrainingInfoHandler | handler | ||
| ) |
| CL_DLL void clCNFBMetricsProductivity_UpdateEvent_Set | ( | clCNFBMetricsProductivityEventDelegate | delegate, |
| clCNFBMetricsProductivityEventHandler | handler | ||
| ) |
Set handler for update event productivity metrics: 1min, 5min ... 60min.
| CL_DLL void clCNFBMetricsProductivity_ValuesEvent_Set | ( | clCNFBMetricsProductivityValuesDelegate | delegate, |
| clCNFBMetricsProductivityValuesHandler | handler | ||
| ) |
Set handler for Productivity scores event.