|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Reservation
The Reservation
interface is the central interface of
Rapla. Objects implementing this interface are the courses or
events to be scheduled. A Reservation
consist
of a group of appointments and a set of allocated
resources (rooms, notebooks, ..) and persons.
By default all resources and persons are allocated on every appointment.
If you want to associate allocatable objects to special appointments
use Restrictions.
Classifiable
,
Appointment
,
Allocatable
Field Summary | |
---|---|
static int |
MAX_RESERVATION_LENGTH
|
static Reservation[] |
RESERVATION_ARRAY
|
static RaplaType |
TYPE
|
Fields inherited from interface org.rapla.entities.Entity |
---|
ENTITY_ARRAY |
Fields inherited from interface org.rapla.entities.dynamictype.Classifiable |
---|
CLASSIFIABLE_ARRAY |
Method Summary | |
---|---|
void |
addAllocatable(Allocatable allocatable)
|
void |
addAppointment(Appointment appointment)
|
Appointment |
findAppointment(Appointment appointment)
find an appointment in the reservation that equals the specified appointment. |
Allocatable[] |
getAllocatables()
|
Appointment[] |
getAppointments()
returns all appointments that are part off the reservation. |
Appointment[] |
getAppointmentsFor(Allocatable alloc)
returns all appointments for an allocatable. |
Allocatable[] |
getPersons()
returns all persons that are associated with the reservation. |
Allocatable[] |
getResources()
returns all resources that are associated with the reservation. |
Allocatable[] |
getRestrictedAllocatables(Appointment appointment)
|
Appointment[] |
getRestriction(Allocatable alloc)
|
boolean |
hasAllocated(Allocatable alloc)
returns if an the reservation has allocated the specified object. |
boolean |
hasAllocated(Allocatable alloc,
Appointment appointment)
returns if the allocatable is reserved on the specified appointment. |
void |
removeAllocatable(Allocatable allocatable)
|
void |
removeAppointment(Appointment appointment)
|
void |
setRestriction(Allocatable alloc,
Appointment[] appointments)
Restrict an allocation to one ore more appointments. |
Methods inherited from interface org.rapla.entities.Entity |
---|
isIdentical, isPersistant |
Methods inherited from interface org.rapla.entities.RaplaObject |
---|
getRaplaType |
Methods inherited from interface org.rapla.entities.dynamictype.Classifiable |
---|
getClassification, setClassification |
Methods inherited from interface org.rapla.entities.Named |
---|
getName |
Methods inherited from interface org.rapla.entities.Ownable |
---|
getOwner, setOwner |
Methods inherited from interface org.rapla.entities.Timestamp |
---|
getCreateTime, getLastChangedBy, getLastChangeTime |
Field Detail |
---|
static final RaplaType TYPE
static final int MAX_RESERVATION_LENGTH
static final Reservation[] RESERVATION_ARRAY
Method Detail |
---|
void addAppointment(Appointment appointment)
void removeAppointment(Appointment appointment)
Appointment[] getAppointments()
void setRestriction(Allocatable alloc, Appointment[] appointments)
Appointment[] getRestriction(Allocatable alloc)
Appointment[] getAppointmentsFor(Allocatable alloc)
getRestriction(org.rapla.entities.domain.Allocatable)
,
getAppointments()
Appointment findAppointment(Appointment appointment)
void addAllocatable(Allocatable allocatable)
void removeAllocatable(Allocatable allocatable)
Allocatable[] getAllocatables()
Allocatable[] getRestrictedAllocatables(Appointment appointment)
boolean hasAllocated(Allocatable alloc)
boolean hasAllocated(Allocatable alloc, Appointment appointment)
Allocatable[] getPersons()
Allocatable[] getResources()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |