FifoQueue Class ReferenceΒΆ

Sample Model: FifoQueue Class Reference
Sample Model

#include <FifoQueue.h>

Public Member Functions

int getLength () const
virtual void requestJob ()

Protected Member Functions

virtual void handleMessage (cMessage *msg) override

Detailed Description

Holds the jobs in arrival order until the Server asks for the next one.

See the NED documentation for parameters and statistics.

Member Function Documentation

◆ getLength()

int getLength ( ) const
inline

The number of jobs waiting.

◆ requestJob()

virtual void requestJob ( )
virtual

Sends the first job to the server; the server calls it when it becomes idle.

◆ handleMessage()

virtual void handleMessage ( cMessage * msg)
overrideprotectedvirtual

Sends the job to the server if it is idle, and queues it otherwise.