1460 Elevator (Web hosting plans) View (on CD) Appendix I elevatorPanel
December 12th, 20071460 Elevator View (on CD) Appendix I elevatorPanel : MovingPanel firstFloorButtonPanel : AnimatedPanel secondFloorButtonPanel : AnimatedPanel elevatorButtonPanel : AnimatedPanel doorPanel : AnimatedPanel secondFloorLightPanel : AnimatedPanel firstFloorLightPanel : AnimatedPanel bellPanel : AnimatedPanel elevatorShaftPanel : ImagePanel secondFloorPanel : ImagePanel lightPanel : AnimatedPanel firstFloorPanel : ImagePanel : SoundEffects bellClip : AudioClip doorOpenClip : AudioClip doorCloseClip : AudioClip elevatorClip : AudioClip buttonClip : AudioClip walkClip : AudioClip ceilingPanel : ImagePanel wallPanel : ImagePanel : ElevatorView : ElevatorMusic Fig. I.4 Object diagram for the ElevatorViewafter initialization. The ElevatorViewobject links (contains an association) with all objects presented in Fig. I.4. The elevatorPanel links with objects elevatorLightPanel, bell- Panel, doorPanel and elevatorButtonPanel. This association provides a visualization of what is happening in the model the Elevator contains a Light, Bell, Door and Button. The SoundEffects object links with the AudioClip objects, because the SoundEffectsobject generates the AudioClipobjects. I.5 Event Handling Figure 13.19 specified that the ElevatorView implements interface ElevatorModelListener, which implements all interfaces in the simulation. The ElevatorSimulation registers the ElevatorView as a listener for events from the ElevatorModel; in other words, the ElevatorModel sends all events generated in the model to the ElevatorView. Every method implementing an interface receives an event object of type ElevatorModelEvent(or a subclass) as a parameter. For example, the doorOpenedmethod
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.