comparison m-toolbox/classes/@ltpda_uoh/attachToDom.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1
2 function collectedHist = attachToDom(obj, dom, parent, collectedHist)
3
4 collectedHist = attachToDom@ltpda_uo(obj, dom, parent, collectedHist);
5
6 % Add hist
7 % Adding the history is a special case because here we store only the
8 % UUID of the history object. The history object will be stored in a
9 % special history-graph.
10 if isa(obj.hist, 'history')
11 histNode = dom.createElement('hist');
12 histNode.setAttribute('hist_UUID', obj.hist.UUID);
13 parent.appendChild(histNode);
14
15 % Add history nodes
16 collectedHist = obj.hist.attachToDom(dom, parent, collectedHist);
17 end
18
19 % Add procinfo
20 if isa(obj.procinfo, 'plist')
21 procinfoNode = dom.createElement('procinfo');
22 collectedHist = obj.procinfo.attachToDom(dom, procinfoNode, collectedHist);
23 parent.appendChild(procinfoNode);
24 end
25
26 % Add plotinfo
27 if isa(obj.plotinfo, 'plist')
28 plotinfoNode = dom.createElement('plotinfo');
29 collectedHist = obj.plotinfo.attachToDom(dom, plotinfoNode, collectedHist);
30 parent.appendChild(plotinfoNode);
31 end
32
33 end