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>

Inheritance diagram for line::workflow::WorkflowActivity< T >:

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)
T host_demand_mean () const
T host_demand_scv () const
PhLaw< T > ph_representation () const
 The (alpha, T) pair of this activity.
std::size_t num_phases () const
const std::map< std::string, std::string > & metadata () const
 Optional external metadata, MATLAB's act.metadata and the JAR's getMetadata().
void set_metadata (const std::map< std::string, std::string > &m)
bool has_metadata () const

Static Public Attributes

static constexpr std::size_t kDetPhases = 20
 Order of the Erlang surrogate of a deterministic host demand (sn_nonmarkov_toph's default nonmkvorder).

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 102 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 108 of file workflow.h.

References host_demand(), and name().

Member Function Documentation

◆ has_metadata()

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

Definition at line 172 of file workflow.h.

◆ host_demand()

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

Definition at line 113 of file workflow.h.

Referenced by line::lal::workflow_agent(), and WorkflowActivity().

◆ host_demand_mean()

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

Definition at line 116 of file workflow.h.

Referenced by line::lal::workflow_agent().

◆ host_demand_scv()

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

Definition at line 117 of file workflow.h.

◆ metadata()

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

Optional external metadata, MATLAB's act.metadata and the JAR's getMetadata().

Set by io::wfcommons_load. Keyed by field name; each value is the JSON TEXT of the field ("4", "\"mem\\"\"</tt>, <tt>[\"a\",\"b\"]), which keeps arrays and objects intact without making the lang layer depend on a JSON library. It plays no part in to_ph().

Definition at line 170 of file workflow.h.

◆ name()

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

Definition at line 111 of file workflow.h.

Referenced by line::lal::workflow_agent(), and WorkflowActivity().

◆ num_phases()

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

Definition at line 160 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 127 of file workflow.h.

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

Referenced by num_phases(), and line::lal::workflow_agent().

◆ set_host_demand()

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

Definition at line 114 of file workflow.h.

◆ set_metadata()

template<class T>
void line::workflow::WorkflowActivity< T >::set_metadata ( const std::map< std::string, std::string > & m)
inline

Definition at line 171 of file workflow.h.

Member Data Documentation

◆ kDetPhases

template<class T>
std::size_t line::workflow::WorkflowActivity< T >::kDetPhases = 20
staticconstexpr

Order of the Erlang surrogate of a deterministic host demand (sn_nonmarkov_toph's default nonmkvorder).

Definition at line 105 of file workflow.h.

Referenced by ph_representation().


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