Server Class ReferenceΒΆ

Sample Model: Server Class Reference
Sample Model

#include <Server.h>

Public Member Functions

bool isIdle () const

Protected Member Functions

virtual simtime_t getServiceTime (cMessage *job)

Detailed Description

Serves one job at a time. A long job takes twice the serviceTime parameter.

See the NED documentation for parameters and statistics.

Member Function Documentation

◆ isIdle()

bool isIdle ( ) const
inline

Whether the server can take a job now.

◆ getServiceTime()

virtual simtime_t getServiceTime ( cMessage * job)
protectedvirtual

The service time of the job, from its kind and the serviceTime parameter.