PackagedataTree
Classpublic class _Trial
Inheritance_Trial Inheritance Node Inheritance Object

Internal Trial Node Class Contains all information and related operations on a trial.

Level: Root -->> Trial -->> Word -->> ...

Trial --> _fixationList -->> Fixation -> ...



Public Properties
 PropertyDefined By
 Inherited_adpotId : Number = NaN
_adpotId = current number of child of the parent when a child is added to parent.
Node
  _audioST : int = 0
_Trial
 InheritedChildren : Array
A list of its childern.
Node
  _drift : Object
_Trial
  _fixationList : Node
_Trial
 Inherited_nativeId : int
_nativeId = current number of child(starts from 1) of the parent when the child is created.
Node
  _numLine : int = 0
Total number of lines in current trial
_Trial
  _numSentence : int = 1
_Trial
  Page : int
[read-only] Number of page.
_Trial
 Inheritedparent : Node
Get parent node.
Node
  pred : _Trial
[read-only] Get pred trial node.
_Trial
 Inherited_pred : Node
Younger brother.
Node
  Property : String
[read-only] Get extra properties for the trial
_Trial
  succ : _Trial
[read-only] Get succ trial node.
_Trial
 Inherited_succ : Node
Elder brother.
Node
  Tlines : int
[read-only] Total number of lines on the page.
_Trial
  Tsentences : int
[read-only] Total number of sentences on the page.
_Trial
  TWonP : int
[read-only] Total number of words on the page.
_Trial
  _unspaced : Boolean = false
Text in the trial is spaced or not.
_Trial
 Inheritedvalid : Boolean = true
Node
Public Methods
 MethodDefined By
  
_Trial(parent:Node = null, trial:Object = null)
Constructor of Trail Class
_Trial
 Inherited
addChild(Child:Node):void
Add a node to Children list.
Node
 Inherited
getChildAt(nativeId:int):Node
Get child node by nativeId.
Node
  
getPropertyByName(property:String):String
Return the requested property by property name.
_Trial
 Inherited
isError(value:Number):Boolean
[static] check if the vaule is a calucation error.
Node
 Inherited
isErrProp(value:String):Boolean
[static] check if the vaule is a get property error.
Node
 Inherited
repair(p:Node):void
Repair children relationships after clone from another node.
Node
 Inherited
truncateToInt(num:Number):String
[static]
Node
Public Constants
 ConstantDefined By
 InheritedError : Number = NaN
[static] static variable for calucation error.
Node
 InheritedErrProp : String = NULL
[static] static variable for get property error.
Node
Property Detail
_audioSTproperty
public var _audioST:int = 0

_driftproperty 
public var _drift:Object

_fixationListproperty 
public var _fixationList:Node

_numLineproperty 
public var _numLine:int = 0

Total number of lines in current trial

_numSentenceproperty 
public var _numSentence:int = 1

_unspacedproperty 
public var _unspaced:Boolean = false

Text in the trial is spaced or not.

Pageproperty 
Page:int  [read-only]

Number of page.


Implementation
    public function get Page():int
predproperty 
pred:_Trial  [read-only]

Get pred trial node.


Implementation
    public function get pred():_Trial
Propertyproperty 
Property:String  [read-only]

Get extra properties for the trial


Implementation
    public function get Property():String
succproperty 
succ:_Trial  [read-only]

Get succ trial node.


Implementation
    public function get succ():_Trial
Tlinesproperty 
Tlines:int  [read-only]

Total number of lines on the page.


Implementation
    public function get Tlines():int
Tsentencesproperty 
Tsentences:int  [read-only]

Total number of sentences on the page.


Implementation
    public function get Tsentences():int
TWonPproperty 
TWonP:int  [read-only]

Total number of words on the page.


Implementation
    public function get TWonP():int
Constructor Detail
_Trial()Constructor
public function _Trial(parent:Node = null, trial:Object = null)

Constructor of Trail Class

Parameters
parent:Node (default = null) — parent node
 
trial:Object (default = null) — XML data object which contains the information of this trial
Method Detail
getPropertyByName()method
public function getPropertyByName(property:String):String

Return the requested property by property name.

Parameters

property:String — Name of the trial property

Returns
String — Property value in string