LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
Processor.m
1classdef Processor < Host
2 % A hardware server in a LayeredNetwork.
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7
8 methods
9 %public methods, including constructor
10
11 %constructor
12 function self = Processor(model, name, multiplicity, scheduling, quantum, speedFactor)
13 % OBJ = PROCESSOR(MODEL, NAME, MULTIPLICITY, SCHEDULING, QUANTUM, SPEEDFACTOR)
14 name = char(name);
15
16 if nargin<2 %~exist('name','var')
17 line_error(mfilename,'Constructor requires to specify at least a name.');
18 end
19 if nargin<3 %~exist('multiplicity','var')
20 multiplicity = 1;
21 end
22 if nargin<4 %~exist('scheduling','var')
23 scheduling = SchedStrategy.PS;
24 end
25 if nargin<5 %~exist('quantum','var')
26 quantum = 0.001;
27 end
28 if nargin<6 %~exist('speedFactor','var')
29 speedFactor = 1;
30 end
31 self@Host(model, name, multiplicity, scheduling, quantum, speedFactor)
32 end
33
34 end
35
36end