LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
EventType.m
1classdef EventType < Copyable
2 % Types of events
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 % event major classification
8 properties (Constant)
9 INIT = -1; % model is initialized (time t=0)
10 LOCAL = 0; % dummy event
11 ARV = 1; % job arrival
12 DEP = 2; % job departure
13 PHASE = 3; % service advances to next phase, without departure
14 READ = 4; % read cache item
15 STAGE = 5; % random environment stage change
16 ENABLE = 6; % enable mode
17 FIRE = 7; % fire mode
18 PRE = 8; % consume from a place or queue buffer (no side-effects on server)
19 POST = 9; % produce to a place or queue buffer
20 end
21
22 methods(Static)
23 function text = toText(type)
24 % TEXT = TOTEXT(TYPE)
25
26 switch type
27 case EventType.ARV
28 text = 'ARV';
29 case EventType.DEP
30 text = 'DEP';
31 case EventType.PHASE
32 text = 'PHASE';
33 case EventType.READ
34 text = 'READ';
35 case EventType.LOCAL
36 text = 'LOCAL';
37 case EventType.STAGE
38 text = 'STAGE';
39 case EventType.ENABLE
40 text = 'ENABLE';
41 case EventType.FIRE
42 text = 'FIRE';
43 case EventType.PRE
44 text = 'PRE';
45 case EventType.POST
46 text = 'POST';
47 end
48 end
49 end
50
51end