rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
CreatorDefault.m
1 classdef CreatorDefault < DataTree.ICreator
2  % default implementation of the DataTree.ICreator interface
3  %
4  % This simply copies the t-partitioning, p-partitioning and ID-mapped nodes
5  % of a DataTree.
6  %
7  % The only function left to implement is the
8  % @ref DataTree.ICreator.create_leaf_node() "leaf creation" method.
9 
10  methods
11  function node = create_tpart_node(this, t_part_map, initvalues)
12  node = DataTree.TpartNode(t_part_map, initvalues);
13  end
14 
15  function node = create_idmap_node(this, id_map, initvalues)
16  node = DataTree.IdMapNode(id_map, initvalues);
17  end
18 
19  function node = create_ppart_node(this, p_part_map, initvalues)
20  node = DataTree.PpartNode(p_part_map, initvalues);
21  end
22 
23  end
24 end