LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
rr_info.h File Reference

State.rrInfo: the quantum-phase block of a round-robin station. More...

#include <cstddef>
#include <vector>
#include "line/api/mam/map_moment.h"
#include "line/lang/lang_types.h"
#include "line/lang/qn/network_struct.h"
#include "line/util/error.h"
#include "line/util/matrix.h"
Include dependency graph for rr_info.h:

Go to the source code of this file.

Classes

struct  line::qn::RrInfo< T >
 The derived description of an RR station's quantum block, MATLAB's rinfo. More...

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::qn

Functions

bool line::qn::rr_quantum_is_ph (lang::ProcessType p)
 True for the renewal phase-type families a quantum can be walked in.
template<class T>
RrInfo< T > line::qn::rr_info (const NetworkStruct< T > &sn, std::size_t ind)
 Port of State.rrInfo.
template<class T>
void line::qn::rr_require_ph (const RrInfo< T > &ri)
 Refuses an RR station whose quantum is not phase-type (LINE:unsupported:Det).

Detailed Description

State.rrInfo: the quantum-phase block of a round-robin station.

Round robin with a finite quantum (Haverkort 1998, Sect. 6.4) is FCFS with a time slice: the job in service runs until its service completes or its quantum expires; on expiry it is preempted (resume, its service phase kept) and rejoins the TAIL of the queue, and a fresh quantum starts at every entry into service. There is no switch overhead.

An RR station keeps the FCFS preempt-resume layout [buffer | server | vars] (the buffer holds right-aligned (class, phase) pairs, the oldest job on the right) and adds, in the shared node-block column group nvars[ind-1][2R], the joint counts m(r,k,q) of the class-r jobs IN SERVICE whose service is in phase k and whose current quantum is in phase q:

col(r,k,q) = off[r] + k*Q[r] + q (0-based), off[r] = sum_{s<r} K[s]*Q[s]

The server counts of the layout are sum_q m(r,k,q); the block refines them.

IT LIVES IN ITS OWN HEADER for the reason polling_info.h does: from_marginal (state.h) enumerates the block and the event handlers (state_events.h) move it, and neither header can include the other.

Definition in file rr_info.h.