JetEngine - Interface Example - The Jet Engine The...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Interface Example - The Jet Engine The JetEngine Class We have software components on our aircraft that control the operation of corresponding mechanical components, one example being the jet engines. Below is a picture of the JetEngine class/object showing a sample of its various methods. JetEngine getRPM() setRPM() getFuelRate() openCovers() stopEngine() lockFanBlades() startEngine()
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Airplane Applications There are several applications that run on the airplane that need access to the JetEngine. 1. CabinInformationConsole This is a display in the passenger cabin that shows interesting information about the engine: how much fuel it is burning, how many RPM it is turning, how fast we are going, etc. 2. PilotCommandCenter This is the application at the in the pilot cabin that actually controls the operation of the engine while in flight. 3. MaintenenceConsole This is a console that the ground crew uses when doing maintenance on the engine between flights.
Background image of page 2
How to provide required access, yet provide protection? All of the JetEngine methods must be public, since they are all accessed by external
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/25/2010 for the course ECE 309 taught by Professor Bowman during the Spring '09 term at N.C. State.

Page1 / 3

JetEngine - Interface Example - The Jet Engine The...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online