日期:2014-05-20  浏览次数:20566 次

帮忙解决个问题啦,各位大侠
分不够多了,只好先给这么点啦~一题20分

1.A   video   software   has   3   buttons:   Play,   Pause,   Step   Forward.   Initially,   only   play   button   is   visible.   When   user   clicks   play   button,   it   starts   to   play   video   and   only   pause   button   is   visible.   Click   pause,   only   play   and   step   forward   buttons   are   visible.   Complete   the   state   machine   table   below   with   3   states:   Play,   Pause,   Null.
State   \   Event Click   Play   button Click   Pause   button Click   Step   Forward   button
Init  
Play
Pause


2.
In   a   simple   game,   a   ball   is   moving   along   a   line   from   the   left   end   toward   the   right   end.
Show   UML   class   diagram

------解决方案--------------------
1: \ EventClick | Play buttonClick | Pause buttonClick |Step Forward button
State

Init Play Null Null
Play Pause Play Null
Pause Play Pause Play

2:不好显示图表