LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::qn::rr_detail Namespace Reference

Classes

struct  Promoted
 One successor of promote: the row, its probability and the started class (0 for none). More...

Functions

template<class T>
std::vector< T > bufpush (std::vector< T > buf, std::size_t r, std::size_t k)
 sub_bufpush: put (class R, phase K) at the TAIL of a paired buffer, the rightmost empty pair (the oldest job is on the right).
template<class T>
std::vector< Promoted< T > > promote (const std::vector< T > &y, std::size_t bufw, std::size_t srv0, const std::vector< std::size_t > &Ks, std::size_t rroff, const RrInfo< T > &ri)
 sub_promote: move the HEAD of the buffer (its rightmost non-empty pair) into service with a fresh quantum, one successor per quantum entry phase.

Function Documentation

◆ bufpush()

template<class T>
std::vector< T > line::qn::rr_detail::bufpush ( std::vector< T > buf,
std::size_t r,
std::size_t k )

sub_bufpush: put (class R, phase K) at the TAIL of a paired buffer, the rightmost empty pair (the oldest job is on the right).

A full buffer is widened by one pair on the LEFT, which is how the reference grows it; the state-space walkers left-pad every row to the node's widest one, and every block is measured from the right, so the extra pair shifts nothing.

Definition at line 2634 of file state_events.h.

References bufpush().

Referenced by line::qn::after_event_station_rr(), and bufpush().

◆ promote()

template<class T>
std::vector< Promoted< T > > line::qn::rr_detail::promote ( const std::vector< T > & y,
std::size_t bufw,
std::size_t srv0,
const std::vector< std::size_t > & Ks,
std::size_t rroff,
const RrInfo< T > & ri )

sub_promote: move the HEAD of the buffer (its rightmost non-empty pair) into service with a fresh quantum, one successor per quantum entry phase.

With an empty buffer the row is returned unchanged with probability 1.

Definition at line 2661 of file state_events.h.

References line::qn::RrInfo< T >::col(), promote(), line::qn::RrInfo< T >::Q, and line::qn::RrInfo< T >::qa.

Referenced by line::qn::after_event_station_rr(), and promote().