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

Environment.nodeFailures{k}: the declarative record of one node breakdown. More...

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

Collaboration diagram for line::env::NodeFailure< T >:

Public Attributes

std::string node
 the node that breaks down
lang::Distrib< T > breakdown
 time to failure, the UP -> DOWN transition
lang::Distrib< T > down_service
 the node's service while it is down
lang::Distrib< T > repair
 time to repair, the DOWN -> UP transition
bool has_repair = false
 false for a breakdown with no repair arc
std::string breakdown_reset = "keep"
std::string repair_reset
 empty when there is no repair

Detailed Description

template<class T>
struct line::env::NodeFailure< T >

Environment.nodeFailures{k}: the declarative record of one node breakdown.

The expanded stages and transitions already carry the STRUCTURE of a breakdown; what only this record carries is the pair of reset policies, which decide what the next stage starts from and therefore change the numbers. It is kept on the environment for the same reason the reference keeps it: so an environment read from model.json in its expanded form can be given back its policies, and so it serializes out again as the same model.

Definition at line 123 of file environment.h.

Member Data Documentation

◆ breakdown

template<class T>
lang::Distrib<T> line::env::NodeFailure< T >::breakdown

time to failure, the UP -> DOWN transition

Definition at line 125 of file environment.h.

Referenced by line::env::Environment< T >::add_node_breakdown(), and line::env::Environment< T >::register_node_failure().

◆ breakdown_reset

template<class T>
std::string line::env::NodeFailure< T >::breakdown_reset = "keep"

◆ down_service

template<class T>
lang::Distrib<T> line::env::NodeFailure< T >::down_service

the node's service while it is down

Definition at line 126 of file environment.h.

Referenced by line::env::Environment< T >::add_node_breakdown(), and line::env::Environment< T >::register_node_failure().

◆ has_repair

template<class T>
bool line::env::NodeFailure< T >::has_repair = false

false for a breakdown with no repair arc

Definition at line 128 of file environment.h.

Referenced by line::env::Environment< T >::register_node_failure().

◆ node

template<class T>
std::string line::env::NodeFailure< T >::node

the node that breaks down

Definition at line 124 of file environment.h.

Referenced by line::env::Environment< T >::add_node_breakdown(), and line::env::Environment< T >::register_node_failure().

◆ repair

template<class T>
lang::Distrib<T> line::env::NodeFailure< T >::repair

time to repair, the DOWN -> UP transition

Definition at line 127 of file environment.h.

Referenced by line::env::Environment< T >::register_node_failure().

◆ repair_reset

template<class T>
std::string line::env::NodeFailure< T >::repair_reset

empty when there is no repair

Definition at line 130 of file environment.h.

Referenced by line::env::Environment< T >::register_node_failure().


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