| Package | dataTree |
| Class | public class Node |
| Inheritance | Node Object |
| Subclasses | _Fixation, _Gaze, _Saccade, _Trial, _Word |
| Property | Defined By | ||
|---|---|---|---|
| _adpotId : Number = NaN
_adpotId = current number of child of the parent when a child is added to parent. | Node | ||
| Children : Array
A list of its childern. | Node | ||
| _nativeId : int
_nativeId = current number of child(starts from 1) of the parent when the child is created. | Node | ||
| parent : Node
Get parent node. | Node | ||
| _pred : Node
Younger brother. | Node | ||
| _succ : Node
Elder brother. | Node | ||
| valid : Boolean = true | Node | ||
| Method | Defined By | ||
|---|---|---|---|
Consturctor of Node Class
| Node | ||
Add a node to Children list. | Node | ||
getChildAt(nativeId:int):Node
Get child node by nativeId. | Node | ||
isError(value:Number):Boolean [static]
check if the vaule is a calucation error. | Node | ||
isErrProp(value:String):Boolean [static]
check if the vaule is a get property error. | Node | ||
Repair children relationships after clone from another node. | Node | ||
truncateToInt(num:Number):String [static] | Node | ||
| Constant | Defined By | ||
|---|---|---|---|
| Error : Number = NaN [static]
static variable for calucation error. | Node | ||
| ErrProp : String = NULL [static]
static variable for get property error. | Node | ||
| _adpotId | property |
public var _adpotId:Number = NaN_adpotId = current number of child of the parent when a child is added to parent.
| _nativeId | property |
public var _nativeId:int_nativeId = current number of child(starts from 1) of the parent when the child is created.
| _pred | property |
public var _pred:NodeYounger brother. (not effected by adopt)
| _succ | property |
public var _succ:NodeElder brother. (not effected by adopt)
| Children | property |
public var Children:ArrayA list of its childern.
| parent | property |
parent:NodeGet parent node.
public function get parent():Node public function set parent(value:Node):void| valid | property |
public var valid:Boolean = true| Node | () | Constructor |
public function Node(p:Node = null)Consturctor of Node Class
Parametersp:Node (default = null) — parent node, passing null if it is a root node.
|
| addChild | () | method |
public function addChild(Child:Node):voidAdd a node to Children list. this funciton will change Child node relation to parent, as well as _adpotId.
Parameters
Child:Node — child node.
|
See also
| getChildAt | () | method |
public function getChildAt(nativeId:int):NodeGet child node by nativeId.
Parameters
nativeId:int |
Node |
See also
| isError | () | method |
public static function isError(value:Number):Booleancheck if the vaule is a calucation error.
Parameters
value:Number |
Boolean |
| isErrProp | () | method |
public static function isErrProp(value:String):Booleancheck if the vaule is a get property error.
Parameters
value:String |
Boolean |
| repair | () | method |
public function repair(p:Node):voidRepair children relationships after clone from another node. this function repair the pred and succ of current node.
Parameters
p:Node — a node to repair
|
See also
| truncateToInt | () | method |
public static function truncateToInt(num:Number):StringParameters
num:Number |
String |
| Error | Constant |
public static const Error:Number = NaNstatic variable for calucation error.
| ErrProp | Constant |
public static const ErrProp:String = NULLstatic variable for get property error.