public static void apply_strength_exercise(BioGearsEngine engine)
        {
            var on  = new SEExercise();
            var off = new SEExercise();

            var strength = new SEExercise.SEStrengthTraining();

            strength.RepsStrength.SetValue(5);
            strength.WeightStrength.SetValue(0.2, MassUnit.kg);

            on.SetStrengthExercise(strength);

            apply_and_cancel_patient_action(engine, on, off);
        }
        public static void apply_cycling_exercise(BioGearsEngine engine)
        {
            var on  = new SEExercise();
            var off = new SEExercise();

            var cycling = new SEExercise.SECycling();

            cycling.AddedWeight.SetValue(5, MassUnit.lb);
            cycling.PowerCycle.SetValue(20, PowerUnit.W);
            cycling.CadenceCycle.SetValue(50, FrequencyUnit.Hz);
            on.SetCyclingExercise(cycling);

            apply_and_cancel_patient_action(engine, on, off);
        }
        public static void apply_running_exercise(BioGearsEngine engine)
        {
            var on  = new SEExercise();
            var off = new SEExercise();

            var running = new SEExercise.SERunning();

            running.AddedWeight.SetValue(5, MassUnit.kg);
            running.InclineRun.SetValue(0.2);
            running.SpeedRun.SetValue(5, LengthPerTimeUnit.ft_Per_min);


            on.SetRunningExercise(running);

            apply_and_cancel_patient_action(engine, on, off);
        }
        public static void apply_generic_exercise(BioGearsEngine engine)
        {
            var on  = new SEExercise();
            var off = new SEExercise();

            var generic = new SEExercise.SEGeneric();

            generic.DesiredWorkRate.SetValue(5, PowerUnit.W);
            try {
                generic.Intensity.SetValue(0.8);
            } catch (global::System.Exception /*ex*/) {
                engine.GetLogger().Error("Intensity is an SEScalar0To1 which throws a CDMException if the set value is greater then 1.0");
            }

            on.SetGenericExercise(generic);

            apply_and_cancel_patient_action(engine, on, off);
        }