public class AppointmentSlot extends Object implements Comparable<AppointmentSlot>, Serializable, Cloneable
| Constructor and Description |
|---|
AppointmentSlot() |
| Modifier and Type | Method and Description |
|---|---|
AppointmentSlot |
clone() |
int |
compareTo(AppointmentSlot o)
Compare a slot to another one.
|
boolean |
equals(Object o) |
int |
getDayOfWeek()
Get the number of the day in the week.
|
int |
getEndingHour()
Get the ending hour of this slot
|
int |
getEndingMinute()
Get the ending minute of this slot
|
int |
getIdDay()
Get the id of the day, or 0 if this slot is not associated with a day but
only with a form
|
int |
getIdForm()
Get the id of the form
|
int |
getIdSlot()
Get the id of the slot
|
boolean |
getIsEnabled()
Check if this slot is enabled for appointments or not
|
int |
getNbFreePlaces()
Get the number of free places for this slot
|
int |
getNbPlaces()
Get the number of places for this slot
|
int |
getNbRDV() |
int |
getStartingHour()
Get the starting hour of this slot
|
int |
getStartingMinute()
Get the starting minute of this slot
|
int |
hashCode() |
void |
setDayOfWeek(int nDayOfWeek)
Set the day of the week
|
void |
setEndingHour(int nEndingHour)
Set the ending hour of this slot
|
void |
setEndingMinute(int nEndingMinute)
Set the ending minute of this slot
|
void |
setIdDay(int nIdDay)
Set the id of the day
|
void |
setIdForm(int nIdForm)
Set the id of the form
|
void |
setIdSlot(int nIdSlot)
Set the id of the slot
|
void |
setIsEnabled(boolean bIsEnabled)
Enable or disable this slot for appointments
|
void |
setNbFreePlaces(int nNbFreePlaces)
Set the number of free places for this slot
|
void |
setNbPlaces(int nNbPlaces)
Set the number of places for this slot
|
void |
setNbRDV(int nbRDV) |
void |
setStartingHour(int nStartingHour)
Set the starting hour of this slot
|
void |
setStartingMinute(int nStartingMinute)
Set the starting minute of this slot
|
String |
toString() |
public int getIdSlot()
public void setIdSlot(int nIdSlot)
nIdSlot - The id of the slotpublic int getIdForm()
public void setIdForm(int nIdForm)
nIdForm - The id of the formpublic int getIdDay()
public void setIdDay(int nIdDay)
nIdDay - The of the day, or 0 if this slot is not associated with a
day but only with a formpublic int getDayOfWeek()
public void setDayOfWeek(int nDayOfWeek)
nDayOfWeek - The number of the day in the week : 1 for Monday, 2 for
Tuesday, ..., 7 for Sunday.public int getNbPlaces()
public void setNbPlaces(int nNbPlaces)
nNbPlaces - The number of places for this slotpublic int getNbFreePlaces()
public void setNbFreePlaces(int nNbFreePlaces)
nNbFreePlaces - The number of free places for this slotpublic int getStartingHour()
public void setStartingHour(int nStartingHour)
nStartingHour - The starting hour of this slotpublic int getStartingMinute()
public void setStartingMinute(int nStartingMinute)
nStartingMinute - The starting minute of this slotpublic int getEndingHour()
public void setEndingHour(int nEndingHour)
nEndingHour - The ending hour of this slotpublic int getEndingMinute()
public void setEndingMinute(int nEndingMinute)
nEndingMinute - The ending minute of this slotpublic boolean getIsEnabled()
public void setIsEnabled(boolean bIsEnabled)
bIsEnabled - True to enable this slot for appointments, false
otherwisepublic int compareTo(AppointmentSlot o)
compareTo in interface Comparable<AppointmentSlot>o - Slot to compare this slot topublic AppointmentSlot clone()
public int getNbRDV()
public void setNbRDV(int nbRDV)
Copyright © 2016 City of Paris. All rights reserved.