PackagedataTree
Classpublic class Node
InheritanceNode Inheritance Object
Subclasses _Fixation, _Gaze, _Saccade, _Trial, _Word

Abstract node class includes basic operation to build data tree and maintenance the node relationship.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
Node(p:Node = null)
Consturctor of Node Class
Node
  
addChild(Child:Node):void
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(p:Node):void
Repair children relationships after clone from another node.
Node
  
truncateToInt(num:Number):String
[static]
Node
Public Constants
 ConstantDefined By
  Error : Number = NaN
[static] static variable for calucation error.
Node
  ErrProp : String = NULL
[static] static variable for get property error.
Node
Property Detail
_adpotIdproperty
public var _adpotId:Number = NaN

_adpotId = current number of child of the parent when a child is added to parent.

_nativeIdproperty 
public var _nativeId:int

_nativeId = current number of child(starts from 1) of the parent when the child is created.

_predproperty 
public var _pred:Node

Younger brother. (not effected by adopt)

_succproperty 
public var _succ:Node

Elder brother. (not effected by adopt)

Childrenproperty 
public var Children:Array

A list of its childern.

parentproperty 
parent:Node

Get parent node.


Implementation
    public function get parent():Node
    public function set parent(value:Node):void
validproperty 
public var valid:Boolean = true

Constructor Detail
Node()Constructor
public function Node(p:Node = null)

Consturctor of Node Class

Parameters
p:Node (default = null) — parent node, passing null if it is a root node.
Method Detail
addChild()method
public function addChild(Child:Node):void

Add 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):Node

Get child node by nativeId.

Parameters

nativeId:int

Returns
Node

See also

isError()method 
public static function isError(value:Number):Boolean

check if the vaule is a calucation error.

Parameters

value:Number

Returns
Boolean
isErrProp()method 
public static function isErrProp(value:String):Boolean

check if the vaule is a get property error.

Parameters

value:String

Returns
Boolean
repair()method 
public function repair(p:Node):void

Repair 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):String

Parameters

num:Number

Returns
String
Constant Detail
ErrorConstant
public static const Error:Number = NaN

static variable for calucation error.

ErrPropConstant 
public static const ErrProp:String = NULL

static variable for get property error.