TreeAge Pro


NodeObj Overview
NodeObj Overview

TreeAge Pro - Table of Contents

TreeAge Pro Interactive - Table of Contents
TreeAge Pro Interactive - NodeObj Object

Documentation Home
TreeAge Website Home

NodeObj objects are associated with a specific TreeObj object. Each instance of a NodeObj keeps a reference to the TreeObj, thereby preventing the deletion of the TreeObj. Be sure to delete all NodeObj objects prior to deleting the TreeObj.

Do not create a NodeObj directly. Use one of the methods which creates one for you, such as TreeObj.GetNodeObj or NodeObj.GetRelativeNode, as the only ways to create a valid NodeObj object.

 Methods
  
 
Calculation methods
ExpVal Calculates the expected value
Evaluate Calculates the value of an arbitrary formula
Variable methods
SetVariable Sets the value of a variable at the node (value must be numeric)
SetVariableStr Sets the value of a variable at the node (value may be a formula)
GetVarCount Counts the number of variable definitions at the node
GetVarInfo Retrieves a VarInfo object for a particular variable definition at the node
GetVarInfoStr Similar to GetVarInfo, but uses the variable name as the lookup, rather than a numeric index
Navigation\selection methods
GetRelativeNode Creates a new NodeObj object from a related node
GetBranchName Returns the name of a branch of the node
GetBranchNode Returns a new NodeObj from a specific branch
Select Select this node
AddToSelection Adds this node to the set of currently selected nodes
Miscellaneous methods
GetOptimal Returns the index of the recommended strategy at a decision node
GetOptimalNode Returns a NodeObj from the recommended strategy at a decision node
GetOneComment Returns the text of one node comment from a branch

 
 Properties
  
 
Calculation-related properties
evNow Retrieves the current expected value, after the last calculation
costNow Retrieves the current expected value, after the last calculation
effNow Retrieves the current effectiveness, after the last calculation
evTime Retrieves the time required for the last ExpVal calculation
lastError Retrieves the error code generated by the last calculation
Other properties
valid Indicates whether the object's contents are valid
name Retrieves (or sets) the name of the node
prob Retrieves (or sets) the probability of the node
payoff Retrieves (or sets) the payoff of the node
type Retrieves the node type
collapsed Retrieves (or sets) the collapsed state of the node
path Retrieves the path string to this node
numBranches Retrieves the number of branches emanating from the node
hasComments Indicates whether the node's branches have comments