Package devices
Class MobileDevice
- java.lang.Object
-
- start.Product
-
- devices.MobileDevice
-
- All Implemented Interfaces:
Item,MultimediaControl
public class MobileDevice extends Product implements MultimediaControl
A Device that has All the features of a computer in one mobile device.- Author:
- Brandon Heck
-
-
Constructor Summary
Constructors Constructor Description MobileDevice(Widget widget, SpeakerType speakerType, AudioPlayer audioPlayer, MoviePlayer moviePlayer)A Mobile Device that Plays Audio, Plays Videos, and has a Speaker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioPlayergetAudioPlayer()Retrieve the Audio Player information that was assigned.java.lang.StringgetInfo()Additional product information when called by product.MoviePlayergetMoviePlayer()Retrieve the MoviePlayer information that was assigned.SpeakerTypegetSpeakerType()Retrieve the Speaker Type information that was assigned.voidnext()Play the next media from the device.voidplay()Play media from the device.voidprevious()Play the previous media from the device.voidstop()Stop media from the device.java.lang.StringtoString()-
Methods inherited from class start.Product
getEmployee, getId, getItemType, getManufacturer, getName, getType, setEmployee, setItemType, setManufacturer, setName
-
-
-
-
Constructor Detail
-
MobileDevice
public MobileDevice(Widget widget, SpeakerType speakerType, AudioPlayer audioPlayer, MoviePlayer moviePlayer)
A Mobile Device that Plays Audio, Plays Videos, and has a Speaker.- Parameters:
widget- Widget Information.speakerType- The type of Speaker in the Device.audioPlayer- Audio Player Information.moviePlayer- Movie Player Screen Information.
-
-
Method Detail
-
getSpeakerType
public SpeakerType getSpeakerType()
Retrieve the Speaker Type information that was assigned.- Returns:
- Speaker Type.
-
getAudioPlayer
public AudioPlayer getAudioPlayer()
Retrieve the Audio Player information that was assigned.- Returns:
- Audio Player Object.
-
getMoviePlayer
public MoviePlayer getMoviePlayer()
Retrieve the MoviePlayer information that was assigned.- Returns:
- MoviePlayer Object.
-
play
public void play()
Description copied from interface:MultimediaControlPlay media from the device.- Specified by:
playin interfaceMultimediaControl
-
stop
public void stop()
Description copied from interface:MultimediaControlStop media from the device.- Specified by:
stopin interfaceMultimediaControl
-
previous
public void previous()
Description copied from interface:MultimediaControlPlay the previous media from the device.- Specified by:
previousin interfaceMultimediaControl
-
next
public void next()
Description copied from interface:MultimediaControlPlay the next media from the device.- Specified by:
nextin interfaceMultimediaControl
-
getInfo
public java.lang.String getInfo()
Additional product information when called by product.- Returns:
- Mobile Device Details.
-
-