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
Appointment
instance.
Appointment
public Appointment(GregorianCalendar start,
GregorianCalendar end,
String desc,
GregorianCalendar rep,
int t)
- Creates a new
Appointment
instance.
- Parameters:
start
- a GregorianCalendar
appointment start timeend
- a GregorianCalendar
appointment end timedesc
- a String
appointment descriptionrep
- a GregorianCalendar
date until which
appointment is repeatedt
- an int
type of appointment repetition (0
for no repeat, 1 for weekly repeat, 2 for monthly repeat)
getStartTime
public GregorianCalendar getStartTime()
getStartTime
returns the start time.
- Returns:
- a
GregorianCalendar
appointment start time
setStartTime
public void setStartTime(GregorianCalendar st)
setStartTime
sets the start time.
- Parameters:
st
- a GregorianCalendar
appointment start time
getEndTime
public GregorianCalendar getEndTime()
getEndTime
returns the end time
- Returns:
- a
GregorianCalendar
appointment end time
setEndTime
public void setEndTime(GregorianCalendar et)
setEndTime
sets the end time.
- Parameters:
et
- a GregorianCalendar
appointment end time
getInterruptable
public boolean getInterruptable()
getInterruptable
tells whether or not the
appointment is interruptible
- Returns:
- a
boolean
the answer
setInterruptable
public void setInterruptable(boolean interrupt)
setInterruptable
sets whether or not the
appointment is interruptible.
- Parameters:
interrupt
- a boolean
whether or not the
appoinement is interruptible
getDescription
public String getDescription()
getDescription
gets the description.
- Returns:
- a
String
appointment description
setDescription
public void setDescription(String desc)
setDescription
sets the description
- Parameters:
desc
- a String
appointment description
getRepeatType
public int getRepeatType()
getRepeatType
gets the type of repetition for the
appointment
- Returns:
- an
int
0 for no repeat, 1 for weekly
repeat, 2 for monthly repeat
setRepeatType
public void setRepeatType(int t)
setRepeatType
sets the type of repetition for the
appointment
- Parameters:
t
- an int
0 for no repeat, 1 for weekly
repeat, 2 for monthly repeat
getRepeatDate
public GregorianCalendar getRepeatDate()
getRepeatDate
gets the date until which the
appointment is repeated
- Returns:
- a
GregorianCalendar
the date until which
the appointment is repeated
setRepeatDate
public void setRepeatDate(GregorianCalendar r)
setRepeatDate
sets the date until which the
appointment is repeated.
- Parameters:
r
- a GregorianCalendar
the date until which
the appointment is repeated
getReminderID
public long getReminderID()
getReminderID
gets the reminder id.
- Returns:
- a
long
the id of the reminder.
setReminderID
public void setReminderID(long id)
setReminderID
sets the reminder id
- Parameters:
id
- a long
the id of the reminder
equals
public boolean equals(Object o)
equals
standard equals method.
- Overrides:
equals
in class Object
- Parameters:
o
- an Object
the object to which this is compared- Returns:
- a
boolean
whether or not they are equal
toString
public String toString()
toString
standard to string method
- Overrides:
toString
in class Object
- Returns:
- a
String
a string representation of this