activity.matching.interfaces
Classes
Describes the interface required by the occasion class used by |
|
Describes the interface required by the booking class used by |
Module Contents
- class activity.matching.interfaces.MatchableOccasion[source]
Describes the interface required by the occasion class used by the algorithm.
This allows us to untie our implementation from the database.
- property exclude_from_overlap_check: bool[source]
- Abstractmethod:
True if bookings of this occasion are ignored during overlap checks.
- class activity.matching.interfaces.MatchableBooking[source]
Describes the interface required by the booking class used by the algorithm.
This allows us to untie our implementation from the database.
- property occasion_id: uuid.UUID[source]
- Abstractmethod:
Returns the id of the occasion this booking belongs to.
- property attendee_id: uuid.UUID[source]
- Abstractmethod:
Returns the id of the attendee this booking belongs to.
- property state: onegov.activity.models.booking.BookingState[source]
- Abstractmethod:
Returns the state of the booking, one of:
“open” (for unassigned bookings)
“accepted” (for already accepted bookings)
“blocked” (for bookings blocked by another accepted booking)
- property priority: int[source]
- Abstractmethod:
Returns the priority of the booking. The higher the priority the further up the wishlist.
Bookings further up the wishlist are first passed to the occasions. All things being equal (i.e. the scores of the other bookings), this leads to a higher chance of placement.
- property dates: Sequence[OccasionDate][source]
- Abstractmethod:
Returns the dates of the booking.