hypesystem

[C1] - Algorithm Interface

Nov 4th, 2011
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. package cinemabooking;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. /**
  6.  *
  7.  * @author hypesystem
  8.  */
  9. public interface Algorithm {
  10.    
  11.     /**
  12.      * Automatically selects some seats for the client, before they get to click.
  13.      * These seats should be the most desirable availible.
  14.      */
  15.     public ArrayList<Seat> autoSelect(ArrayList<ArrayList<Seat>> seats, int number_of_seats);
  16.    
  17.     /**
  18.      * Takes all the seats as parameter and the x,y of the seat clicked and the
  19.      * number of seats to select. Returns an array of the seats selected.
  20.      */
  21.     public ArrayList<Seat> seatClicked(ArrayList<ArrayList<Seat>> seats, int x, int y, int number_of_seats);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment