MatrixBerryCore
HandleObjectClonerAdv.m
Go to the documentation of this file.
1 classdef HandleObjectClonerAdv<mxberry.core.obj.test.HandleObjectCloner
2  properties
3  beta
4  end
5  %
6  methods
7  function self=HandleObjectClonerAdv(beta,varargin)
8  self=self@mxberry.core.obj.test.HandleObjectCloner(varargin{:});
9  if nargin>0
10  self.beta=beta;
11  end
12  end
13  end
14  %
15  methods
16  function setCompMode(self,compMode)
17  switch compMode
18  case 'blob'
19  self.setComparisonMode(...
21  case 'user'
22  self.setComparisonMode(...
24  end
25  end
26  function self=disp(self)
27  S.alpha=arrayfun(@(x)x.alpha,self);
28  S.beta=arrayfun(@(x)x.beta,self);
29  mxberry.core.struct.strucdisp(S);
30  end
31  end
32  %
33  methods (Static)
34  function objVec=create(alphaVec,betaVec)
35  nObj=numel(alphaVec);
36  for iObj=nObj:-1:1
37  alpha=alphaVec(iObj);
38  beta=betaVec(iObj);
39  objVec(iObj)=...
40  mxberry.core.obj.test.HandleObjectClonerAdv(beta,alpha);
41  end
42  end
43  end
44 end
function strucdisp(in varargin)
STRUCDISP display structure outline.
function setComparisonMode(in self, in comparisonMode)