pdf download - Software and Computer Technology - TU Delft
pdf download - Software and Computer Technology - TU Delft
pdf download - Software and Computer Technology - TU Delft
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Appendix C<br />
Lydia Models<br />
This appendix lists the Lydia models that are discussed in this thesis.<br />
C.1 The Synthetic Models that are Used in this Thesis<br />
C.1.1<br />
Structural Model of the 3-inverter Example<br />
system i n v e r t e r ( b ool i , h , o )<br />
{<br />
a t t r i b u t e h e a l t h ( h ) = t r u e ;<br />
a t t r i b u t e p r o b a b i l i t y ( h ) = h ? 0 . 9 9 : 0 . 0 1 ;<br />
}<br />
/ / I f h e a l t h y , a c o r r e c t i n p u t r e s u l t s i n a c o r r e c t<br />
o u t p u t<br />
h => ( i = o ) ;<br />
system i n v e r t e r s 3<br />
(<br />
bool c o r r e c t w , / / i n p u t<br />
bool hA , hB , hC , / / h e a l t h s<br />
bool c o r r e c t y , c o r r e c t z / / o u t p u t s<br />
)<br />
{<br />
/ / D e c l a r a t i o n i n t e r n a l v a r i a b l e s<br />
bool c o r r e c t x ;<br />
/ / D e c l a r a t i o n o b s e r v a b l e s<br />
a t t r i b u t e o b s e r v a b l e ( c o r r e c t y , c o r r e c t z ) = t r u e ;<br />
/ / D e c l a r a t i o n i n v e r t e r s<br />
system i n v e r t e r invA , invB , invC ;<br />
/ / i n p u t i s assumed t o be c o r r e c t<br />
91