Diferently the output the accelerometer provides to the heart-controller is defined below consitently to the requirement analisys definition that is a linear order andthus the choice of a subsetof the natural numbers.
\begin{vdm_al}
-- Accelerometer output public
ActivityData = nat1 inv a == a <= 7;
\end{vdm_al}
The heart controller can actuate in two different manners: either do nothing or discharge a pulse. The pulse was refined into two categories to distinguish if the system outputed an totally artificial pulse or a triggered response to sensing.
\begin{vdm_al} -- PPM public
PPM = nat1 inv ppm == ppm >= 30 and ppm <= 175;
\end{vdm_al}
Andto promote readabillity Timeis defined asnat type synonim.
\begin{vdm_al} -- Time public Time = nat;
end GLOBAL
\end{vdm_al}
¤ 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.0.1Bemerkung:
(vorverarbeitet)
¤
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.