1
- classdef Tag < nix .NamedEntity & nix .MetadataMixIn
1
+ classdef Tag < nix .NamedEntity & nix .MetadataMixIn & nix . SourcesMixIn
2
2
% Tag nix Tag object
3
3
4
4
properties (Access = protected )
8
8
9
9
methods
10
10
function obj = Tag(h )
11
-
11
+ [email protected] (
h );
% this should be first
12
12
13
+
13
14
14
15
% assign dynamic properties
15
16
obj .add_dyn_attr(' position' , ' rw' );
19
20
% assign relations
20
21
obj .add_dyn_relation(' references' , @nix .DataArray );
21
22
obj .add_dyn_relation(' features' , @nix .Feature );
22
- obj .add_dyn_relation(' sources' , @nix .Source );
23
23
end ;
24
24
25
25
% ------------------
69
69
% see mkarray.cc(42)
70
70
data = permute(tmp , length(size(tmp )): -1 : 1 );
71
71
end ;
72
-
73
- % ------------------
74
- % Sources methods
75
- % ------------------
76
-
77
- function [] = add_source(obj , add_this )
78
- obj.sourcesCache = nix .Utils .add_entity(obj , ...
79
- add_this , ' nix.Source' , ' Tag::addSource' , obj .sourcesCache );
80
- end ;
81
-
82
- function delCheck = remove_source(obj , del )
83
- [delCheck , obj .sourcesCache ] = nix .Utils .delete_entity(obj , ...
84
- del , ' nix.Source' , ' Tag::removeSource' , obj .sourcesCache );
85
- end ;
86
-
87
- function retObj = open_source(obj , id_or_name )
88
- retObj = nix .Utils .open_entity(obj , ...
89
- ' Tag::openSource' , id_or_name , @nix .Source );
90
- end ;
91
72
92
73
end ;
93
74
end
0 commit comments