LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
Network.m
1classdef Network < MNetwork
2 % Main queueing network model class for LINE analysis
3 %
4 % Provides methods for adding nodes, job classes, and links to create queueing networks.
5 %
6 % Copyright (c) 2012-2026, Imperial College London
7 % All rights reserved.
8
9 % PUBLIC METHODS
10 methods (Access=public)
11 %Constructor
12 function self = Network(name, varargin)
13 % NETWORK Create a new queueing network model
14 %
15 % @brief Creates a Network instance for queueing model construction
16 % @param name String identifier for the network model
17 % @param varargin Optional implementation parameter (ignored for performance)
18 % @return self Network instance ready for model construction
19 %
20 % For compatibility, accepts but ignores the implementation argument.
21 % Always uses MNetwork (MATLAB) implementation for optimal performance.
22
23 self@MNetwork(name); % Always use MNetwork for performance
24
25 % Parse optional implementation argument for compatibility
26 % but ignore it - always use MNetwork
27 if nargin >= 2 && ischar(varargin{1})
28 implementation = lower(varargin{1});
29 if strcmp(implementation, 'java') || strcmp(implementation, 'j') || strcmp(implementation, 'jnetwork')
30 warning('Network:JavaNotSupported', ...
31 'Java implementation requested but not supported in performance-optimized mode. Using MATLAB implementation.');
32 end
33 end
34 end
35 end
36
37 % STATIC METHODS
38 methods (Static)
39 function model = cyclic(N, D, strategy, S)
40 % MODEL = CYCLIC(N, D, STRATEGY, S)
41 %
42 % Generates a cyclic queueing network
43 model = MNetwork.cyclic(N, D, strategy, S);
44 end
45
46 function model = tandem(lambda, D, strategy)
47 % MODEL = TANDEM(LAMBDA, D, STRATEGY)
48 %
49 % Generates a tandem queueing network
50 model = MNetwork.tandem(lambda, D, strategy);
51 end
52 end
53end
Definition mmt.m:92