LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
TimingStrategy.m
1classdef (Sealed) TimingStrategy
2 % Enumeration of timing policies in Petri nets transitions.
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 properties (Constant)
8 TIMED = 0;
9 IMMEDIATE = 1;
10 end
11
12 methods (Static)
13 function text = toText(type)
14 % TEXT = TOTEXT(TYPE)
15 switch type
16 case TimingStrategy.TIMED
17 text = 'timed';
18 case TimingStrategy.IMMEDIATE
19 text = 'immediate';
20 otherwise
21 line_error(mfilename, 'Unrecognized timing strategy type.');
22 end
23 end
24 end
25end