Revision 477,
913 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package schedframe.scheduling.queue; |
---|
2 | |
---|
3 | import java.util.List; |
---|
4 | |
---|
5 | import org.joda.time.DateTime; |
---|
6 | |
---|
7 | public interface Queue <K> extends List<K> { |
---|
8 | |
---|
9 | /** |
---|
10 | * Gets a queue name |
---|
11 | * @return name |
---|
12 | */ |
---|
13 | public String getName(); |
---|
14 | |
---|
15 | /** |
---|
16 | * Sets a queue name |
---|
17 | * @param name the name to set |
---|
18 | */ |
---|
19 | public void setName(String name); |
---|
20 | |
---|
21 | /** |
---|
22 | * Gets a queue priority |
---|
23 | * @return priority |
---|
24 | */ |
---|
25 | public int getPriority(); |
---|
26 | |
---|
27 | |
---|
28 | public boolean supportReservations(); |
---|
29 | |
---|
30 | /** |
---|
31 | * Sets a queue priority |
---|
32 | * @param priority the priority to set |
---|
33 | */ |
---|
34 | public void setPriority(int priority); |
---|
35 | |
---|
36 | /** |
---|
37 | * Gets arrival time of the object at position pos in a queue. |
---|
38 | * @param pos the position of the object |
---|
39 | * @return time when the object at position pos in queue was added to the queue; |
---|
40 | * @throws IndexOutOfBoundsException if pos id out of the queue range |
---|
41 | */ |
---|
42 | public DateTime getArrivalTime(int pos) throws IndexOutOfBoundsException; |
---|
43 | |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.