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 end
24
25 methods(Static)
26 function text = toText(type)
27 % TEXT = TOTEXT(TYPE)
28
29 switch type
30 case EventType.ARV
31 text = 'ARV';
32 case EventType.DEP
33 text = 'DEP';
34 case EventType.PHASE
35 text = 'PHASE';
36 case EventType.READ
37 text = 'READ';
38 case EventType.LOCAL
39 text = 'LOCAL';
40 case EventType.STAGE
41 text = 'STAGE';
42 case EventType.ENABLE
43 text = 'ENABLE';
44 case EventType.FIRE
45 text = 'FIRE';
46 case EventType.PRE
47 text = 'PRE';
48 case EventType.POST
49 text = 'POST';
50 case EventType.RENEGE
51 text = 'RENEGE';
52 case EventType.RETRY
53 text = 'RETRY';
54 case EventType.SWITCH
55 text = 'SWITCH';
56 end
57 end
58 end
59
60end
Definition Station.m:245