LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
NodeType.m
1classdef (Sealed) NodeType
2 % Enumeration of node types.
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 properties (Constant)
8 FiniteCapacityRegion = 10;
9 Transition = 9;
10 Place = 8;
11 Fork = 7;
12 Router = 6;
13 Cache = 5;
14 Logger = 4;
15 ClassSwitch = 3;
16 Delay = 2;
17 Source = 1;
18 Queue = 0;
19 Sink = -1;
20 Join = -2;
21 end
22
23 methods (Static)
24
25 function txt = toText(nodetype)
26 switch nodetype
27 case NodeType.FiniteCapacityRegion
28 txt = 'FiniteCapacityRegion';
29 case NodeType.Transition
30 txt = 'Transition';
31 case NodeType.Place
32 txt = 'Place';
33 case NodeType.Fork
34 txt = 'Fork';
35 case NodeType.Router
36 txt = 'Router';
37 case NodeType.Cache
38 txt = 'Cache';
39 case NodeType.Logger
40 txt = 'Logger';
41 case NodeType.ClassSwitch
42 txt = 'ClassSwitch';
43 case NodeType.Delay
44 txt = 'Delay';
45 case NodeType.Source
46 txt = 'Source';
47 case NodeType.Queue
48 txt = 'Queue';
49 case NodeType.Join
50 txt = 'Join';
51 case NodeType.Sink
52 txt = 'Sink';
53 otherwise
54 line_error(mfilename, 'Unrecognized node type.');
55 end
56 end
57 end
58
59end