Page 44 - النمذجة والمحاكاة
P. 44
?????? ??????
???????? ????????? ???????? ??????????? ??????????
?????? ??? ????????? ? ???????? ?????
?????? ??????? ??? ??? ??????
?? event ?? .1?????? ( ?when??
????)frontdoor is clicked??? ?????:????
?? True )1?????? ????? ???????? ??????? ???????? ???? ????????.??
??false )2?????? ????? ???????? ???? ???????? ???? ?????.??
??????? ????? ?????????? ??????????? ????? ??????? ?if??
??? controls ?? .2????? ? if-else??? ???? ?blocks??
??? items?? -1????? ????????? (? )doorlocked??? ????? ??? ????? (?)1??
????????? ????if ???
???? -2??? ????????(=)?
??items ?? -3??
??????(?? ? )false???? ?? ????? (?)2??
?? .3??? ?????? ? if????)false( ????
????????? ????? (????? ???? ??????? ??? ????????? ?????? ?:??
?• ???? action???????????? ?( say????? ??? ????????? ??????)?
??( .4??? ?????? ? if?????? )true( ???????? ????? (???????) ?????? ??? ????? ??????
?????????:??
??? action ?? )a??????
??- 36 -??