lejos.robotics
Interface Clock

All Known Implementing Classes:
RealTimeClock

public interface Clock

Interface for real time clock devices

Author:
Lawrie Griffiths

Method Summary
 String getAMPM()
           
 byte getByte(int loc)
           
 String getDateString()
           
 int getDay()
           
 int getDayOfWeek()
           
 int getHour()
           
 int getMinute()
           
 int getMonth()
           
 int getSecond()
           
 String getTimeString()
           
 int getYear()
           
 void setByte(int loc, byte b)
           
 void setDate(int m, int d, int y)
           
 void setHourMode(boolean mode)
           
 void setTime(int h, int m, int s)
           
 

Method Detail

getYear

int getYear()
            throws IOException
Throws:
IOException

getMonth

int getMonth()
             throws IOException
Throws:
IOException

getDay

int getDay()
           throws IOException
Throws:
IOException

getHour

int getHour()
            throws IOException
Throws:
IOException

getMinute

int getMinute()
              throws IOException
Throws:
IOException

getSecond

int getSecond()
              throws IOException
Throws:
IOException

getDayOfWeek

int getDayOfWeek()
                 throws IOException
Throws:
IOException

setHourMode

void setHourMode(boolean mode)
                 throws IOException
Throws:
IOException

getDateString

String getDateString()
                     throws IOException
Throws:
IOException

getTimeString

String getTimeString()
                     throws IOException
Throws:
IOException

getAMPM

String getAMPM()
               throws IOException
Throws:
IOException

getByte

byte getByte(int loc)
             throws IndexOutOfBoundsException,
                    IOException
Throws:
IndexOutOfBoundsException
IOException

setByte

void setByte(int loc,
             byte b)
             throws IndexOutOfBoundsException,
                    IOException
Throws:
IndexOutOfBoundsException
IOException

setDate

void setDate(int m,
             int d,
             int y)
             throws IllegalArgumentException,
                    IOException
Throws:
IllegalArgumentException
IOException

setTime

void setTime(int h,
             int m,
             int s)
             throws IllegalArgumentException,
                    IOException
Throws:
IllegalArgumentException
IOException