LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
getStationScheduling.m
1function sched = getStationScheduling(self)
2% SCHED = GETSTATIONSCHEDULING()
3
4% Copyright (c) 2012-2026, Imperial College London
5% All rights reserved.
6for i=1:getNumberOfStations(self)
7 if isinf(self.stations{i}.numberOfServers)
8 sched(i) = SchedStrategy.INF;
9 else
10 if i == getIndexSourceStation(self)
11 sched(i) = SchedStrategy.EXT;
12 else
13 sched(i) = self.stations{i}.schedStrategy;
14 % OI (order-independent) is a pass-and-swap specialization with an
15 % empty/zero swap graph. Normalize it to PAS in the struct so every
16 % solver/state dispatch site (which tests sn.sched == PAS) handles it
17 % via the same order-independent machinery.
18 if SchedStrategy.toId(sched(i)) == SchedStrategy.OI
19 sched(i) = SchedStrategy.PAS;
20 end
21 end
22 end
23end
24end
Definition Station.m:245