public class Tree extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
ctx |
static String |
OPEN_EDIT |
static String |
OPEN_NEW |
static String |
OPEN_NORMAL |
static String |
OPEN_READONLY |
protected Vector<MDSplus.Tree.TreeCtxInfo> |
treeCtxInfoV |
static int |
TreeUSAGE_ACTION |
static int |
TreeUSAGE_ANY |
static int |
TreeUSAGE_AXIS |
static int |
TreeUSAGE_COMPOUND_DATA |
static int |
TreeUSAGE_DEVICE |
static int |
TreeUSAGE_DISPATCH |
static int |
TreeUSAGE_NONE |
static int |
TreeUSAGE_NUMERIC |
static int |
TreeUSAGE_SIGNAL |
static int |
TreeUSAGE_STRUCTURE |
static int |
TreeUSAGE_SUBTREE |
static int |
TreeUSAGE_TASK |
static int |
TreeUSAGE_TEXT |
static int |
TreeUSAGE_WINDOW |
| Constructor and Description |
|---|
Tree(String name,
int shot) |
Tree(String name,
int shot,
String mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDevice(String name,
String type)
Add a new device instance to the tree open for edit.
|
TreeNode |
addNode(String name,
String usage)
Add a new node to the tree open for edit.
|
void |
close() |
void |
createPulse(int pulseShot)
Create a new pulse file
|
void |
deleteNode(String name)
Delete the node and its descendants from the tree open for edit.
|
void |
deletePulse(int pulseShot)
Delete a pulse file.
|
void |
edit() |
String[] |
findTags(String wild)
Returns the list of tags matching the specified wild name.
|
static Tree |
getActiveTree() |
protected long |
getCtx() |
int |
getCurrent()
Return the current shot for that tree.
|
long |
getDatafileSize() |
TreeNode |
getDefault()
Get the TreeNode for the default node.
|
String |
getMode() |
String |
getName()
Returns the currently opened and active tree
|
TreeNode |
getNode(int nid)
Returns the TreeNode for the data item whose internal address (nid) is passed
as argument.
|
TreeNode |
getNode(String path)
Return TreeNode for the data item corresponding to the passed pathname
|
TreeNode |
getNode(TreePath path)
Return the TreeNode for the data itemspecified by the passed TreePath
instance.
|
TreeNodeArray |
getNodeWild(String path)
Return the TreeNode array for all the successor nodes of the specified usage
with respect of the passed path.
|
TreeNodeArray |
getNodeWild(String path,
int usage) |
TreeNodeArray |
getNodeWild(String path,
String usage) |
int |
getShot() |
boolean |
isModified() |
boolean |
isOpen() |
boolean |
isOpenForEdit() |
boolean |
isReadOnly() |
void |
normal()
Open the tree for editing.
|
void |
quit()
quit editing session.
|
void |
readonly() |
void |
removeTag(String tag) |
static void |
setActiveTree(Tree tree)
Set the oassed tree as the active one
|
void |
setCurrent()
Set the current tree and shot.
|
static void |
setCurrent(String name,
int shot) |
void |
setDefault(TreeNode node)
Set the default position in the tree.
|
void |
setTimeContext(Data start,
Data end,
Data delta)
Set the current time context.
|
void |
setVersionsInModel(boolean enabled) |
void |
setVersionsInPulse(boolean enabled) |
void |
setViewDate(Date date)
Set the version date: all read data will refer to the version active to that
date.
|
Data |
tdiCompile(String expr,
Data... args) |
Data |
tdiData(Data data) |
Data |
tdiEvaluate(Data data) |
Data |
tdiExecute(String expr,
Data... args) |
String |
toString() |
boolean |
versionsInModelEnabled()
Returns true if the tree supports versioning in model.
|
boolean |
versionsInPulseEnabled()
Returns true if the tree supports versioning in pulse.
|
void |
write()
Write the tree under edit.
|
public static final int TreeUSAGE_ANY
public static final int TreeUSAGE_NONE
public static final int TreeUSAGE_STRUCTURE
public static final int TreeUSAGE_ACTION
public static final int TreeUSAGE_DEVICE
public static final int TreeUSAGE_DISPATCH
public static final int TreeUSAGE_NUMERIC
public static final int TreeUSAGE_SIGNAL
public static final int TreeUSAGE_TASK
public static final int TreeUSAGE_TEXT
public static final int TreeUSAGE_WINDOW
public static final int TreeUSAGE_AXIS
public static final int TreeUSAGE_SUBTREE
public static final int TreeUSAGE_COMPOUND_DATA
protected Vector<MDSplus.Tree.TreeCtxInfo> treeCtxInfoV
protected long ctx
public static final String OPEN_NORMAL
public static final String OPEN_READONLY
public static final String OPEN_NEW
public static final String OPEN_EDIT
public Tree(String name, int shot) throws MdsException
MdsExceptionpublic Tree(String name, int shot, String mode) throws MdsException
MdsExceptionpublic void close()
throws MdsException
MdsExceptionpublic boolean isOpen()
public static void setActiveTree(Tree tree) throws MdsException
tree - MdsExceptionpublic String getName()
public int getShot()
public String getMode()
public static void setCurrent(String name, int shot) throws MdsException
MdsExceptionpublic TreeNode getNode(String path) throws MdsException
path - MdsExceptionpublic TreeNode getNode(int nid) throws MdsException
nid - MdsExceptionpublic TreeNode getNode(TreePath path) throws MdsException
path - MdsExceptionpublic TreeNodeArray getNodeWild(String path) throws MdsException
path - usage - MdsExceptionpublic TreeNodeArray getNodeWild(String path, int usage) throws MdsException
MdsExceptionpublic TreeNodeArray getNodeWild(String path, String usage) throws MdsException
MdsExceptionpublic TreeNode getDefault() throws MdsException
MdsExceptionpublic void setDefault(TreeNode node) throws MdsException
node - MdsExceptionpublic boolean versionsInModelEnabled()
throws MdsException
MdsExceptionpublic boolean versionsInPulseEnabled()
throws MdsException
MdsExceptionpublic void setVersionsInModel(boolean enabled)
throws MdsException
MdsExceptionpublic void setVersionsInPulse(boolean enabled)
throws MdsException
MdsExceptionpublic boolean isModified()
throws MdsException
MdsExceptionpublic boolean isOpenForEdit()
throws MdsException
MdsExceptionpublic boolean isReadOnly()
throws MdsException
MdsExceptionpublic void setViewDate(Date date) throws MdsException
date - MdsExceptionpublic void setTimeContext(Data start, Data end, Data delta) throws MdsException
start - end - delta - MdsExceptionpublic void setCurrent()
throws MdsException
shot - treename - MdsExceptionpublic int getCurrent()
throws MdsException
treename - MdsExceptionpublic void createPulse(int pulseShot)
throws MdsException
shot - MdsExceptionpublic void deletePulse(int pulseShot)
throws MdsException
shot - MdsExceptionpublic String[] findTags(String wild) throws MdsException
wild - MdsExceptionpublic void normal()
throws MdsException
MdsExceptionpublic void readonly()
throws MdsException
MdsExceptionpublic void edit()
throws MdsException
MdsExceptionprotected long getCtx()
throws MdsException
MdsExceptionpublic void write()
throws MdsException
MdsExceptionpublic void quit()
throws MdsException
MdsExceptionpublic TreeNode addNode(String name, String usage) throws MdsException
name - usage - MdsExceptionpublic void addDevice(String name, String type) throws MdsException
name - type - MdsExceptionpublic void deleteNode(String name) throws MdsException
name - MdsExceptionpublic void removeTag(String tag) throws MdsException
MdsExceptionpublic long getDatafileSize()
throws MdsException
MdsExceptionpublic static Tree getActiveTree()
Copyright © 2023. All rights reserved.