Go to the first, previous, next, last section, table of contents.


CNJob -- Job object

SYNOPSIS

#include <CNCL/Job.h>

TYPE

CN_JOB

BASE CLASSES

CNObject

DERIVED CLASSES

None

RELATED CLASSES

CNDLList, CNQueueFIFO, CNQueueLIFO, CNQueueRandom, CNQueueSPT, CNPrioQueueFIFO, CNSink, CNJob, CNStack

DESCRIPTION

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);
Initialize the Job object, optionally setting length and/or priority.

CNJob provides no additional member functions besides the one required by CNCL.


Go to the first, previous, next, last section, table of contents.