judo ~
/
Assignment2
yolo
Fork of Assignment2 by
PaceHeart.h@5:45d58f8a5912, 2016-11-14 (annotated)
- Committer:
- weebgrammers
- Date:
- Mon Nov 14 21:36:01 2016 +0000
- Revision:
- 5:45d58f8a5912
- Parent:
- 3:641eefd1110b
- Child:
- 6:9b8fee13549c
anything;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Judorunner | 2:e2ae43e8acab | 1 | #include <string> |
Judorunner | 2:e2ae43e8acab | 2 | using namespace std; |
Judorunner | 2:e2ae43e8acab | 3 | |
Judorunner | 2:e2ae43e8acab | 4 | #ifndef PACEHEART_H |
Judorunner | 2:e2ae43e8acab | 5 | #define PACEHEART_H |
oopakhooo | 3:641eefd1110b | 6 | class PaceHeart{ |
oopakhooo | 3:641eefd1110b | 7 | |
oopakhooo | 3:641eefd1110b | 8 | private: |
oopakhooo | 3:641eefd1110b | 9 | int p_pacingState; |
oopakhooo | 3:641eefd1110b | 10 | int p_pacingMode; |
oopakhooo | 3:641eefd1110b | 11 | int p_hysteresis; |
oopakhooo | 3:641eefd1110b | 12 | int p_hysteresisInterval; |
oopakhooo | 3:641eefd1110b | 13 | int lowrateInterval; |
oopakhooo | 3:641eefd1110b | 14 | int uprateInterval; //upper rate limit |
oopakhooo | 3:641eefd1110b | 15 | //Ventricle |
oopakhooo | 3:641eefd1110b | 16 | double p_vPaceAmp; |
oopakhooo | 3:641eefd1110b | 17 | double p_vPaceWidth; |
oopakhooo | 3:641eefd1110b | 18 | int p_VRP; |
oopakhooo | 3:641eefd1110b | 19 | //Atrium (change defaults) |
oopakhooo | 3:641eefd1110b | 20 | double p_aPaceAmp; |
oopakhooo | 3:641eefd1110b | 21 | double p_aPaceWidth; |
oopakhooo | 3:641eefd1110b | 22 | int p_ARP; |
weebgrammers | 5:45d58f8a5912 | 23 | int activityThresh; |
weebgrammers | 5:45d58f8a5912 | 24 | int reactionTime; |
weebgrammers | 5:45d58f8a5912 | 25 | int responseFactor; |
weebgrammers | 5:45d58f8a5912 | 26 | int recoveryTime; |
oopakhooo | 3:641eefd1110b | 27 | public: |
oopakhooo | 3:641eefd1110b | 28 | PaceHeart(); |
weebgrammers | 5:45d58f8a5912 | 29 | PaceHeart(int mode); |
oopakhooo | 3:641eefd1110b | 30 | void pace_A(); |
oopakhooo | 3:641eefd1110b | 31 | void pace_A(double amp, double wid,int pin); |
oopakhooo | 3:641eefd1110b | 32 | void pace_V(double amp, double wid,int pin); |
oopakhooo | 3:641eefd1110b | 33 | void pace_V(); |
oopakhooo | 3:641eefd1110b | 34 | void pace(); |
oopakhooo | 3:641eefd1110b | 35 | void pace(int x); |
Judorunner | 2:e2ae43e8acab | 36 | int get_p_pacingState(); |
Judorunner | 2:e2ae43e8acab | 37 | int get_p_pacingMode(); |
Judorunner | 2:e2ae43e8acab | 38 | int get_p_hysteresis(); |
Judorunner | 2:e2ae43e8acab | 39 | void set_p_hysteresis(int x); |
oopakhooo | 3:641eefd1110b | 40 | int get_p_hysteresisInterval(); |
oopakhooo | 3:641eefd1110b | 41 | void set_p_hysteresisInterval(int x); |
Judorunner | 2:e2ae43e8acab | 42 | int get_lowrateInterval(); |
Judorunner | 2:e2ae43e8acab | 43 | void set_lowrateInterval(int x); |
oopakhooo | 3:641eefd1110b | 44 | int get_uprateInterval(); |
oopakhooo | 3:641eefd1110b | 45 | void set_uprateInterval(int x); |
oopakhooo | 3:641eefd1110b | 46 | double get_p_vPaceAmp(); |
oopakhooo | 3:641eefd1110b | 47 | void set_p_vPaceAmp(double x); |
Judorunner | 2:e2ae43e8acab | 48 | double get_p_vPaceWidth(); |
Judorunner | 2:e2ae43e8acab | 49 | void set_p_vPaceWidth(double x); |
Judorunner | 2:e2ae43e8acab | 50 | int get_p_VRP(); |
Judorunner | 2:e2ae43e8acab | 51 | void set_p_VRP(int x); |
oopakhooo | 3:641eefd1110b | 52 | double get_p_aPaceAmp(); |
oopakhooo | 3:641eefd1110b | 53 | void set_p_aPaceAmp(double x); |
oopakhooo | 3:641eefd1110b | 54 | double get_p_aPaceWidth(); |
oopakhooo | 3:641eefd1110b | 55 | void set_p_aPaceWidth(double x); |
oopakhooo | 3:641eefd1110b | 56 | int get_p_ARP(); |
oopakhooo | 3:641eefd1110b | 57 | void set_p_ARP(int x); |
weebgrammers | 5:45d58f8a5912 | 58 | int get_activityThresh(); |
weebgrammers | 5:45d58f8a5912 | 59 | int get_reactionTime(); |
weebgrammers | 5:45d58f8a5912 | 60 | int get_responseFactor(); |
weebgrammers | 5:45d58f8a5912 | 61 | int get_recoveryTime(); |
weebgrammers | 5:45d58f8a5912 | 62 | void set_activityThresh(); |
weebgrammers | 5:45d58f8a5912 | 63 | void set_reactionTime(); |
weebgrammers | 5:45d58f8a5912 | 64 | void set_responseFactor(); |
weebgrammers | 5:45d58f8a5912 | 65 | void set_recoveryTime(); |
oopakhooo | 3:641eefd1110b | 66 | }; |
Judorunner | 2:e2ae43e8acab | 67 | #endif |