PackagedataTree
Classpublic class _Word
Inheritance_Word Inheritance Node Inheritance Object

Internal Word Node Class. Contains all information and related operations on a word.

Level: ... ->> Trial -->> Word -->> Gaze -->> ...



Public Properties
 PropertyDefined By
 Inherited_adpotId : Number = NaN
_adpotId = current number of child of the parent when a child is added to parent.
Node
  _beginPos : int = 0
_Word
  boundary : Rectangle
Get word boundary.
_Word
  center : Number
[read-only] word center in pixel
_Word
  _centerInChars : Number
Word center in chars
_Word
 InheritedChildren : Array
A list of its childern.
Node
  Fixation : int
[read-only] 1 if word was fixated, otherwise 0.
_Word
  GazeAll1 : Number
[read-only] Total Viewing Time.
_Word
  GazeAll2 : Number
[read-only] Total Viewing Time including intraword saccades.
_Word
  height : Number = 0
Word height without punctuation in pixel.
_Word
  _inner : Rectangle
Word boundary without punctuation
_Word
  _letters : Array
An array which contains the width of each char with punctuation in word.
_Word
  name : String
Content of the word(with punctuation).
_Word
 Inherited_nativeId : int
_nativeId = current number of child(starts from 1) of the parent when the child is created.
Node
  _Nline : int
Number of line on trial
_Word
  Nline : int
[read-only]
_Word
  _Nsentence : int
Number of sentence in current trial.
_Word
  Nsentence : int
[read-only] Number of sentence in current trial.
_Word
  NumBlinksOnWord : Number
[read-only] Get number of blinks on the word
_Word
  NWonE : int
[read-only] Number of word in the experiment.
_Word
  NWonL : int
[read-only] Number of word on the line.
_Word
  NWonP : int
[read-only] Number of word on the page.
_Word
  NWonS : int
[read-only] Number of word on the sentence.
_Word
  _outer : Rectangle
Word boundary with punctuation
_Word
 Inheritedparent : Node
Get parent node.
Node
  pred : _Word
[read-only] Get pred word node.
_Word
 Inherited_pred : Node
Younger brother.
Node
  Property : String
[read-only] Get extra properties for the word
_Word
  _pTrail : _Trial
[read-only] Get parent trail
_Word
  _realSize : int
[read-only] Word size including begin space.
_Word
  _reReading : Boolean = false
_Word
  _sentenceID : int
Number of word on the sentence.
_Word
  succ : _Word
[read-only] Get succ word node.
_Word
 Inherited_succ : Node
Elder brother.
Node
  TotFix : int
[read-only] Total number of fixation on the word.
_Word
  TotGaze : int
[read-only] Total number of gazes on the word.
_Word
  TWonL : int
[read-only] Total Number of Words in the Line.
_Word
  TWonS : int
[read-only] Total Number of Words in the Sentence.
_Word
  type : String = WORD
word block type: word;
_Word
 Inheritedvalid : Boolean = true
Node
  VLauoff10 : Number
[read-only] Distance from voice offset fixation to the first character of the word that is being spoken
_Word
  VLauon10 : Number
[read-only] Distance from voice onset fixation to the first character of the word that is being spoken
_Word
  _voice : _Voice = null
Eye voice variable
_Word
  width : Number = 0
Word width without punctuation in pixel.
_Word
  WLen : int
[read-only] Word length in letters without punctuation.
_Word
  Word : String
[read-only] Get content of word without punctuation.
_Word
  WordBeg : Number
[read-only] x pixel location of the first letter in the word.
_Word
  WordBlinkDur : Number
[read-only] Get duration of the Blinks in the word
_Word
  wordLen : int
Word length without punctuation.
_Word
  WordLocY : Number
[read-only] y pixel location of the first letter in the word.
_Word
  WSize : int
[read-only] Word length in letters includung punctuation.
_Word
  x : Number = 0
Word with punctuation start x position in pixel.
_Word
  y : Number = 0
Word with punctuation start y position in pixel.
_Word
Public Methods
 MethodDefined By
  
_Word(parent:Node = null, property:String = null)
Constructor of Word Class
_Word
 Inherited
addChild(Child:Node):void
Add a node to Children list.
Node
  
contains(fixation:_Fixation):Boolean
_Word
  
fixation(i:int, n:int):_Fixation
Get the n(starts at 1)_th fixation at Gaze i(starts at 1)
_Word
 Inherited
getChildAt(nativeId:int):Node
Get child node by nativeId.
Node
  
getPropertyByName(property:String):String
Return the requested property by property name.
_Word
 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
  
messages():Array
_Word
 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
  AOI : String = AOI
[static]
_Word
 InheritedError : Number = NaN
[static] static variable for calucation error.
Node
 InheritedErrProp : String = NULL
[static] static variable for get property error.
Node
  TEXTBLOCK : String = TEXTBLOCK
[static]
_Word
  WORD : String = WORD
[static]
_Word
Property Detail
_beginPosproperty
public var _beginPos:int = 0

_centerInCharsproperty 
public var _centerInChars:Number

Word center in chars

_innerproperty 
public var _inner:Rectangle

Word boundary without punctuation

_lettersproperty 
public var _letters:Array

An array which contains the width of each char with punctuation in word.

_Nlineproperty 
public var _Nline:int

Number of line on trial

_Nsentenceproperty 
public var _Nsentence:int

Number of sentence in current trial.

_outerproperty 
public var _outer:Rectangle

Word boundary with punctuation

