-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIdleEvent.java
More file actions
28 lines (25 loc) · 878 Bytes
/
IdleEvent.java
File metadata and controls
28 lines (25 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package cs2030.simulator;
/**
* IdleEvent where the server is not serving and has an empty queue.
* IdleEvent contains EventStatus status.
*/
public class IdleEvent extends Event {
private static final EventStatus status = EventStatus.IDLE;
/**
* Constructs an IdleEvent containing a customer and an execute method
* that returns an empty Pair.
* @param customer Customer from DoneEvent.
* @param server Server that is not serving and has an empty queue.
*/
public IdleEvent(Customer customer, ServerI server) {
super(customer, 0, server, x -> Pair.empty(), status);
}
/**
* Retrieve String representation that should not be printed.
* @return error message if this is printed.
*/
@Override
public String toString() {
return "This should not be here";
}
}