Defines the Request structure for load balancer simulation.
void clear()
Clear the current request and mark server as idle.
bool isFinished() const
Check if the current request has finished processing.
void assignRequest(const Request &req)
Assign a request to this server for processing.
WebServer(int id)
Construct a web server with the given ID.
void process()
Advance processing by one clock cycle (decrements remaining time).
bool isBusy() const
Check if the server is currently processing a request.
int getId() const
Get the server's unique ID.
Represents a single request/job in the load balancer simulation.