Dummy implementation for a DataTree.ILeafNode that stores a single data.
This class is used for tests and as a leaf for the DataTree.IdMapNode
Definition at line 18 of file DummyLeafNode.m.
Public Member Functions | |
DummyLeafNode (value) | |
constructor | |
function index = | get_index (dummy, dummy2, dummy3) |
Obtains the leaf index vector that best fits the child description given by the three arguments. | |
function value = | get (index) |
Access to a child of the current node. | |
function this = | set_values (value) |
sets the value of the LeafNode | |
Public Member Functions inherited from DataTree.ILeafNode | |
function
children = | length () |
Returns the number of children of the node. | |
function index = | get_index (dummy2, dummy3, dummy) |
Obtains the leaf index vector that best fits the child description given by the three arguments. | |
function this = | set (dummy2,DataTree.INode value) |
Sets a child at the given path in the tree hierarchy. | |
function data = | get (index) |
Access to a child of the current node. | |
function DataTree.ILeafNode node = | get_active_leaf (DataTree.IModel model, id) |
retuns the leaf element for the current IDetailedModel configuration. | |
function tree = | create_tree (creator, ids, mu_cube, tslice, basepath) |
Creates a new tree from a subtree specified by ids, parameter and time index regions. | |
Public Member Functions inherited from DataTree.INode | |
virtual function DataTree.INode tree = | create_tree (DataTree.ICreator creator, ids, mu_cube, tslice, basepath) |
Creates a new tree from a subtree specified by ids, parameter and time index regions. | |
virtual function this = | set (index, value) |
Sets a child at the given path in the tree hierarchy. | |
function | leaf_func (funcptr, ids, mu_cube, tslice) |
applies a function to all leafs of a DataTree | |
function tree = | create_scalar_tree (funcptr, ids, mu_cube, tslice) |
copies the current trees with different leafs. These leafs are computes by a function returning scalar values. | |
function
start_index = | traverse_start () |
Start iterator for a full traverse of the DataTree. | |
function
next_index = | traverse_next (this_index) |
iterator for a full traverse of the DataTree. | |
function
description = | get_active_leaf_description (IModel model, ids) |
returns an enumeration of all leaves' basepath index vectors with a description of their parents. | |
function
description = | get_leaf_description (ids, mu_cube, tslice) |
returns an enumeration of all leaves' basepath index vectors with a description of their parents. | |
function tstop = | index_valid_till (index) |
Returns the last valid time step index of a time slice. | |
function INode data = | get_by_description (id, mu, nt) |
A combination of get_index() and get() | |
function
active_leaf_index = | get_active_leaf_index (IModel model, id) |
retuns the leaf element index for the current IDetailedModel configuration. | |
function
DataTree.LeafNode active_leaf = | get_active_leaf (IModel model, id) |
retuns the leaf element for the current IDetailedModel configuration. | |
function | display (fn, basepath, name) |
overwrites the standard display method for DataTree objects | |
function lines = | disp_node (basepath, fn) |
returns a cell array of strings with information on the node. | |
Public Attributes | |
value | |
data stored in leaf node | |
DataTree.DummyLeafNode.DummyLeafNode | ( | value | ) |
|
virtual |
Access to a child of the current node.
index | needs to be equal to 1 . |
value | the data stored with this leaf element |
Implements DataTree.INode.
Definition at line 69 of file DummyLeafNode.m.
|
virtual |
Obtains the leaf index vector that best fits the child description given by the three arguments.
dummy | dummy |
dummy2 | dummy2 |
dummy3 | dummy3 |
index | =[] |
Implements DataTree.INode.
Definition at line 54 of file DummyLeafNode.m.
function this = DataTree.DummyLeafNode.set_values | ( | value | ) |
sets the value of the LeafNode
value | value |
this | this |
value —
value Definition at line 83 of file DummyLeafNode.m.