time | Calls | line |
---|
| | 1 |
|
| | 2 | %
|
| | 3 |
|
| | 4 | % Copyright 2013-2017 The MathWorks, Inc.
|
| | 5 |
|
< 0.001 | 32 | 6 | classdef HGBehavior < matlab.mixin.SetGet & matlab.mixin.Heterogeneous
|
| | 7 | % This internal class which may be removed in a future release.
|
| | 8 | % Abstract Base class for behavior objects.
|
| | 9 | % This is to support concatenation of behavior objects
|
| | 10 | % Defining an abstract method dosupport
|
| | 11 | methods (Abstract)
|
| | 12 | dosupport(~,hTarget)
|
| | 13 | end
|
| | 14 | methods (Static)
|
| | 15 | function deserializeBehaviorsStruct(obj, behaviors)
|
| | 16 | b = [];
|
| | 17 | for n = 1:length(behaviors)
|
| | 18 | try
|
| | 19 | b(n) = feval(behaviors(n).class);
|
| | 20 | set(b(n), behaviors(n).properties);
|
| | 21 | end
|
| | 22 | end
|
| | 23 | for n = 1:length(b)
|
| | 24 | hgaddbehavior(obj, b(n));
|
| | 25 | end
|
| | 26 | end
|
| | 27 | end
|
| | 28 | end
|
| | 29 |
|