LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::qn::SetupDelayOffParam< T > Struct Template Reference

Setup and delay-off of a station that powers down when it falls idle. More...

#include <line/lang/qn/network_struct.h>

Collaboration diagram for line::qn::SetupDelayOffParam< T >:

Public Member Functions

bool last (lang::Distrib< T > &su, lang::Distrib< T > &doff) const
 The pair the solvers use: the last class that declares one.

Public Attributes

std::vector< lang::Distrib< T > > setup
 per class, disabled = not declared
std::vector< lang::Distrib< T > > delayoff
 per class

Detailed Description

template<class T>
struct line::qn::SetupDelayOffParam< T >

Setup and delay-off of a station that powers down when it falls idle.

MATLAB Queue.setDelayOff(class, setupTime, delayoffTime), which refreshLocalVars copies into sn.nodeparam{node}{class}. The server starts a delay-off timer when it empties and shuts down when the timer expires; the next arrival to a shut-down server pays the setup time before service.

Stored per class because the reference stores it per class, but every consumer reads ONE pair per station – solver_mam_basic.m takes the LAST class's, so last() below is what a solver should call rather than picking a class itself.

Definition at line 422 of file network_struct.h.

Member Function Documentation

◆ last()

template<class T>
bool line::qn::SetupDelayOffParam< T >::last ( lang::Distrib< T > & su,
lang::Distrib< T > & doff ) const
inline

The pair the solvers use: the last class that declares one.

Definition at line 426 of file network_struct.h.

References delayoff, line::qn::Distrib< T >::disabled_dist(), and setup.

Member Data Documentation

◆ delayoff

template<class T>
std::vector<lang::Distrib<T> > line::qn::SetupDelayOffParam< T >::delayoff

per class

Definition at line 424 of file network_struct.h.

Referenced by last(), and line::qn::Network< double >::set_setup_delayoff().

◆ setup

template<class T>
std::vector<lang::Distrib<T> > line::qn::SetupDelayOffParam< T >::setup

per class, disabled = not declared

Definition at line 423 of file network_struct.h.

Referenced by last(), and line::qn::Network< double >::set_setup_delayoff().


The documentation for this struct was generated from the following file: