Package jadex.bdi.examples.alarmclock
Class Time
- java.lang.Object
- 
- jadex.bdi.examples.alarmclock.Time
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable
 
 public class Time extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableThe alarm time struct.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Creates and returns a copy of this object.booleanequals(java.lang.Object o)Test for equality.intgetHours()Get the hours.intgetMinutes()Get the minutes.intgetMonth()Get the month.intgetMonthday()Get the monthday.intgetSeconds()Get the seconds.intgetWeekday()Get the weekday.intgetYear()Get the year.inthashCode()Compute the hashcode.voidsetHours(int hours)Set the hours.voidsetMinutes(int minutes)Set the minutes.voidsetMonth(int month)Set the month.voidsetMonthday(int monthday)Set the monthday.voidsetSeconds(int seconds)Set the seconds.voidsetWeekday(int weekday)Set the weekday.voidsetYear(int year)Set the year.
 
- 
- 
- 
Constructor Detail- 
Timepublic Time() Create a new time.
 - 
Timepublic Time(java.util.Date date) Create a new time.
 - 
Timepublic Time(int seconds, int minutes, int hours, int weekday, int monthday, int month, int year)Create a new time.- Parameters:
- seconds- The seconds.
- minutes- The minutes.
- hours- The hours.
- weekday- The weekday.
- monthday- The day in month.
- month- The month.
- year- The year.
 
 
- 
 - 
Method Detail- 
getSecondspublic int getSeconds() Get the seconds.- Returns:
- The seconds.
 
 - 
setSecondspublic void setSeconds(int seconds) Set the seconds.- Parameters:
- seconds- The seconds.
 
 - 
getMinutespublic int getMinutes() Get the minutes.- Returns:
- The minutes.
 
 - 
setMinutespublic void setMinutes(int minutes) Set the minutes.- Parameters:
- minutes- The minutes.
 
 - 
getHourspublic int getHours() Get the hours.- Returns:
- The hours.
 
 - 
setHourspublic void setHours(int hours) Set the hours.- Parameters:
- hours- The hours.
 
 - 
getWeekdaypublic int getWeekday() Get the weekday.- Returns:
- The weekday.
 
 - 
setWeekdaypublic void setWeekday(int weekday) Set the weekday.- Parameters:
- weekday- The weekday.
 
 - 
getMonthdaypublic int getMonthday() Get the monthday.- Returns:
- The monthday.
 
 - 
setMonthdaypublic void setMonthday(int monthday) Set the monthday.- Parameters:
- monthday- The monthday.
 
 - 
getMonthpublic int getMonth() Get the month.- Returns:
- The month.
 
 - 
setMonthpublic void setMonth(int month) Set the month.- Parameters:
- month- The month.
 
 - 
getYearpublic int getYear() Get the year.- Returns:
- The year.
 
 - 
setYearpublic void setYear(int year) Set the year.- Parameters:
- year- The year.
 
 - 
equalspublic boolean equals(java.lang.Object o) Test for equality.- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- o- The object to test.
- Returns:
- True if equal.
 
 - 
hashCodepublic int hashCode() Compute the hashcode.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hashcode.
 
 - 
clonepublic java.lang.Object clone() Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object- Overrides:
- clonein class- java.lang.Object
 
 
- 
 
-