1function [ph, mu, phi, phases] = refreshProcessPhases(self, statSet, classSet)
2% [PH, MU, PHI, PHASES] = REFRESHPROCESSPHASES()
3% Obtain information about phases of service and arrival processes.
5% Copyright (c) 2012-2026, Imperial College London
8M = getNumberOfStations(self);
9K = getNumberOfClasses(self);
15 mu{ist,1} = cell(1,K);
19 phi{ist,1} = cell(1,K);
26 mu{ist,1} = cell(1,K);
30 phi{ist,1} = cell(1,K);
33elseif nargin==3 && isfield(self.sn,
'mu') && isfield(self.sn,
'phi') && isfield(self.sn,
'phases')
34 % we are only updating selected stations and
classes so use the
35 % existing ones
for the others
38 phases = self.sn.phases;
42 mu{ist,1} = cell(1,K);
46 phi{ist,1} = cell(1,K);
51stations = self.stations;
53 if ist == self.getIndexSourceStation
54 [~,mu_i,phi_i] = stations{ist}.getSourceRates();
56 switch class(stations{ist})
72 [~,mu_i,phi_i] = stations{ist}.getServiceRates();
78 phi{ist}{r} = phi_i{r};
79 if isnan(mu_i{r}) % disabled
82 phases(ist,r) = length(mu_i{r});
87if ~isempty(self.sn) %&& isprop(self.sn,
'mu')
90 self.sn.phases = phases;
91 self.sn.phasessz = max(self.sn.phases,ones(size(self.sn.phases)));
92 self.sn.phaseshift = [zeros(size(phases,1),1),cumsum(self.sn.phasessz,2)];
94[ph, phases] = refreshProcessRepresentations(self);