_pTrailproperty 
_pTrail:_Trial  [read-only]

Get parent trail


Implementation
    public function get _pTrail():_Trial
_realSizeproperty 
_realSize:int  [read-only]

Word size including begin space.


Implementation
    public function get _realSize():int
_reReadingproperty 
public var _reReading:Boolean = false

_sentenceIDproperty 
public var _sentenceID:int

Number of word on the sentence.

_voiceproperty 
public var _voice:_Voice = null

Eye voice variable

boundaryproperty 
boundary:Rectangle

Get word boundary.


Implementation
    public function get boundary():Rectangle
    public function set boundary(value:Rectangle):void
centerproperty 
center:Number  [read-only]

word center in pixel


Implementation
    public function get center():Number
Fixationproperty 
Fixation:int  [read-only]

1 if word was fixated, otherwise 0.


Implementation
    public function get Fixation():int
GazeAll1property 
GazeAll1:Number  [read-only]

Total Viewing Time. (sum of all fixations on the word)


Implementation
    public function get GazeAll1():Number
GazeAll2property 
GazeAll2:Number  [read-only]

Total Viewing Time including intraword saccades.


Implementation
    public function get GazeAll2():Number
heightproperty 
public var height:Number = 0

Word height without punctuation in pixel.

nameproperty 
public var name:String

Content of the word(with punctuation).

Nlineproperty 
Nline:int  [read-only]


Implementation
    public function get Nline():int
Nsentenceproperty 
Nsentence:int  [read-only]

Number of sentence in current trial.


Implementation
    public function get Nsentence():int
NumBlinksOnWordproperty 
NumBlinksOnWord:Number  [read-only]

Get number of blinks on the word


Implementation
    public function get NumBlinksOnWord():Number
NWonEproperty 
NWonE:int  [read-only]

Number of word in the experiment.


Implementation
    public function get NWonE():int
NWonLproperty 
NWonL:int  [read-only]

Number of word on the line.


Implementation
    public function get NWonL():int
NWonPproperty 
NWonP:int  [read-only]

Number of word on the page.


Implementation
    public function get NWonP():int
NWonSproperty 
NWonS:int  [read-only]

Number of word on the sentence.


Implementation
    public function get NWonS():int
predproperty 
pred:_Word  [read-only]

Get pred word node.


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

Get extra properties for the word


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

Get succ word node.


Implementation
    public function get succ():_Word
TotFixproperty 
TotFix:int  [read-only]

Total number of fixation on the word.


Implementation
    public function get TotFix():int
TotGazeproperty 
TotGaze:int  [read-only]

Total number of gazes on the word.


Implementation
    public function get TotGaze():int
TWonLproperty 
TWonL:int  [read-only]

Total Number of Words in the Line.


Implementation
    public function get TWonL():int
TWonSproperty 
TWonS:int  [read-only]

Total Number of Words in the Sentence.


Implementation
    public function get TWonS():int
typeproperty 
public var type:String = WORD

word block type: word;

VLauoff10property 
VLauoff10:Number  [read-only]

Distance from voice offset fixation to the first character of the word that is being spoken


Implementation
    public function get VLauoff10():Number
VLauon10property 
VLauon10:Number  [read-only]

Distance from voice onset fixation to the first character of the word that is being spoken


Implementation
    public function get VLauon10():Number
widthproperty 
public var width:Number = 0

Word width without punctuation in pixel.

WLenproperty 
WLen:int  [read-only]

Word length in letters without punctuation.


Implementation
    public function get WLen():int
Wordproperty 
Word:String  [read-only]

Get content of word without punctuation.


Implementation
    public function get Word():String
WordBegproperty 
WordBeg:Number  [read-only]

x pixel location of the first letter in the word.


Implementation
    public function get WordBeg():Number
WordBlinkDurproperty 
WordBlinkDur:Number  [read-only]

Get duration of the Blinks in the word


Implementation
    public function get WordBlinkDur():Number
wordLenproperty 
public var wordLen:int

Word length without punctuation.

WordLocYproperty 
WordLocY:Number  [read-only]

y pixel location of the first letter in the word.


Implementation
    public function get WordLocY():Number
WSizeproperty 
WSize:int  [read-only]

Word length in letters includung punctuation.


Implementation
    public function get WSize():int
xproperty 
public var x:Number = 0

Word with punctuation start x position in pixel.

yproperty 
public var y:Number = 0

Word with punctuation start y position in pixel.

Constructor Detail
_Word()Constructor
public function _Word(parent:Node = null, property:String = null)

Constructor of Word Class

Parameters
parent:Node (default = null) — parent node
 
property:String (default = null) — content of the word(with punctuation), passing null if the word is spaces.
Method Detail
contains()method
public function contains(fixation:_Fixation):Boolean

Parameters

fixation:_Fixation

Returns
Boolean
fixation()method 
public function fixation(i:int, n:int):_Fixation

Get the n(starts at 1)_th fixation at Gaze i(starts at 1)

Parameters

i:int
 
n:int

Returns
_Fixation
getPropertyByName()method 
public function getPropertyByName(property:String):String

Return the requested property by property name.

Parameters

property:String — Name of the word property.

Returns
String — property value in string.
messages()method 
public function messages():Array

Returns
Array
Constant Detail
AOIConstant
public static const AOI:String = AOI

TEXTBLOCKConstant 
public static const TEXTBLOCK:String = TEXTBLOCK

WORDConstant 
public static const WORD:String = WORD