Simple seating charts in which the seats are aranged in two rectangular sections with a cetner isle, can easily be set up by putting the appropriate lines in the teacher configuration file. Use the left and right key words to describe the seat numbers in the left and right rectangular sections as view by the teacher when facing the class. Each seat has a unique seat number which greater than or equal to 0. Below is an example of two lines that can be put into a teacher configuration file to describe a classroom with 34 seats.
left 34 33 32 31, 28 27 26 25, 24 23 22 21, 18 17 16 15, 12 11 10 9, 6 5 4 3 right 30 29, 20 19, 14 13, 8 7, 2 1Each line has groups of integers separated by a comma, one group per row of seats. In a given line, all of the groups must have the same size. In the above example, on the left there are 6 rows of 4 seats and on the right there are 5 rows of two seats. The first group represents seats in the back row, numbered left to right. This will produce a seating chart similar to the one in Figure 1. The seats with gray background correspond to seats that have been assigned to students. They change colors as student sign in and respond to queries.
If the classroom consists of a single rectangular array of seats, the right section can be left out by using the specification:
Seating configurations can be stored in a file which can be referenced in the teacher configuration file. This allows you to set up one file for each classroom configuration and reuse it for different classes in that room. Below is a seating configuration with an unusual assigment of seat number. The result is shown in Figure 2. A student has signed in at seat number 1.
seatsize 40 20 left 200 125 147 16 188, -1 18 43 47 200, 1209 6 9 11 29, 47 -1 137 201 198, 20 21 22 23 24 right 1 2 3, 4 -1 6, 7 8 9
java -jar classqueseating.jarThis will bring up a window similar to the one in Figure 3.
You can change the number of rows and columns by clicking on the appropriate arrows in the rows or columns buttons and you can change the cell size by clicking on the Cell: button. When decreasing the number or rows, of the bottom row is empty, it will be removed. Otherwise, if the top row is empty, it will be removed. You cannot remvoe a row if both the top and bottom rows contain cells, or parts of cells. column,
Initially, there are no seats in the chart.
The program has 5 modes of operation determined by the Mode menu item. The default mode is Create/Move. The modes are described below.
A move operation that will move any part of a cell outside the grid will be ignored.
Figure 4 shows the seating programwindow after a number of changes have been
made and the corresponding seating chart that the teacher will see.
Figure 4: A custom seating chart.