pdf download - Software and Computer Technology - TU Delft
pdf download - Software and Computer Technology - TU Delft
pdf download - Software and Computer Technology - TU Delft
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
C.3 The Models Constructed for the Case Study Lydia Models<br />
}<br />
/ / so t h e r u l e i s i n d e p e n d e n t of any h e a l t h<br />
ERROR = (A != B) ;<br />
system PEU<br />
(<br />
bool POSVAL ERROR,<br />
bool h<br />
) {<br />
}<br />
/ / d e f i n i t i o n b e h a v i o r<br />
POSVAL ERROR => ! h ;<br />
/ / D e f i n i t i o n LUC Extension<br />
system LUC Extension<br />
(<br />
bool e pos ,<br />
bool c t r s p e e d ,<br />
bool I s e t , Pset , Pact ,<br />
bool POSITION ERROR ,<br />
bool h PEU ,<br />
bool h EXT<br />
) {<br />
/ / d e c l a r a t i o n i n t e r n a l s<br />
bool e s p ;<br />
/ / d e f i n i t i o n d e r i v a t i v e c t r s p e e d<br />
c t r s p e e d = ( I s e t != e s p ) ;<br />
}<br />
/ / d e f i n i t i o n b e h a v i o r<br />
h EXT => ( I s e t = e s p ) ;<br />
( P a c t != P s e t ) => POSITION ERROR ;<br />
e p o s = ( P a c t != P s e t ) ; / / by d e f i n i t i o n<br />
h EXT => ( POSITION ERROR => ( e p o s or ! h PEU ) ) ;<br />
/ / D e f i n i t i o n of a component<br />
system Component<br />
(<br />
bool i n s t a t u s ,<br />
bool o u t s t a t u s ,<br />
bool h<br />
) {<br />
/ / i f t h e component i s h e a l t h y ,<br />
/ / a c o r r e c t i n s t a t u s r e s u l t s i n a c o r r e c t o u t s t a t u s .<br />
h => ( o u t s t a t u s = i n s t a t u s ) ;<br />
}<br />
110