org.eyelanguage.rl.reading
Class ReadingStateRelative

java.lang.Object
  extended by net.pakl.rl.State
      extended by org.eyelanguage.rl.reading.ReadingState
          extended by org.eyelanguage.rl.reading.ReadingStateRelative
All Implemented Interfaces:
java.io.Serializable, HasVectorRepresentation, SubdivisionIdentification
Direct Known Subclasses:
ReadingStateParallelRelative

public class ReadingStateRelative
extends ReadingState
implements HasVectorRepresentation, SubdivisionIdentification

Inherits from ReadingState, but several methods have been altered so that the model of the environment is word-centric instead of absolute in the sentence (this allows for generalization to new circumstances).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eyelanguage.rl.reading.ReadingState
attendedWordID, attendedWordLen, attendedWordPredictability, distanceFromAttendCenter, eyePosition, fixatedWordID, identified, nextWordLen, previousWordLen, programmingSaccade, saccadeRequestDistance, timeAttending, timeInProgrammingSaccade
 
Constructor Summary
ReadingStateRelative()
           
ReadingStateRelative(ReadingStateRelative rs)
           
 
Method Summary
 int[] binaryRepresentation()
           
 java.util.List binaryRepresentationIndices()
           
protected  boolean boolValue(java.lang.String s)
           
 double[] doubleRepresentation()
           
protected  double doubleValue(java.lang.String s)
           
 boolean equals(java.lang.Object otherObject)
           
 java.lang.String getPatchName()
          Returns the name of the patch in which the agent should look for the value of this state.
 int hashCode()
          Any two objects which are equal must have equal HashCodes, but not necessarily the other way around.
protected  int intValue(java.lang.String s)
           
static void main(java.lang.String[] args)
           
 void parseString(java.lang.String s)
           
 boolean test()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eyelanguage.rl.reading.ReadingState
clear, copyFrom, getAttendedWordID, getAttendedWordLen, getAttendedWordPredictability, getDistanceFromAttendCenter, getEyePosition, getFixatedWordID, getNextNextWordLen, getNextNextWordPredictability, getNextWordLen, getNextWordPredictability, getPreviousWordLen, getPreviousWordPredictability, getSaccadeRequestDistance, getTimeAttending, getTimeInProgrammingSaccade, isIdentified, isProgrammingSaccade, setAttendedWordID, setAttendedWordLen, setAttendedWordPredictability, setDistanceFromAttendCenter, setEyePosition, setFixatedWordID, setIdentified, setNextNextWordLen, setNextNextWordPredictability, setNextWordLen, setNextWordPredictability, setPreviousWordLen, setPreviousWordPredictability, setProgrammingSaccade, setSaccadeRequestDistance, setTimeAttending, setTimeInProgrammingSaccade, uniqueCode
 
Methods inherited from class net.pakl.rl.State
concatenateArrays, representAsVector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadingStateRelative

public ReadingStateRelative(ReadingStateRelative rs)

ReadingStateRelative

public ReadingStateRelative()
Method Detail

hashCode

public int hashCode()
Any two objects which are equal must have equal HashCodes, but not necessarily the other way around.

Overrides:
hashCode in class ReadingState

equals

public boolean equals(java.lang.Object otherObject)
Overrides:
equals in class ReadingState

doubleRepresentation

public double[] doubleRepresentation()
Specified by:
doubleRepresentation in interface HasVectorRepresentation
Overrides:
doubleRepresentation in class ReadingState

binaryRepresentationIndices

public java.util.List binaryRepresentationIndices()

binaryRepresentation

public int[] binaryRepresentation()
Specified by:
binaryRepresentation in interface HasVectorRepresentation
Overrides:
binaryRepresentation in class ReadingState

toString

public java.lang.String toString()
Overrides:
toString in class ReadingState

parseString

public void parseString(java.lang.String s)

intValue

protected int intValue(java.lang.String s)

doubleValue

protected double doubleValue(java.lang.String s)

boolValue

protected boolean boolValue(java.lang.String s)

test

public boolean test()

main

public static void main(java.lang.String[] args)

getPatchName

public java.lang.String getPatchName()
Description copied from interface: SubdivisionIdentification
Returns the name of the patch in which the agent should look for the value of this state.

Specified by:
getPatchName in interface SubdivisionIdentification
Overrides:
getPatchName in class State