1function [absorbingStations, absorbingIdxs] = getAbsorbingStations(self)
2% [ABSORBINGSTATIONS, ABSORBINGIDXS] = GETABSORBINGSTATIONS()
4% Returns the stations that are absorbing (i.e., once a job enters,
5% it never leaves). These create reducible Markov chains.
8% ABSORBINGSTATIONS: cell array of Station objects that are absorbing
9% ABSORBINGIDXS: vector of node indices of absorbing stations
11% Copyright (c) 2012-2026, Imperial College London
14[~, info] = self.isRoutingErgodic();
16absorbingStations = {};
19for i = 1:length(info.absorbingStations)
20 stationName = info.absorbingStations{i};
21 station = self.getStationByName(stationName);
22 if isa(station,
'Node')
23 absorbingStations{end+1} = station;
24 absorbingIdxs(end+1) = self.getNodeIndex(stationName);