1classdef RandomSource < InputSection
2 % An input section generating arrivals from the external world at random
5 % Copyright (c) 2012-2026, Imperial College London
14 function self = RandomSource(
classes)
15 % SELF = RANDOMSOURCE(CLASSES)
17 self@InputSection(
'RandomSource');
19 self.sourceClasses{1,i} = {[],ServiceStrategy.LI,Disabled.getInstance()};
24 methods(Access =
protected)
25 % Override copyElement method:
26 function clone = copyElement(self)
27 % CLONE = COPYELEMENT()
29 % Make a shallow copy of all properties
30 clone = copyElement@Copyable(self);
31 % Make a deep copy of each
object
32 for i = 1 : length(self.sourceClasses)
33 clone.sourceClasses{1,i}{3} = self.sourceClasses{1,i}{3}.copy;