Class MoviePlayer

    • Constructor Summary

      Constructors 
      Constructor Description
      MoviePlayer​(java.lang.String name, java.lang.String manufacturer, Screen screen, MonitorType monitorType)
      Constructor for the MoviePlayer class which calls Product constructor to set up all the variables and then sets up it's object variables.
    • Constructor Detail

      • MoviePlayer

        public MoviePlayer​(java.lang.String name,
                           java.lang.String manufacturer,
                           Screen screen,
                           MonitorType monitorType)
        Constructor for the MoviePlayer class which calls Product constructor to set up all the variables and then sets up it's object variables.
        Parameters:
        name - The name of the movie player
        manufacturer - The manufacturer of the movie player
        screen - The screen type of the movie player
        monitorType - The monitor type of the movie player
    • Method Detail

      • toString

        public java.lang.String toString()
        Calls Product toString method and then appends the screen and monitor type
        Overrides:
        toString in class Product
        Returns:
        The string output of the moviePlayer object
      • play

        public void play()
        Output that the movie is playing
        Specified by:
        play in interface MultimediaControl
      • stop

        public void stop()
        Output that the movie is stopping
        Specified by:
        stop in interface MultimediaControl
      • previous

        public void previous()
        Output that the player is going to the previous movie
        Specified by:
        previous in interface MultimediaControl
      • next

        public void next()
        Output that the player is going to the next movie
        Specified by:
        next in interface MultimediaControl