#include <CNCL/Job.h>
CN_JOB
CNObject
None
CNDLList, CNQueueFIFO, CNQueueLIFO, CNQueueRandom, CNQueueSPT, CNPrioQueueFIFO, CNSink, CNJob, CNStack
CNJob
is a standard job object for the CNCL queues. FIFO, LIFO
and Random Queus can contain CNJob
, whereas
for SPT and Priority Queues must contain it.
Users may derive objects from CNJob
if
they need additional data. CNJob
provides the following public
member variables which can be set/read by any user:
CNSimTime in;
CNSimTime out;
CNSimTime start;
double orig_length;
double length;
int priority;
The three time variables are used to hold the time when a job enters a system,
when a job leaves a system and when the serving begins. length
defines
the remaining service time of a job while orig_length
defines its
whole service time. They are equal in case of noninterrupting queueing
strategies. priority
identifies the priority of a job used in priority
queues.
Constructors:
CNJob();
CNJob(CNParam *param);
CNJob(double len);
CNJob(int prio);
CNJob(int prio, double len);
CNJob
provides no additional member functions besides the one required
by CNCL.
Go to the first, previous, next, last section, table of contents.