Interface Clock


  • public interface Clock
    Interface for real time clock devices
    Author:
    Lawrie Griffiths
    • Method Detail

      • getYear

        int getYear()
             throws java.io.IOException
        Throws:
        java.io.IOException
      • getMonth

        int getMonth()
              throws java.io.IOException
        Throws:
        java.io.IOException
      • getDay

        int getDay()
            throws java.io.IOException
        Throws:
        java.io.IOException
      • getHour

        int getHour()
             throws java.io.IOException
        Throws:
        java.io.IOException
      • getMinute

        int getMinute()
               throws java.io.IOException
        Throws:
        java.io.IOException
      • getSecond

        int getSecond()
               throws java.io.IOException
        Throws:
        java.io.IOException
      • getDayOfWeek

        int getDayOfWeek()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • setHourMode

        void setHourMode​(boolean mode)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getDateString

        java.lang.String getDateString()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getTimeString

        java.lang.String getTimeString()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getAMPM

        java.lang.String getAMPM()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • getByte

        byte getByte​(int loc)
              throws java.lang.IndexOutOfBoundsException,
                     java.io.IOException
        Throws:
        java.lang.IndexOutOfBoundsException
        java.io.IOException
      • setByte

        void setByte​(int loc,
                     byte b)
              throws java.lang.IndexOutOfBoundsException,
                     java.io.IOException
        Throws:
        java.lang.IndexOutOfBoundsException
        java.io.IOException
      • setDate

        void setDate​(int m,
                     int d,
                     int y)
              throws java.lang.IllegalArgumentException,
                     java.io.IOException
        Throws:
        java.lang.IllegalArgumentException
        java.io.IOException
      • setTime

        void setTime​(int h,
                     int m,
                     int s)
              throws java.lang.IllegalArgumentException,
                     java.io.IOException
        Throws:
        java.lang.IllegalArgumentException
        java.io.IOException