INSTITUT FÃR INFORMATIK Entwurf und Implementierung - Ludwig ...
INSTITUT FÃR INFORMATIK Entwurf und Implementierung - Ludwig ...
INSTITUT FÃR INFORMATIK Entwurf und Implementierung - Ludwig ...
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
Anhang C Quellcode des PredictionSystem<br />
73 ///<br />
74 /// @param [in] time time_t Time to check timeouts (in seconds)<br />
75 ///<br />
76 void PredictionSystem::CheckTimeouts(time_t time) {<br />
77<br />
78 if(state == PreIctalSPH) {<br />
79 if(time > lastAlarmTime + parameter->SPH) {<br />
80 state = PreIctalSOP;<br />
81 }<br />
82 }<br />
83<br />
84 if(state == PreIctalSOP) {<br />
85<br />
86 if(time > lastAlarmTime + parameter->SPH + parameter->SOP) {<br />
87 state = InterIctal;<br />
88 parameter->incorrects.push_back(lastAlarmTime);<br />
89 }<br />
90 }<br />
91<br />
92 if(state == PostIctal) {<br />
93 if(time > lastSeizureTime + project.timeAfterSeizure) {<br />
94 state = InterIctal;<br />
95 }<br />
96 }<br />
97<br />
98 }<br />
Auistung C.2: Implementation der Klasse PredictionSystem.<br />
✆<br />
xvi