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 RENEGE = 10; % a waiting job abandons the queue (impatience)
21 RETRY = 11; % an orbiting job retries entry into a retrial station
22 SWITCH = 12; % the server of a polling station advances its switchover timer
23 FAILURE = 13; % the server of a station breaks down (goes from up to down)
24 REPAIR = 14; % the server of a station is repaired (goes from down to up)
25 end
26
27 methods(Static)
28 function text = toText(type)
29 % TEXT = TOTEXT(TYPE)
30
31 switch type
32 case EventType.ARV
33 text = 'ARV';
34 case EventType.DEP
35 text = 'DEP';
36 case EventType.PHASE
37 text = 'PHASE';
38 case EventType.READ
39 text = 'READ';
40 case EventType.LOCAL
41 text = 'LOCAL';
42 case EventType.STAGE
43 text = 'STAGE';
44 case EventType.ENABLE
45 text = 'ENABLE';
46 case EventType.FIRE
47 text = 'FIRE';
48 case EventType.PRE
49 text = 'PRE';
50 case EventType.POST
51 text = 'POST';
52 case EventType.RENEGE
53 text = 'RENEGE';
54 case EventType.RETRY
55 text = 'RETRY';
56 case EventType.SWITCH
57 text = 'SWITCH';
58 case EventType.FAILURE
59 text = 'FAILURE';
60 case EventType.REPAIR
61 text = 'REPAIR';
62 end
63 end
64 end
65
66end