|
35 | 35 | % Link methods
|
36 | 36 | % ----------------
|
37 | 37 |
|
38 |
| - function [] = set_link(obj, val) |
| 38 | + function [] = setLink(obj, val) |
39 | 39 | if (isempty(val))
|
40 | 40 | fname = strcat(obj.alias, '::setNoneLink');
|
41 | 41 | nix_mx(fname, obj.nix_handle);
|
|
48 | 48 | r = nix.Utils.fetchObj(obj, 'openLink', @nix.Section);
|
49 | 49 | end
|
50 | 50 |
|
51 |
| - function r = inherited_properties(obj) |
| 51 | + function r = inheritedProperties(obj) |
52 | 52 | r = nix.Utils.fetchObjList(obj, 'inheritedProperties', @nix.Property);
|
53 | 53 | end
|
54 | 54 |
|
55 | 55 | % ----------------
|
56 | 56 | % Section methods
|
57 | 57 | % ----------------
|
58 | 58 |
|
59 |
| - function r = create_section(obj, name, type) |
| 59 | + function r = createSection(obj, name, type) |
60 | 60 | fname = strcat(obj.alias, '::createSection');
|
61 | 61 | h = nix_mx(fname, obj.nix_handle, name, type);
|
62 | 62 | r = nix.Utils.createEntity(h, @nix.Section);
|
63 | 63 | end
|
64 | 64 |
|
65 |
| - function r = delete_section(obj, del) |
| 65 | + function r = deleteSection(obj, del) |
66 | 66 | r = nix.Utils.delete_entity(obj, 'deleteSection', del, 'nix.Section');
|
67 | 67 | end
|
68 | 68 |
|
69 |
| - function r = open_section(obj, id_or_name) |
70 |
| - r = nix.Utils.open_entity(obj, 'openSection', id_or_name, @nix.Section); |
| 69 | + function r = openSection(obj, idName) |
| 70 | + r = nix.Utils.open_entity(obj, 'openSection', idName, @nix.Section); |
71 | 71 | end
|
72 | 72 |
|
73 |
| - function r = open_section_idx(obj, index) |
| 73 | + function r = openSectionIdx(obj, index) |
74 | 74 | idx = nix.Utils.handle_index(index);
|
75 | 75 | r = nix.Utils.open_entity(obj, 'openSectionIdx', idx, @nix.Section);
|
76 | 76 | end
|
77 | 77 |
|
78 |
| - function r = has_section(obj, id_or_name) |
79 |
| - r = nix.Utils.fetchHasEntity(obj, 'hasSection', id_or_name); |
| 78 | + function r = hasSection(obj, idName) |
| 79 | + r = nix.Utils.fetchHasEntity(obj, 'hasSection', idName); |
80 | 80 | end
|
81 | 81 |
|
82 |
| - function r = section_count(obj) |
| 82 | + function r = sectionCount(obj) |
83 | 83 | r = nix.Utils.fetchEntityCount(obj, 'sectionCount');
|
84 | 84 | end
|
85 | 85 |
|
86 |
| - function r = filter_sections(obj, filter, val) |
| 86 | + function r = filterSections(obj, filter, val) |
87 | 87 | r = nix.Utils.filter(obj, 'sectionsFiltered', filter, val, @nix.Section);
|
88 | 88 | end
|
89 | 89 |
|
90 |
| - % find_related returns the nearest occurrence downstream of a |
| 90 | + % findRelated returns the nearest occurrence downstream of a |
91 | 91 | % nix.Section matching the filter.
|
92 | 92 | % If no section can be found downstream, it will look for the
|
93 | 93 | % nearest occurrence upstream of a nix.Section matching the filter.
|
94 |
| - function r = find_related(obj, filter, val) |
| 94 | + function r = findRelated(obj, filter, val) |
95 | 95 | r = nix.Utils.filter(obj, 'findRelated', filter, val, @nix.Section);
|
96 | 96 | end
|
97 | 97 |
|
98 |
| - % maxdepth is handled like an index |
99 |
| - function r = find_sections(obj, max_depth) |
100 |
| - r = obj.find_filtered_sections(max_depth, nix.Filter.accept_all, ''); |
| 98 | + % maxDepth is handled like an index |
| 99 | + function r = findSections(obj, maxDepth) |
| 100 | + r = obj.FilterFindSections(maxDepth, nix.Filter.accept_all, ''); |
101 | 101 | end
|
102 | 102 |
|
103 |
| - % maxdepth is handled like an index |
104 |
| - function r = find_filtered_sections(obj, max_depth, filter, val) |
105 |
| - r = nix.Utils.find(obj, 'findSections', max_depth, filter, val, @nix.Section); |
| 103 | + % maxDepth is handled like an index |
| 104 | + function r = FilterFindSections(obj, maxDepth, filter, val) |
| 105 | + r = nix.Utils.find(obj, 'findSections', maxDepth, filter, val, @nix.Section); |
106 | 106 | end
|
107 | 107 |
|
108 | 108 | % ----------------
|
109 | 109 | % Property methods
|
110 | 110 | % ----------------
|
111 | 111 |
|
112 |
| - function r = create_property(obj, name, datatype) |
| 112 | + function r = createProperty(obj, name, datatype) |
113 | 113 | if (~isa(datatype, 'nix.DataType'))
|
114 | 114 | err.identifier = 'NIXMX:InvalidArgument';
|
115 | 115 | err.message = 'Please provide a valid nix.DataType';
|
|
121 | 121 | end
|
122 | 122 | end
|
123 | 123 |
|
124 |
| - function r = create_property_with_value(obj, name, val) |
| 124 | + function r = createPropertyWithValue(obj, name, val) |
125 | 125 | if (~iscell(val))
|
126 | 126 | val = num2cell(val);
|
127 | 127 | end
|
|
130 | 130 | r = nix.Utils.createEntity(h, @nix.Property);
|
131 | 131 | end
|
132 | 132 |
|
133 |
| - function r = delete_property(obj, del) |
| 133 | + function r = deleteProperty(obj, del) |
134 | 134 | if (isstruct(del) && isfield(del, 'id'))
|
135 | 135 | id = del.id;
|
136 | 136 | else
|
|
141 | 141 | r = nix_mx(fname, obj.nix_handle, id);
|
142 | 142 | end
|
143 | 143 |
|
144 |
| - function r = open_property(obj, id_or_name) |
145 |
| - r = nix.Utils.open_entity(obj, 'openProperty', id_or_name, @nix.Property); |
| 144 | + function r = openProperty(obj, idName) |
| 145 | + r = nix.Utils.open_entity(obj, 'openProperty', idName, @nix.Property); |
146 | 146 | end
|
147 | 147 |
|
148 |
| - function r = open_property_idx(obj, index) |
| 148 | + function r = openPropertyIdx(obj, index) |
149 | 149 | idx = nix.Utils.handle_index(index);
|
150 | 150 | r = nix.Utils.open_entity(obj, 'openPropertyIdx', idx, @nix.Property);
|
151 | 151 | end
|
152 | 152 |
|
153 |
| - function r = property_count(obj) |
| 153 | + function r = propertyCount(obj) |
154 | 154 | r = nix.Utils.fetchEntityCount(obj, 'propertyCount');
|
155 | 155 | end
|
156 | 156 |
|
157 |
| - function r = filter_properties(obj, filter, val) |
| 157 | + function r = filterProperties(obj, filter, val) |
158 | 158 | r = nix.Utils.filter(obj, 'propertiesFiltered', filter, val, @nix.Property);
|
159 | 159 | end
|
160 | 160 |
|
161 | 161 | % ----------------
|
162 | 162 | % Referring entity methods
|
163 | 163 | % ----------------
|
164 | 164 |
|
165 |
| - function r = referring_data_arrays(obj, varargin) |
166 |
| - r = obj.referring_util(@nix.DataArray, 'DataArrays', varargin{:}); |
| 165 | + function r = referringDataArrays(obj, varargin) |
| 166 | + r = obj.referringUtil(@nix.DataArray, 'DataArrays', varargin{:}); |
167 | 167 | end
|
168 | 168 |
|
169 |
| - function r = referring_tags(obj, varargin) |
170 |
| - r = obj.referring_util(@nix.Tag, 'Tags', varargin{:}); |
| 169 | + function r = referringTags(obj, varargin) |
| 170 | + r = obj.referringUtil(@nix.Tag, 'Tags', varargin{:}); |
171 | 171 | end
|
172 | 172 |
|
173 |
| - function r = referring_multi_tags(obj, varargin) |
174 |
| - r = obj.referring_util(@nix.MultiTag, 'MultiTags', varargin{:}); |
| 173 | + function r = referringMultiTags(obj, varargin) |
| 174 | + r = obj.referringUtil(@nix.MultiTag, 'MultiTags', varargin{:}); |
175 | 175 | end
|
176 | 176 |
|
177 |
| - function r = referring_sources(obj, varargin) |
178 |
| - r = obj.referring_util(@nix.Source, 'Sources', varargin{:}); |
| 177 | + function r = referringSources(obj, varargin) |
| 178 | + r = obj.referringUtil(@nix.Source, 'Sources', varargin{:}); |
179 | 179 | end
|
180 | 180 |
|
181 |
| - function r = referring_blocks(obj) |
| 181 | + function r = referringBlocks(obj) |
182 | 182 | r = nix.Utils.fetchObjList(obj, 'referringBlocks', @nix.Block);
|
183 | 183 | end
|
184 | 184 | end
|
|
188 | 188 | % ----------------
|
189 | 189 |
|
190 | 190 | methods (Access=protected)
|
191 |
| - % referring_util receives a nix entityConstructor, part of a function |
| 191 | + % referringUtil receives a nix entityConstructor, part of a function |
192 | 192 | % name and varargin to provide abstract access to nix.Section
|
193 | 193 | % referringXXX and referringXXX(Block) methods.
|
194 |
| - function r = referring_util(obj, entityConstructor, fsuffix, varargin) |
| 194 | + function r = referringUtil(obj, entityConstructor, fsuffix, varargin) |
195 | 195 | if (isempty(varargin))
|
196 | 196 | fname = strcat('referring', fsuffix);
|
197 | 197 | r = nix.Utils.fetchObjList(obj, fname, entityConstructor);
|
|
0 commit comments