Interface AutoAccommodationAllocationStrategy

All Known Implementing Classes:
DefaultAutoAccommodationAllocationStrategy, DefaultShoppingAutoAccommodationAllocationStrategy, DefaultShoppingTravelProductBasedAutoAccommodationAllocationStrategy, TravelProductBasedAutoAccommodationAllocationStrategy

public interface AutoAccommodationAllocationStrategy
Strategy to auto allocate seat to traveller if not already selected.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    autoAllocateSeat(AbstractOrderModel abstractOrderModel, Integer legNumber, List<String> travellerReferences)
    This strategy follows one rule that is to allocate the first available seat.
  • Method Details

    • autoAllocateSeat

      void autoAllocateSeat(AbstractOrderModel abstractOrderModel, Integer legNumber, List<String> travellerReferences)
      This strategy follows one rule that is to allocate the first available seat. Accommodation types are represented in the following hierarchy Decks -> Cabin -> Rows -> Columns -> Seats. So, finding the first seat available, resembles the traditional DFS(Depth first search) algorithm.
      Parameters:
      abstractOrderModel - the abstract order model
      legNumber - the leg number
      travellerReferences - the traveller references