| Modifier and Type | Field and Description |
|---|---|
protected int |
nid |
CLASS_A, CLASS_APD, CLASS_D, CLASS_R, CLASS_S, DTYPE_ACTION, DTYPE_B, DTYPE_BU, DTYPE_CALL, DTYPE_CONDITION, DTYPE_CONGLOM, DTYPE_DEPENDENCY, DTYPE_DICTIONARY, DTYPE_DIMENSION, DTYPE_DISPATCH, DTYPE_DOUBLE, DTYPE_DSC, DTYPE_EVENT, DTYPE_FLOAT, DTYPE_FUNCTION, DTYPE_IDENT, DTYPE_L, DTYPE_LIST, DTYPE_LU, DTYPE_METHOD, DTYPE_NID, DTYPE_O, DTYPE_OU, DTYPE_PARAM, DTYPE_PATH, DTYPE_PROCEDURE, DTYPE_PROGRAM, DTYPE_Q, DTYPE_QU, DTYPE_RANGE, DTYPE_ROUTINE, DTYPE_SIGNAL, DTYPE_SLOPE, DTYPE_T, DTYPE_TUPLE, DTYPE_W, DTYPE_WINDOW, DTYPE_WITH_ERROR, DTYPE_WITH_UNITS, DTYPE_WU, TreeDEPENDENCY_AND, TreeDEPENDENCY_OR, TreeIGNORE_STATUS, TreeIGNORE_UNDEFINED, TreeNEGATE_CONDITION| Constructor and Description |
|---|
TreeNode(Data help,
Data units,
Data error,
Data validation) |
TreeNode(int nid) |
TreeNode(int nid,
Data help,
Data units,
Data error,
Data validation) |
TreeNode(int nid,
Tree tree) |
TreeNode(int nid,
Tree tree,
Data help,
Data units,
Data error,
Data validation) |
| Modifier and Type | Method and Description |
|---|---|
TreeNode |
addDevice(String name,
String type)
Add a devive intance to the tree open for edit.
|
TreeNode |
addNode(String name,
String usage)
Add a node to the tree open for edit.
|
void |
addTag(String tagName)
Add a tag to this node in the tree open for edit.
|
void |
beginSegment(Data start,
Data end,
Data dim,
Array initData)
Begin a new data segment
|
void |
beginTimestampedSegment(Array initData)
Begin a timestamted segment
|
void |
clearNciFlag(int flagId) |
boolean |
containsVersions()
Return true if the node contains versions
|
void |
deleteData()
Delete data associaed with this node
|
int |
doAction() |
void |
doMethod(String method)
Do specified method for this node (valid only if it belongs to a conglomerae)
|
String[] |
findTags()
Get the (list of) tags for this node
|
TreeNode |
getBrother()
Return next sibling.
|
TreeNode |
getChild()
Get the first child of this node
|
TreeNodeArray |
getChildren()
Get all che child nodes for this node
|
int |
getCompressedLength()
Return the size in bytes of (possibly compressed) associated data
|
int |
getConglomerateElt()
Get index of the node in the corresponding conglomerate
|
TreeNodeArray |
getConglomerateNodes()
Return the array of nodes corresponding to the elements of the conglomeate to
which the node belongs
|
Data |
getData()
Get Data for this node
|
static TreeNode |
getData(int nid) |
static TreeNode |
getData(int nid,
Data help,
Data units,
Data error,
Data validation) |
String |
getDclass()
return data class as a java.lang.String
|
int |
getDepth()
Return the depth of the node in the tree
|
TreeNodeArray |
getDescendants()
Get all the descendant (members + children)for this node
|
String |
getDtype()
return data type as a java.lang.String
|
Data |
getExtendedAttribute(String name)
Get Extended Attribute
|
int |
getFlags()
Return the flag word
|
String |
getFullPath()
Get the full node pathname
|
int |
getLength()
Return the length in bytes of the contained data
|
TreeNode |
getMember()
Get the first member of this node
|
TreeNodeArray |
getMembers()
Return all the members of this node
|
String |
getMinPath()
Get the minimum path name for this node
|
boolean |
getNciFlag(int flagId) |
int |
getNciFlags() |
int |
getNid()
Get Node Identifier
|
String |
getNodeName()
Get the name of this node (not its path)
|
int |
getNumChildren()
Get the number of children for this node
|
int |
getNumDescendants()
Get the number of all descendants (members + children)fir this node
|
int |
getNumElts()
Return the number of the elements for the conglomerate to which the node
belongs
|
int |
getNumMembers()
Get the number of members for this node
|
int |
getNumSegments()
Get the num,ber of segments
|
String |
getOriginalPartName()
Return the original path within the conglomerate to thich the node belongs
|
int |
getOwnerId()
Return the Group/Id of the last writer for that node
|
TreeNode |
getParent()
Get the parent of this node
|
String |
getPath()
Get the path name for this node
|
Array |
getSegment(int idx)
Get data form the selectede segment
|
Data |
getSegmentDim(int idx) |
Data |
getSegmentEnd(int idx)
Get end time for that segment
|
Data |
getSegmentStart(int idx)
Get start time fopr that segment
|
int |
getStatus()
Return the status of the completed action (if the node contains ActionData)
|
long |
getTimeInserted()
Get the time of the last data insertion
|
Tree |
getTree()
Get the associated tree instance
|
String |
getUsage()
Get the node usage as a string
|
boolean |
isChild()
Return true is the node is a child node
|
boolean |
isCompressible()
Return true if node is compressible.
|
boolean |
isCompressOnPut()
Return true if data has to be comressed when written.
|
boolean |
isCompressSegments()
Return true if segmented node is compressible.
|
boolean |
isEssential()
Return true id the node is essential (action necessary in dispatching)
|
boolean |
isIncludedInPulse()
Return true if the underlying subtree is included in the pulse file
|
boolean |
isIncludeInPulse() |
boolean |
isMember()
Return true id the node is a member node
|
boolean |
isNoWriteModel()
Return true if this node cannot be written in the model
|
boolean |
isNoWriteShot()
Return true if this node cannot be written in pulse files
|
boolean |
isOn()
Return true if the node is On
|
boolean |
isParentOff()
Return true if node parent is off
|
boolean |
isSegmented()
Return true if the node contains segmented data
|
boolean |
isSetup()
Return true if this is setup data (i.e.
|
boolean |
isWriteOnce()
Return true if it is only allowed to write once on this node
|
void |
makeSegment(Data start,
Data end,
Data dim,
Array initData) |
void |
makeTimestampedSegment(Data data,
long[] times) |
void |
move(TreeNode parent) |
void |
move(TreeNode parent,
String newName) |
void |
putData(byte d) |
void |
putData(byte[] d) |
void |
putData(Data data)
Write data for this node
|
void |
putData(double d) |
void |
putData(double[] d) |
void |
putData(float d) |
void |
putData(float[] d) |
void |
putData(int d) |
void |
putData(int[] d) |
void |
putData(long d) |
void |
putData(long[] d) |
void |
putData(short d) |
void |
putData(short[] d) |
void |
putData(String d) |
void |
putData(String[] d) |
void |
putRow(Data row,
long time) |
void |
putRow(Data row,
long time,
int size)
Writre a single row of timestamped data
|
void |
putSegment(Array data,
int offset)
Write (part of) data segment
|
void |
putTimestampedSegment(Data data,
long[] times)
Write (part of)data in a timestamped segment
|
void |
remove(String name)
Removes a node and its descendands from the tree open for edit.
|
void |
removeTag(String tagName)
Remove a tag to this node in the tree open for edit.
|
void |
rename(String newName)
Rename a node in edit.
|
protected void |
resolveNid() |
void |
setCompressible(boolean flag)
Node is compressible
|
void |
setCompressOnPut(boolean flag)
Node is compressible
|
void |
setCompressSegments(boolean flag)
Segmented Node is compressible
|
void |
setEssential(boolean flag)
Set essential flag
|
void |
setExtendedAttribute(String name,
Data val)
Set Extended Attribute
|
void |
setIncludedInPulse(boolean flag)
Set includeInPulse flag
|
void |
setIncludeInPulse(boolean flag) |
void |
setNciFlag(int flagId) |
void |
setNciFlags(int flags) |
void |
setNoWriteModel(boolean noWriteModel)
Set NoWriteModel flag
|
void |
setNoWriteShot(boolean noWriteShot) |
void |
setOn(boolean on)
Set on/off for that node
|
void |
setSubtree(boolean isSubtree)
Derclare this node to be a reference to a (separate) subtree in the tree open
for edit.
|
void |
setTree(Tree tree)
set the associated Tree instance
|
void |
setWriteOnce(boolean writeOnce)
Set WriteOnce flag
|
void |
updateSegment(int segmentOffset,
Data start,
Data end,
Data dim)
Update start, end time and dimension for the specified segment
|
compile, compile, convertToDate, data, deserialize, evaluate, execute, executeWithContext, getByte, getByteArray, getDimensionAt, getDouble, getDoubleArray, getError, getFloat, getFloatArray, getHelp, getInt, getIntArray, getLong, getLongArray, getMdsMsg, getShape, getShort, getShortArray, getSize, getSizeInBytes, getString, getStringArray, getTime, getUnits, getValidation, plot, serialize, setCtxTree, setError, setHelp, setUnits, setValidation, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toDouble, toStringpublic TreeNode(int nid,
Data help,
Data units,
Data error,
Data validation)
throws MdsException
MdsExceptionpublic TreeNode(Data help, Data units, Data error, Data validation) throws MdsException
MdsExceptionpublic TreeNode(int nid,
Tree tree)
throws MdsException
MdsExceptionpublic TreeNode(int nid)
throws MdsException
MdsExceptionpublic static TreeNode getData(int nid) throws MdsException
MdsExceptionpublic static TreeNode getData(int nid, Data help, Data units, Data error, Data validation) throws MdsException
MdsExceptionprotected void resolveNid()
throws MdsException
MdsExceptionpublic boolean isCompressOnPut()
throws MdsException
MdsExceptionpublic boolean isCompressible()
throws MdsException
MdsExceptionpublic boolean isCompressSegments()
throws MdsException
MdsExceptionpublic void setCompressible(boolean flag)
throws MdsException
flag - MdsExceptionpublic void setCompressOnPut(boolean flag)
throws MdsException
flag - MdsExceptionpublic void setCompressSegments(boolean flag)
throws MdsException
flag - MdsExceptionpublic int getConglomerateElt()
throws MdsException
MdsExceptionpublic int getNumElts()
throws MdsException
MdsExceptionpublic int getFlags()
throws MdsException
MdsExceptionpublic TreeNodeArray getConglomerateNodes() throws MdsException
MdsExceptionpublic String getOriginalPartName() throws MdsException
MdsExceptionpublic String getDtype() throws MdsException
MdsExceptionpublic String getDclass() throws MdsException
MdsExceptionpublic boolean isEssential()
throws MdsException
MdsExceptionpublic void setEssential(boolean flag)
throws MdsException
flag - MdsExceptionpublic String getFullPath() throws MdsException
MdsExceptionpublic String getMinPath() throws MdsException
MdsExceptionpublic String getPath() throws MdsException
MdsExceptionpublic String getNodeName() throws MdsException
MdsExceptionpublic boolean isIncludedInPulse()
throws MdsException
MdsExceptionpublic boolean isIncludeInPulse()
throws MdsException
MdsExceptionpublic void setIncludedInPulse(boolean flag)
throws MdsException
flag - MdsExceptionpublic void setIncludeInPulse(boolean flag)
throws MdsException
MdsExceptionpublic int getDepth()
throws MdsException
MdsExceptionpublic boolean isChild()
throws MdsException
MdsExceptionpublic TreeNode getChild() throws MdsException
MdsExceptionpublic int getNumChildren()
throws MdsException
MdsExceptionpublic TreeNodeArray getChildren() throws MdsException
MdsExceptionpublic boolean isMember()
throws MdsException
MdsExceptionpublic TreeNode getMember() throws MdsException
MdsExceptionpublic int getNumMembers()
throws MdsException
MdsExceptionpublic TreeNodeArray getMembers() throws MdsException
MdsExceptionpublic int getNumDescendants()
throws MdsException
MdsExceptionpublic TreeNodeArray getDescendants() throws MdsException
MdsExceptionpublic TreeNode getParent() throws MdsException
MdsExceptionpublic TreeNode getBrother() throws MdsException
MdsExceptionpublic int getLength()
throws MdsException
MdsExceptionpublic int getCompressedLength()
throws MdsException
MdsExceptionpublic int getNid()
throws MdsException
MdsExceptionpublic boolean isNoWriteModel()
throws MdsException
MdsExceptionpublic void setNoWriteModel(boolean noWriteModel)
throws MdsException
noWriteModel - MdsExceptionpublic boolean isNoWriteShot()
throws MdsException
MdsExceptionpublic void setNoWriteShot(boolean noWriteShot)
throws MdsException
noWriteShot - MdsExceptionpublic boolean isWriteOnce()
throws MdsException
MdsExceptionpublic void setWriteOnce(boolean writeOnce)
throws MdsException
writeOnce - MdsExceptionpublic int getNciFlags()
throws MdsException
MdsExceptionpublic void setNciFlags(int flags)
throws MdsException
MdsExceptionpublic boolean getNciFlag(int flagId)
throws MdsException
MdsExceptionpublic void setNciFlag(int flagId)
throws MdsException
MdsExceptionpublic void clearNciFlag(int flagId)
throws MdsException
MdsExceptionpublic boolean isOn()
throws MdsException
MdsExceptionpublic boolean isParentOff()
throws MdsException
MdsExceptionpublic void setExtendedAttribute(String name, Data val) throws MdsException
MdsExceptionpublic Data getExtendedAttribute(String name) throws MdsException
MdsExceptionpublic void setOn(boolean on)
throws MdsException
on - MdsExceptionpublic int getOwnerId()
throws MdsException
MdsExceptionpublic Data getData() throws MdsException
MdsExceptionpublic void putData(Data data) throws MdsException
data - MdsExceptionpublic void deleteData()
throws MdsException
MdsExceptionpublic long getTimeInserted()
throws MdsException
MdsExceptionpublic void doMethod(String method) throws MdsException
method - MdsExceptionpublic boolean isSetup()
throws MdsException
MdsExceptionpublic int getStatus()
throws MdsException
MdsExceptionpublic String getUsage() throws MdsException
MdsExceptionpublic String[] findTags() throws MdsException
MdsExceptionpublic boolean containsVersions()
throws MdsException
MdsExceptionpublic boolean isSegmented()
throws MdsException
MdsExceptionpublic void beginSegment(Data start, Data end, Data dim, Array initData) throws MdsException
start - end - dim - initData - MdsExceptionpublic void makeSegment(Data start, Data end, Data dim, Array initData) throws MdsException
MdsExceptionpublic void putSegment(Array data, int offset) throws MdsException
data - offset - MdsExceptionpublic void updateSegment(int segmentOffset,
Data start,
Data end,
Data dim)
throws MdsException
segmentOffset - (-1 fpr last segment)start - end - dim - MdsExceptionpublic void beginTimestampedSegment(Array initData) throws MdsException
initData - MdsExceptionpublic void putTimestampedSegment(Data data, long[] times) throws MdsException
data - times - MdsExceptionpublic void makeTimestampedSegment(Data data, long[] times) throws MdsException
MdsExceptionpublic void putRow(Data row, long time, int size) throws MdsException
row - time - MdsExceptionpublic void putRow(Data row, long time) throws MdsException
MdsExceptionpublic int getNumSegments()
throws MdsException
MdsExceptionpublic Data getSegmentStart(int idx) throws MdsException
idx - MdsExceptionpublic Data getSegmentEnd(int idx) throws MdsException
idx - MdsExceptionpublic Data getSegmentDim(int idx) throws MdsException
idx - MdsExceptionpublic Array getSegment(int idx) throws MdsException
idx - MdsExceptionpublic Tree getTree()
public void setTree(Tree tree)
tree - public TreeNode addNode(String name, String usage) throws MdsException
name - usage - MdsExceptionpublic void remove(String name) throws MdsException
name - MdsExceptionpublic void rename(String newName) throws MdsException
oldName - newName - MdsExceptionpublic void move(TreeNode parent, String newName) throws MdsException
MdsExceptionpublic void move(TreeNode parent) throws MdsException
MdsExceptionpublic void addTag(String tagName) throws MdsException
tagName - MdsExceptionpublic void removeTag(String tagName) throws MdsException
tagName - MdsExceptionpublic TreeNode addDevice(String name, String type) throws MdsException
name - usage - MdsExceptionpublic void setSubtree(boolean isSubtree)
throws MdsException
isSubtree - MdsExceptionpublic int doAction()
throws MdsException
MdsExceptionpublic void putData(byte d)
throws MdsException
MdsExceptionpublic void putData(short d)
throws MdsException
MdsExceptionpublic void putData(int d)
throws MdsException
MdsExceptionpublic void putData(long d)
throws MdsException
MdsExceptionpublic void putData(float d)
throws MdsException
MdsExceptionpublic void putData(double d)
throws MdsException
MdsExceptionpublic void putData(String d) throws MdsException
MdsExceptionpublic void putData(byte[] d)
throws MdsException
MdsExceptionpublic void putData(short[] d)
throws MdsException
MdsExceptionpublic void putData(int[] d)
throws MdsException
MdsExceptionpublic void putData(long[] d)
throws MdsException
MdsExceptionpublic void putData(float[] d)
throws MdsException
MdsExceptionpublic void putData(double[] d)
throws MdsException
MdsExceptionpublic void putData(String[] d) throws MdsException
MdsExceptionCopyright © 2020. All rights reserved.