rbmatlab 0.10.01
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes
DataTree.TpartNode Class Reference

Detailed Description

Data Tree element which can be filtered by time instants.

The children branches of this data tree node are all tagged with a time interval, either discrete (time steps) or continuous (time instants).

The branches can then be accessed via the nt argument of the get_index() method.

Definition at line 2 of file TpartNode.m.

Inheritance diagram for DataTree.TpartNode:
Inheritance graph
[legend]
Collaboration diagram for DataTree.TpartNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TpartNode ( tpart_map, initvalues, overlap)
 refiner = [];DefaultRefiner; constructor of initializing a TpartNode
function tstop index_valid_till ( index)
 returns the last valid time instance of a given entity in the tpart_map.
function index get_index ( id, mu, nt)
 

Obtains the leaf index vector that best fits the child description given by the three arguments.


function
indices
get_indices_in_region ( ids, mu_geo, tslice)
 needs to be implemented...
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.


function  refine ( indices, midpoints)
 % Other methods refines the T-Partitioning by refining the tpart_map.

Public Attributes

XPartMap tpart_map
 an object holding the time intervals.

Static Public Attributes

static const  data_node_type = "TPart"
 Data node type identifier.

Protected Attributes

 invmap
 struct mapping between time instants and indices of children. (?)
 overlap = 0
 an optional argument specifying whether the time slices overlap, and how much they do...

Constructor & Destructor Documentation

DataTree.TpartNode.TpartNode (   tpart_map,
  initvalues,
  overlap 
)

refiner = [];DefaultRefiner; constructor of initializing a TpartNode

Paramters
tpart_map: the T-partitioning map of type XPartMap. initivalues: a cell array of DataTree.INode objects for the initial values of the children. overlap: initial value for overlap property.
Parameters:
tpart_maptpart map
initvaluesinitvalues
overlapoverlap
Required fields of tpart_map:
  • siz —  siz

Definition at line 61 of file TpartNode.m.


Member Function Documentation

function tree = DataTree.TpartNode.create_tree (   creator,
  ids,
  mu_cube,
  tslice,
  basepath 
)

Creates a new tree from a subtree specified by ids, parameter and time index regions.

The method creates a new DataTree for all nodes tagged by an id in ids, lying in the time slice given by tslice and inside the parameter space region given by mu_rect. At each of these nodes a method from a creator is called to build the tree.

Parameters:
creatoran object creating the new tree.
idsa cell array of ids which shall be filtered. An empty cell array means that all ids are accepted. (default = [])
mu_cubea 1x2-cell array of vectors { lower_left, upper_right } specifying the lower left and the upper right corner of a cube in the parameter space for filtering parameter vectors. An empty array disables the filtering (default = []).
tslicea 2D vector specifying an interval of time step indices for time slicing. An empty vector disables the filtering (default = [])
basepatha vector specifying the relation of the current node to the parent node at which the merge began.
Return values:
treethe newly created tree

Calls DataTree.Creator.create_tpart_node() to build new elements.

Definition at line 155 of file TpartNode.m.

function index = DataTree.TpartNode.get_index (   id,
  mu,
  nt 
) [virtual]

Obtains the leaf index vector that best fits the child description given by the three arguments.

Todo:
add get_indices method returning indices in a range

The leaf child description consists of an

  • id string,
  • a parameter vector and
  • a time step number.
Parameters:
ida string id filtered through an DataTree.IdMapNode in the tree hierarchy.
mua parameter vector filtered through a DataTree.PpartNode instance in the tree hierarchy.
ntan integer corresponding to a time step index filtered through a DataTree.TpartNode instance in the tree hierarchy.
Return values:
indexthe most-specific (longest possible) index vector leading to a DataTree.ILeafNode element matching the child description.

Reimplemented from DataTree.DefaultNode.

Definition at line 124 of file TpartNode.m.

function indices = DataTree.TpartNode.get_indices_in_region (   ids,
  mu_geo,
  tslice 
)

needs to be implemented...

Todo:
implement
Parameters:
idsids
mu_geomu geo
tslicetslice
Return values:
indicesindices

Definition at line 142 of file TpartNode.m.

function tstop = DataTree.TpartNode.index_valid_till (   index)

returns the last valid time instance of a given entity in the tpart_map.

Parameters:
indexindex of the T-Partitioning interval.
Return values:
tstoptime instance when the requested time interval ends.

Reimplemented from DataTree.INode.

Definition at line 101 of file TpartNode.m.

function DataTree.TpartNode.refine (   indices,
  midpoints 
)

% Other methods refines the T-Partitioning by refining the tpart_map.

Parameters:
indicesindices of partitioning intervals to be refined.
midpointsoptional parameter for the refinement method XPartMap.refine() specifying how the geometries shall be split. (default = [])

Definition at line 204 of file TpartNode.m.


Member Data Documentation

Data node type identifier.


Default: "TPart"

Definition at line 32 of file TpartNode.m.

DataTree.TpartNode.overlap = 0 [protected]

an optional argument specifying whether the time slices overlap, and how much they do...


Default: 0

Definition at line 50 of file TpartNode.m.

an object holding the time intervals.

Note:
This property has non-unique access specifier: SetAccess = protected, GetAccess = public
Matlab documentation of property attributes.

Definition at line 20 of file TpartNode.m.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables