MatrixBerryCore
AStructChangeTracker.m
Go to the documentation of this file.
1 classdef AStructChangeTracker<handle
2  methods
3  function self=AStructChangeTracker()
4  end
5  end
6  methods(Abstract)
7  [SInput,lastRev]=applyAllLaterPatches(self,SInput,startRev)
8  % APPLYALLLATERPATCHES applies a series of patches up to the latest
9  % revision
10  %
11  % Input:
12  % regular:
13  % self: the object itself
14  % SInput: struct[1,1] - input structure
15  % startRev: numeric[1,1] - start revision
16  %
17  % Output:
18  % SInput: struct[1,1] - updated structure
19  % lastRev: numeric[1,1] -
20  %
21  %
22  % $Author: Peter Gagarinov, PhD <pgagarinov@gmail.com> $
23  % $Copyright: 2015-2016 Peter Gagarinov, PhD
24  % 2015 Moscow State University
25  % Faculty of Computational Mathematics and Computer Science
26  % System Analysis Department$
27  %
28 
29  SInput=applyPatches(self,SInput,startRev,endRev,isInclusiveVec)
30  % APPLYPATCHES applies a series of patches corresponding to the
31  % given revision range to the input structure
32  %
33  % Input:
34  % regular:
35  % self: the object itself
36  % SInput: struct[1,1] - input structure
37  % startRev: numeric[1,1] - start revision
38  % endRev: numeric[1,1] - end revision
39  %
40  % optional:
41  % isInclusiveVec: logical[1,2] - indicates whether
42  % startRev and endRev specify the revision bounds
43  % inclusively
44  %
45  % Output:
46  % SInput: struct[1,1] - updated structure
47  %
48 
49  lastRev=getLastRevision(self)
50  % GETLASTREVISION returns the latest revision number found
51  % amonth all the patches defined in the given object
52  %
53  % Input:
54  % regular:
55  % self: the object itself
56  % Output:
57  % lastRev: double[1,1] - latest revision number
58  %
59 
60 
61  end
62 end