LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
Mode.m
1classdef Mode < NetworkElement
2 % An abstract class for a firing mode
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 properties
8 transition;
9 index;
10 end
11
12 methods (Hidden)
13 %Constructor
14 function self = Mode(T, name)
15 % SELF = MODE(NAME)
16
17 self@NetworkElement(name);
18 self.index = length(T.getModes()) + 1;
19 self.transition = T;
20 end
21 end
22
23 methods (Access=public)
24 function ind = subsindex(self)
25 % IND = SUBSINDEX()
26
27 ind = double(self.index)-1; % 0 based
28 end
29 end
30
31end