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

A computational activity. More...

#include <line/lang/workflow/workflow.h>

Public Member Functions

 WorkflowActivity ()=default
 WorkflowActivity (const std::string &name, const Distrib< T > &host_demand)
const std::string & name () const
const Distrib< T > & host_demand () const
void set_host_demand (const Distrib< T > &d)
host_demand_mean () const
host_demand_scv () const
PhLaw< T > ph_representation () const
 The (alpha, T) pair of this activity.
std::size_t num_phases () const

Detailed Description

template<class T>
class line::workflow::WorkflowActivity< T >

A computational activity.

Carries no call list: an external call is an activity whose host demand is the law of the call response time.

Definition at line 101 of file workflow.h.

Constructor & Destructor Documentation

◆ WorkflowActivity() [1/2]

template<class T>
line::workflow::WorkflowActivity< T >::WorkflowActivity ( )
default

◆ WorkflowActivity() [2/2]

template<class T>
line::workflow::WorkflowActivity< T >::WorkflowActivity ( const std::string & name,
const Distrib< T > & host_demand )
inline

Definition at line 104 of file workflow.h.

References host_demand(), and name().

Member Function Documentation

◆ host_demand()

template<class T>
const Distrib< T > & line::workflow::WorkflowActivity< T >::host_demand ( ) const
inline

Definition at line 109 of file workflow.h.

Referenced by WorkflowActivity().

◆ host_demand_mean()

template<class T>
T line::workflow::WorkflowActivity< T >::host_demand_mean ( ) const
inline

Definition at line 112 of file workflow.h.

◆ host_demand_scv()

template<class T>
T line::workflow::WorkflowActivity< T >::host_demand_scv ( ) const
inline

Definition at line 113 of file workflow.h.

◆ name()

template<class T>
const std::string & line::workflow::WorkflowActivity< T >::name ( ) const
inline

Definition at line 107 of file workflow.h.

Referenced by WorkflowActivity().

◆ num_phases()

template<class T>
std::size_t line::workflow::WorkflowActivity< T >::num_phases ( ) const
inline

Definition at line 150 of file workflow.h.

References ph_representation().

◆ ph_representation()

template<class T>
PhLaw< T > line::workflow::WorkflowActivity< T >::ph_representation ( ) const
inline

The (alpha, T) pair of this activity.

A zero-time activity is one immediate phase, the representation used throughout this class; a Markovian law hands back its own pair; anything else is fitted to an acyclic phase-type on its first two moments, as the MATLAB and JAR twins do.

Definition at line 123 of file workflow.h.

References line::workflow::PhLaw< T >::alpha, line::lang::aph_fit_mean_scv(), line::lang::Distrib< T >::D0, line::workflow::GlobalConstants::FineTol, line::workflow::GlobalConstants::Immediate, line::Matrix< T >::Matrix(), and line::workflow::PhLaw< T >::S.

Referenced by num_phases().

◆ set_host_demand()

template<class T>
void line::workflow::WorkflowActivity< T >::set_host_demand ( const Distrib< T > & d)
inline

Definition at line 110 of file workflow.h.


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