com.esf.sbc.catalyst.system.management.service
Class RtcTime

java.lang.Object
  extended by com.esf.sbc.catalyst.system.management.service.RtcTime

public class RtcTime
extends java.lang.Object

Provides interface to real-time clock (RTC) values.

Author:
wes.johnson

Constructor Summary
RtcTime()
          constructor to create an empty RtcTime class
RtcTime(long seconds, long minutes, long hours, long dayOfMonth, long month, long year, long dayOfWeek, long dayOfYear)
          constructor to create a fully initialized RtcTime class
RtcTime(RtcTime time)
          copy constructor
 
Method Summary
 long getDayOfMonth()
          gets the day of the month held in the RtcTime class
 long getDayOfWeek()
          gets the day of the week held in the RtcTime class
 long getDayOfYear()
          gets the day of the year held in the RtcTime class
 long getHours()
          gets the hours held in the RtcTime class
 long getMinutes()
          gets the minutes held in the RtcTime class
 long getMonth()
          gets the month held in the RtcTime class
 long getSeconds()
          gets the seconds held in the RtcTime class
 long getYear()
          gets the year held in the RtcTime class
 void setDayOfMonth(long dayOfMonth)
          sets the day of the month for the RtcTime class
 void setDayOfWeek(long dayOfWeek)
          sets the day of the week for the RtcTime class
 void setDayOfYear(long dayOfYear)
          sets the day of the year for the RtcTime class
 void setHours(long hours)
          sets the hours for the RtcTime class
 void setMinutes(long minutes)
          sets the minutes for the RtcTime class
 void setMonth(long month)
          sets the month for the RtcTime class
 void setSeconds(long seconds)
          sets the seconds for the RtcTime class
 void setYear(long year)
          sets the year for the RtcTime class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtcTime

public RtcTime()
constructor to create an empty RtcTime class


RtcTime

public RtcTime(long seconds,
               long minutes,
               long hours,
               long dayOfMonth,
               long month,
               long year,
               long dayOfWeek,
               long dayOfYear)
constructor to create a fully initialized RtcTime class

Parameters:
seconds - seconds from 0 to 59
minutes - minutes from 0 to 59
hours - hours from 0 to 23
dayOfMonth - day of month from 1 to 31
month - month from 1 to 12
year - year from 0 to 4095
dayOfWeek - day of week from 0 to 6
dayOfYear - day of year from 1 to 365

RtcTime

public RtcTime(RtcTime time)
copy constructor

Parameters:
time - the value of the RtcTime class to copy
Method Detail

getSeconds

public long getSeconds()
gets the seconds held in the RtcTime class

Returns:
the second value

setSeconds

public void setSeconds(long seconds)
sets the seconds for the RtcTime class

Parameters:
seconds - the second value to store

getMinutes

public long getMinutes()
gets the minutes held in the RtcTime class

Returns:
the minute value

setMinutes

public void setMinutes(long minutes)
sets the minutes for the RtcTime class

Parameters:
minutes - the minute value to store

getHours

public long getHours()
gets the hours held in the RtcTime class

Returns:
the hour value

setHours

public void setHours(long hours)
sets the hours for the RtcTime class

Parameters:
hours - the hour value to store

getDayOfMonth

public long getDayOfMonth()
gets the day of the month held in the RtcTime class

Returns:
the day of month value

setDayOfMonth

public void setDayOfMonth(long dayOfMonth)
sets the day of the month for the RtcTime class

Parameters:
dayOfMonth - the day of the month value to store

getMonth

public long getMonth()
gets the month held in the RtcTime class

Returns:
the month value

setMonth

public void setMonth(long month)
sets the month for the RtcTime class

Parameters:
month - the month value to store

getYear

public long getYear()
gets the year held in the RtcTime class

Returns:
the year value

setYear

public void setYear(long year)
sets the year for the RtcTime class

Parameters:
year - the year value to store

getDayOfWeek

public long getDayOfWeek()
gets the day of the week held in the RtcTime class

Returns:
the day of week value

setDayOfWeek

public void setDayOfWeek(long dayOfWeek)
sets the day of the week for the RtcTime class

Parameters:
dayOfWeek - the day of the week value to store

getDayOfYear

public long getDayOfYear()
gets the day of the year held in the RtcTime class

Returns:
the day of year value

setDayOfYear

public void setDayOfYear(long dayOfYear)
sets the day of the year for the RtcTime class

Parameters:
dayOfYear - the day of the year value to store