Trees | Index | Help |
|
---|
Package MDSplus :: Module treenode :: Class TreeNode |
|
object
--+ |Data
--+ | TreeNode
CachedTreeNode
,
Device
,
TreePath
Method Summary | |
---|---|
Initialze TreeNode | |
various |
Implements value=node.attribute |
None |
Implements node.attribute=value |
Convert TreeNode to string. | |
TreeNode |
Add device descendant. |
TreeNode |
Add node |
None |
Add a tagname to this node |
None |
Begin a record segment |
None |
Allocate space for a timestamped segment |
Bool |
Returns True if this node contains the same data as specified in the value argument |
bool |
Return true if this node contains data versions |
None |
Delete this node from the tree |
None |
Delete data from this node |
None |
Execute method on conglomerate element |
TreeNode |
Return sibling of this node |
TreeNode |
Return first child of this node. |
TreeNodeArray |
Return TreeNodeArray of children nodes. |
String |
Return MDSplus class name of this node |
int |
Return compressed data length of this node |
Int32 |
Return index of this node in a conglomerate |
TreeNodeArray |
Return TreeNodeArray of conglomerate elements |
Data |
Return data |
Int32 |
Get depth of this node in the tree |
TreeNodeArray |
Return TreeNodeArray of first level descendants (children and members). |
String |
Return the name of the data type stored in this node |
String |
Return full path of this node |
int |
Return uncompressed data length of this node |
str |
Return path relative to top of local tree |
str |
Return tree containing this node |
TreeNode |
Return first member node |
TreeNodeArray |
Return TreeNodeArray of this nodes members |
String |
Return shortest path string for this node |
int |
Return node index |
TreeNode |
Return tree node where path is relative to this node |
String |
Return node name |
TreeNodeArray |
Return tree nodes where path is relative to this node |
Int32 |
Return number of children nodes. |
int |
Return number of first level descendants (children and members) |
Int32 |
Return number of nodes in this conglomerate |
int |
Return number of members |
int |
return number of segments contained in this node |
String |
Return the original part name of node in conglomerate |
int |
Get id/gid value of account which wrote data to this node |
TreeNode |
Return parent of this node |
String |
Return path of this node |
Signal | None |
Return segment |
Dimension |
Return dimension of segment |
Data |
return end of segment |
Data |
return start of segment |
int |
Return action completion status |
ndarray |
Return tags of this node |
Uint64 |
Return time data was written |
Tree |
Return Tree associated with this node |
str |
Return usage of this node |
bool |
Return true if this is a child node |
bool |
Return true if node contains data which can be compressed |
bool |
Return true if node is set to compress on put |
bool |
Return true of compression is disabled for this node |
bool |
Return true if successful action completion is essential |
bool |
Return true if this subtree is to be included in pulse file |
bool |
Return true if this is a member node |
bool |
Return true if data storage to model is disabled for this node |
bool |
Return true if data storage to pulse file is disabled for this node |
bool |
Return True if node is turned on, False if not. |
bool |
Return true if this node contains segmented records |
bool |
Return true if data is setup information. |
bool |
Return true if node is set write once |
None |
Load a timestamped segment |
None |
Move node to another location in the tree and optionally rename the node |
None |
Store data |
None |
Load a timestamped segment row |
None |
Load a segment in a node |
None |
Load a timestamped segment |
None |
Remove a tagname from this node |
None |
Rename node this node |
None |
Restore tree context. |
None |
Set compress on put state of this node |
None |
Set do not compress state of this node |
None |
Set essential state of this node |
None |
Set include in pulse state of this node |
None |
Set no write model state for this node |
None |
Set no write shot state for this node |
None |
Turn node on or off |
None |
Enable/Disable node as a subtree |
None |
Set Tree associated with this node |
None |
Set the usage of a node |
None |
Set write once state of node |
None |
Update a segment |
Inherited from Data | |
Data |
Absolute value: x.__abs__() <==> abs(x) |
Data |
Add: x.__add__(y) <==> x+y |
Data |
And: x.__and__(y) <==> x&y |
Data |
Divide: x.__div__(y) <==> x/y |
Bool |
Equals: x.__eq__(y) <==> x==y |
Data |
Float: x.__float__() <==> float(x) |
Data |
Floordiv: x.__floordiv__(y) <==> x//y |
Bool |
Greater or equal: x.__ge__(y) <==> x>=y |
Data |
Subscript: x.__getitem__(y) <==> x[y] |
Bool |
Greater than: x.__gt__(y) <==> x>y |
int |
Integer: x.__int__() <==> int(x) |
Data |
Binary not: x.__invert__() <==> ~x |
Bool |
Less than or equal: x.__le__(y) <==> x<=y |
Data |
Length: x.__len__() <==> len(x) |
long |
Convert this object to python long |
Data |
Lrft binary shift: x.__lshift__(y) <==> x<<y |
Bool |
Less than: x.__lt__(y) <==> x<y |
Data |
Modulus: x.__mod__(y) <==> x%y |
Data |
Multiply: x.__mul__(y) <==> x*y |
Data |
Not equal: x.__ne__(y) <==> x!=y |
Data |
Negation: x.__neg__() <==> -x |
Bool |
Not equal 0: x.__nonzero__() <==> x != 0 |
Data |
Or: x.__or__(y) <==> x|y |
Data |
Unary plus: x.__pos__() <==> +x |
Data |
Reverse add: x.__radd__(y) <==> y+x |
Data |
Reverse divide: x.__rdiv__(y) <==> y/x |
string |
Return string representation |
Data |
x.__rfloordiv__(y) <==> y//x |
Data |
Reverse left binary shift: x.__rlshift__(y) <==> y<<x |
Data |
Reverse modulus: x.__rmod__(y) <==> y%x |
Data |
Multiply: x.__mul__(y) <==> x*y |
Data |
Or: x.__or__(y) <==> x|y |
Data |
Reverse right binary shift: x.__rrshift__(y) <==> y>>x |
Data |
Right binary shift: x.__rshift__(y) <==> x>>y |
Data |
Reverse subtract: x.__rsub__(y) <==> y-x |
Data |
Reverse xor: x.__rxor__(y) <==> y^x |
Data |
Subtract: x.__sub__(y) <==> x-y |
Data |
Xor: x.__xor__(y) <==> x^y |
Bool |
Return boolean |
Data |
Static method (routine in C++) which compiles the expression (via TdiCompile()) and returns the object instance correspondind to the compiled expression. (Static method) |
Scalar,Array |
Return primitimive value of the data. |
string |
Return string representation |
Data |
Return Data from serialized buffer. (Static method) |
Data |
Return dimension of object |
Data |
Return the result of TDI evaluate(this). |
Data |
Execute and expression inserting optional arguments into the expression before evaluating (Static method) |
Int8 |
Convert this data into a byte. |
Int8Array |
Convert this data into a byte array. |
Data |
Return dimension of object |
Float64 |
Convert this data into a float64. |
Data |
Get the error field. |
Float32 |
Convert this data into a float32. |
Data |
Returns the result of TDI GET_HELP(this). |
Int32 |
Convert this data into a int. |
Int32Array |
Convert this data into a int array. |
Int64 |
Convert this data into a long. |
Int64Array |
Convert this data into a long array. |
Int32Array |
Get the array dimensions as an integer array. |
Int16 |
Convert this data into a short. |
Int16Array |
Convert this data into a short array. |
String |
Convert this data into a STRING. |
Data |
Get value of tdi public variable (Static method) |
Data |
Return the TDI evaluation of UNITS_OF(this). |
Data |
Return MDSplus data class from value. (Static method) |
Bool |
return true if the represented data could have been changed since the last time this method has been called. |
Data |
Pop $value for expression evaluation |
None |
Set $value for expression evaluation |
Data |
Return raw part of object |
Uint8Array |
Return Uint8Array binary representation. |
None |
Set the Error field for this Data instance. |
None |
Set the Help field for this Data instance. |
Data |
Set tdi public variable with this data |
None |
Set units |
Float32Array |
Return sin() of data assuming data is in degrees |
Data |
Return units part of the object |
Data |
Return value part of object |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle |
Property Summary | |
---|---|
Inherited from Data | |
descriptor | |
error | |
help | |
units | |
validation |
Instance Variable Summary | |
---|---|
int | nid : node index of this node. |
Tree | tree : Tree instance that this node belongs to. |
Instance Method Details |
---|
__init__(self,
n,
tree=None)
Initialze TreeNode
|
__getattr__(self,
name)
|
__setattr__(self, name, value)Implements node.attribute=value Attributes which can be set:
|
__str__(self)
Convert TreeNode to string.
|
addDevice(self, name, model)Add device descendant.
|
addNode(self, name, usage='ANY')Add node
|
addTag(self, tag)Add a tagname to this node
|
beginSegment(self, start, end, dimension, initialValueArray, idx=-1)Begin a record segment
|
beginTimestampedSegment(self, array, idx=-1)Allocate space for a timestamped segment
|
compare(self, value)Returns True if this node contains the same data as specified in the value argument
|
containsVersions(self)Return true if this node contains data versions
|
delete(self)Delete this node from the tree
|
deleteData(self)Delete data from this node
|
doMethod(self, method, arg=None)Execute method on conglomerate element
|
getBrother(self)Return sibling of this node
|
getChild(self)Return first child of this node.
|
getChildren(self)Return TreeNodeArray of children nodes.
|
getClass(self)Return MDSplus class name of this node
|
getCompressedLength(self)Return compressed data length of this node
|
getConglomerateElt(self)Return index of this node in a conglomerate
|
getConglomerateNodes(self)Return TreeNodeArray of conglomerate elements
|
getData(self)Return data
|
getDepth(self)Get depth of this node in the tree
|
getDescendants(self)Return TreeNodeArray of first level descendants (children and members).
|
getDtype(self)Return the name of the data type stored in this node
|
getFullPath(self)Return full path of this node
|
getLength(self)Return uncompressed data length of this node
|
getLocalPath(self)Return path relative to top of local tree
|
getLocalTree(self)Return tree containing this node
|
getMember(self)Return first member node
|
getMembers(self)Return TreeNodeArray of this nodes members
|
getMinPath(self)Return shortest path string for this node
|
getNid(self)Return node index
|
getNode(self, path)Return tree node where path is relative to this node
|
getNodeName(self)Return node name
|
getNodeWild(self, path)Return tree nodes where path is relative to this node
|
getNumChildren(self)Return number of children nodes.
|
getNumDescendants(self)Return number of first level descendants (children and members)
|
getNumElts(self)Return number of nodes in this conglomerate
|
getNumMembers(self)Return number of members
|
getNumSegments(self)return number of segments contained in this node
|
getOriginalPartName(self)Return the original part name of node in conglomerate
|
getOwnerId(self)Get id/gid value of account which wrote data to this node
|
getParent(self)Return parent of this node
|
getPath(self)Return path of this node
|
getSegment(self, idx)Return segment
|
getSegmentDim(self, idx)Return dimension of segment
|
getSegmentEnd(self, idx)return end of segment
|
getSegmentStart(self, idx)return start of segment
|
getStatus(self)Return action completion status
|
getTags(self)Return tags of this node
|
getTimeInserted(self)Return time data was written
|
getTree(self)Return Tree associated with this node
|
getUsage(self)Return usage of this node
|
isChild(self)Return true if this is a child node
|
isCompressible(self)Return true if node contains data which can be compressed
|
isCompressOnPut(self)Return true if node is set to compress on put
|
isDoNotCompress(self)Return true of compression is disabled for this node
|
isEssential(self)Return true if successful action completion is essential
|
isIncludedInPulse(self)Return true if this subtree is to be included in pulse file
|
isMember(self)Return true if this is a member node
|
isNoWriteModel(self)Return true if data storage to model is disabled for this node
|
isNoWriteShot(self)Return true if data storage to pulse file is disabled for this node
|
isOn(self)Return True if node is turned on, False if not.
|
isSegmented(self)Return true if this node contains segmented records
|
isSetup(self)Return true if data is setup information.
|
isWriteOnce(self)Return true if node is set write once
|
makeTimestampedSegment(self, timestampArray, array, idx, rows_filled)Load a timestamped segment
|
move(self, parent, newname=None)Move node to another location in the tree and optionally rename the node
|
putData(self, data)Store data
|
putRow(self, bufsize, array, timestamp)Load a timestamped segment row
|
putSegment(self, data, idx)Load a segment in a node
|
putTimestampedSegment(self, timestampArray, array)Load a timestamped segment
|
removeTag(self, tag)Remove a tagname from this node
|
rename(self, newname)Rename node this node
|
restoreContext(self)Restore tree context. Used by internal functions.
|
setCompressOnPut(self, flag)Set compress on put state of this node
|
setDoNotCompress(self, flag)Set do not compress state of this node
|
setEssential(self, flag)Set essential state of this node
|
setIncludedInPulse(self, flag)Set include in pulse state of this node
|
setNoWriteModel(self, flag)Set no write model state for this node
|
setNoWriteShot(self, flag)Set no write shot state for this node
|
setOn(self, flag)Turn node on or off
|
setSubtree(self, flag)Enable/Disable node as a subtree
|
setTree(self, tree)Set Tree associated with this node
|
setUsage(self, usage)Set the usage of a node
|
setWriteOnce(self, flag)Set write once state of node
|
updateSegment(self, start, end, dim, idx)Update a segment
|
Instance Variable Details |
---|
nidnode index of this node.
|
treeTree instance that this node belongs to.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed Aug 18 13:35:31 2010 | http://epydoc.sf.net |