The RateController is the class that models the rate adaptation control. For doing that it has the sensed instance variable where the last accelerometer value is stored and the interval corresponds to the actual rate interval.
\begin{vdm_al} class RateController issubclassof GLOBAL
This is the method that should be used to inspect wich is the actual value of the maximum interval between atrial events in order to achieve a bpm rate above or equal the LRL defined.
\begin{vdm_al} public
getInterval : () ==> Time
getInterval () == return interval;
\end{vdm_al}
Each time step the controlRate operation will be invoked if there was some input from the accelerometer.
\begin{vdm_al}
public
Step : () ==> ()
Step () == if sensed <> nilthen controlRate();
\end{vdm_al}
The control of the rate is done regarding a threshold.
\begin{vdm_al} private
controlRate : () ==> ()
controlRate () ==
( if sensed > threshold then increaseRate() elseif sensed < threshold then decreaseRate() elseskip;
sensed := nil;
);
\end{vdm_al}
Stimulate is the handler wich the acclerometer will call to deliver input.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.