1function SMMAP = npfqn_traffic_merge_cs(
MMAP, prob, config)
2% Given a cell array of n MMAPs with arrivals of R
classes, produces a
new
3%
MMAP after flow merging and
class switching
4% prob((i-1)*R+r,s): prob that a class-r arrival from
MMAP i switches to class-s
8if ~isfield(config,
'merge')
9 config.merge = 'default';
12% First let's convert from types to
classes
17 P(r,s) = prob((i-1)*R+r,s);
28 case {
'default',
'super'}
31 SMMAP = mmap_super(SMMAP,
MMAP{j},
'match');