org.rapla.facade
Interface Conflict

All Superinterfaces:
Named, RaplaObject

public interface Conflict
extends Named, RaplaObject

A conflict is the allocation of the same resource at the same time by different reservations. There's one conflict for each resource and each overlapping of two allocations. So if there are 3 reservations that allocate the same 2 resources on 2 days of the week, then we got ( 3 * 2 ) * 2 * 2 = 24 conflicts. Thats 3 reservations, each conflicting with two other 2 reservations on 2 days with 2 resources.

Version:
1.0
Author:
Christopher Kohlhaas

Field Summary
static Conflict[] CONFLICT_ARRAY
           
static RaplaType TYPE
           
 
Method Summary
 Allocatable getAllocatable()
           
 Appointment getAppointment1()
          The appointment of the first reservation, that causes the conflict.
 Appointment getAppointment2()
          The appointment of the second reservation, that causes the conflict.
 Reservation getReservation1()
           
 Reservation getReservation2()
           
 User getUser2()
           
 
Methods inherited from interface org.rapla.entities.Named
getName
 
Methods inherited from interface org.rapla.entities.RaplaObject
getRaplaType
 

Field Detail

TYPE

static final RaplaType TYPE

CONFLICT_ARRAY

static final Conflict[] CONFLICT_ARRAY
Method Detail

getReservation1

Reservation getReservation1()
Returns:
the first Reservation, that is involed in the conflict.

getAppointment1

Appointment getAppointment1()
The appointment of the first reservation, that causes the conflict.


getAllocatable

Allocatable getAllocatable()
Returns:
the allocatable, allocated for the same time by two different reservations.

getReservation2

Reservation getReservation2()
Returns:
the second Reservation, that is involed in the conflict.

getUser2

User getUser2()
Returns:
The User, who created the second Reservation.

getAppointment2

Appointment getAppointment2()
The appointment of the second reservation, that causes the conflict.



Copyright © 2000-2006 Rapla Team. All Rights Reseserved.