agentland.info
Class  Appointment
java.lang.Object
  |
  +--agentland.info.Appointment
- All Implemented Interfaces: 
- Serializable
- public class Appointment- extends Object- implements Serializable
Appointment is a class that represents personal
appointments to be kept in each persons schedule.
- See Also: 
- Serializable, Serialized Form
 
 
 
Appointment
public Appointment()
- Creates a new Appointmentinstance.
Appointment
public Appointment(GregorianCalendar start,
                   GregorianCalendar end,
                   String desc,
                   GregorianCalendar rep,
                   int t)
- Creates a new Appointmentinstance.
- 
- Parameters:
- start- a- GregorianCalendarappointment start time
- end- a- GregorianCalendarappointment end time
- desc- a- Stringappointment description
- rep- a- GregorianCalendardate until which
 appointment is repeated
- t- an- inttype of appointment repetition (0
 for no repeat, 1 for weekly repeat, 2 for monthly repeat)
 
getStartTime
public GregorianCalendar getStartTime()
- getStartTimereturns the start time.
- 
 
- 
- Returns:
- a GregorianCalendarappointment start time
 
setStartTime
public void setStartTime(GregorianCalendar st)
- setStartTimesets the start time.
- 
 
- 
- Parameters:
- st- a- GregorianCalendarappointment start time
 
getEndTime
public GregorianCalendar getEndTime()
- getEndTimereturns the end time
- 
 
- 
- Returns:
- a GregorianCalendarappointment end time
 
setEndTime
public void setEndTime(GregorianCalendar et)
- setEndTimesets the end time.
- 
 
- 
- Parameters:
- et- a- GregorianCalendarappointment end time
 
getInterruptable
public boolean getInterruptable()
- getInterruptabletells whether or not the
 appointment is interruptible
- 
 
- 
- Returns:
- a booleanthe answer
 
setInterruptable
public void setInterruptable(boolean interrupt)
- setInterruptablesets whether or not the
 appointment is interruptible.
- 
 
- 
- Parameters:
- interrupt- a- booleanwhether or not the
 appoinement is interruptible
 
getDescription
public String getDescription()
- getDescriptiongets the description.
- 
 
- 
- Returns:
- a Stringappointment description
 
setDescription
public void setDescription(String desc)
- setDescriptionsets the description
- 
 
- 
- Parameters:
- desc- a- Stringappointment description
 
getRepeatType
public int getRepeatType()
- getRepeatTypegets the type of repetition for the
 appointment
- 
 
- 
- Returns:
- an int0 for no repeat, 1 for weekly
 repeat, 2 for monthly repeat
 
setRepeatType
public void setRepeatType(int t)
- setRepeatTypesets the type of repetition for the
 appointment
- 
 
- 
- Parameters:
- t- an- int0 for no repeat, 1 for weekly
 repeat, 2 for monthly repeat
 
getRepeatDate
public GregorianCalendar getRepeatDate()
- getRepeatDategets the date until which the
 appointment is repeated
- 
 
- 
- Returns:
- a GregorianCalendarthe date until which
 the appointment is repeated
 
setRepeatDate
public void setRepeatDate(GregorianCalendar r)
- setRepeatDatesets the date until which the
 appointment is repeated.
- 
 
- 
- Parameters:
- r- a- GregorianCalendarthe date until which
 the appointment is repeated
 
getReminderID
public long getReminderID()
- getReminderIDgets the reminder id.
- 
 
- 
- Returns:
- a longthe id of the reminder.
 
setReminderID
public void setReminderID(long id)
- setReminderIDsets the reminder id
- 
 
- 
- Parameters:
- id- a- longthe id of the reminder
 
equals
public boolean equals(Object o)
- equalsstandard equals method.
- 
- Overrides:
- equalsin class- Object
 
- 
- Parameters:
- o- an- Objectthe object to which this is compared
- Returns:
- a booleanwhether or not they are equal
 
toString
public String toString()
- toStringstandard to string method
- 
- Overrides:
- toStringin class- Object
 
- 
- Returns:
- a Stringa string representation of this