|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.pakl.rl.State
org.eyelanguage.rl.reading.ReadingState
public class ReadingState
This class represents the State of a reading Agent -- scroll down to Field Detail to see more detailed on information for each dimension of the state. Implicit means that the dimensions are not used in comparing states to each other (ignored.)
| Field Summary | |
|---|---|
protected int |
attendedWordID
A unique word identification number of the attended word. |
protected int |
attendedWordLen
This is an integer which indicates the number of characters in the word being attended. |
protected double |
attendedWordPredictability
|
protected int |
distanceFromAttendCenter
(Implicit) Indicates the number of characters, including whitespace, from the current eye position to the center of the word that is being attended. |
protected int |
eyePosition
Position of the eye, in integers, relative the to the entire text. |
protected int |
fixatedWordID
(Implicit) A unique word identification number of the fixated word. |
protected boolean |
identified
Whether or not the word being attended has been identified. |
protected int |
nextWordLen
|
protected int |
previousWordLen
|
protected boolean |
programmingSaccade
True or false indicating whether we are in a saccade or not (but we can only be in a saccade if we performed an action to get into one so do all these need to exist?). |
protected int |
saccadeRequestDistance
Result of an action issued by the agent to specify how much of a saccade distance is requested. |
protected int |
timeAttending
The amount of time the agent has spent in this state attending/processing this word. |
protected int |
timeInProgrammingSaccade
Indicates the amount of time spent in a saccade. |
| Constructor Summary | |
|---|---|
ReadingState()
|
|
ReadingState(double[] doubleRepresentation)
|
|
ReadingState(int uniqueCode)
|
|
ReadingState(ReadingState oldReadingState)
Preserves all relevant state information in the new state returned. |
|
| Method Summary | |
|---|---|
int[] |
binaryRepresentation()
|
void |
clear()
|
void |
copyFrom(ReadingState oldReadingState)
|
double[] |
doubleRepresentation()
|
boolean |
equals(java.lang.Object otherObject)
|
int |
getAttendedWordID()
|
int |
getAttendedWordLen()
|
double |
getAttendedWordPredictability()
Getter for property attendedWordPredictability. |
int |
getDistanceFromAttendCenter()
|
int |
getEyePosition()
|
int |
getFixatedWordID()
|
int |
getNextNextWordLen()
Getter for property nextNextWordLen. |
double |
getNextNextWordPredictability()
Getter for property nextNextWordPredictability. |
int |
getNextWordLen()
Getter for property nextWordLen. |
double |
getNextWordPredictability()
Getter for property nextWordPredictability. |
int |
getPreviousWordLen()
Getter for property previousWordLen. |
double |
getPreviousWordPredictability()
Getter for property previousWordPredictability. |
int |
getSaccadeRequestDistance()
|
int |
getTimeAttending()
|
int |
getTimeInProgrammingSaccade()
Getter for property timeInProgrammingSaccade. |
int |
hashCode()
Any two objects which are equal must have equal HashCodes, but not necessarily the other way around. |
boolean |
isIdentified()
|
boolean |
isProgrammingSaccade()
Getter for property programmingSaccade. |
void |
setAttendedWordID(int attendedWordID)
|
void |
setAttendedWordLen(int attendedWordLen)
|
void |
setAttendedWordPredictability(double attendedWordPredictability)
Setter for property attendedWordPredictability. |
void |
setDistanceFromAttendCenter(int distanceFromAttendCenter)
|
void |
setEyePosition(int eyePosition)
|
void |
setFixatedWordID(int fixatedWordID)
|
void |
setIdentified(boolean identified)
|
void |
setNextNextWordLen(int nextNextWordLen)
Setter for property nextNextWordLen. |
void |
setNextNextWordPredictability(double nextNextWordPredictability)
Setter for property nextNextWordPredictability. |
void |
setNextWordLen(int nextWordLen)
Setter for property nextWordLen. |
void |
setNextWordPredictability(double nextWordPredictability)
Setter for property nextWordPredictability. |
void |
setPreviousWordLen(int previousWordLen)
Setter for property previousWordLen. |
void |
setPreviousWordPredictability(double previousWordPredictability)
Setter for property previousWordPredictability. |
void |
setProgrammingSaccade(boolean programmingSaccade)
Setter for property programmingSaccade. |
void |
setSaccadeRequestDistance(int saccadeRequestDistance)
|
void |
setTimeAttending(int timeAttending)
|
void |
setTimeInProgrammingSaccade(int timeInProgrammingSaccade)
Setter for property timeInProgrammingSaccade. |
java.lang.String |
toString()
|
static int |
uniqueCode()
|
| Methods inherited from class net.pakl.rl.State |
|---|
concatenateArrays, getPatchName, representAsVector |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int attendedWordID
protected int attendedWordLen
protected int previousWordLen
protected int nextWordLen
protected double attendedWordPredictability
protected int distanceFromAttendCenter
protected int eyePosition
protected int fixatedWordID
protected boolean identified
protected boolean programmingSaccade
protected int saccadeRequestDistance
protected int timeAttending
ActionSet, there will be actiosn transitioning us to the next word.
protected int timeInProgrammingSaccade
| Constructor Detail |
|---|
public ReadingState(int uniqueCode)
public ReadingState(ReadingState oldReadingState)
public ReadingState(double[] doubleRepresentation)
public ReadingState()
| Method Detail |
|---|
public int[] binaryRepresentation()
binaryRepresentation in interface HasVectorRepresentationpublic double[] doubleRepresentation()
doubleRepresentation in interface HasVectorRepresentationpublic void clear()
public void copyFrom(ReadingState oldReadingState)
public java.lang.String toString()
toString in class Statepublic int hashCode()
hashCode in class Statepublic static int uniqueCode()
public boolean equals(java.lang.Object otherObject)
equals in class Statepublic int getTimeAttending()
public void setTimeAttending(int timeAttending)
public int getAttendedWordID()
public void setAttendedWordID(int attendedWordID)
public int getAttendedWordLen()
public void setAttendedWordLen(int attendedWordLen)
public int getFixatedWordID()
public void setFixatedWordID(int fixatedWordID)
public int getDistanceFromAttendCenter()
public void setDistanceFromAttendCenter(int distanceFromAttendCenter)
public boolean isIdentified()
public void setIdentified(boolean identified)
public int getEyePosition()
public void setEyePosition(int eyePosition)
public int getSaccadeRequestDistance()
public void setSaccadeRequestDistance(int saccadeRequestDistance)
public boolean isProgrammingSaccade()
public void setProgrammingSaccade(boolean programmingSaccade)
programmingSaccade - New value of property programmingSaccade.public int getTimeInProgrammingSaccade()
public void setTimeInProgrammingSaccade(int timeInProgrammingSaccade)
timeInProgrammingSaccade - New value of property timeInProgrammingSaccade.public double getAttendedWordPredictability()
public void setAttendedWordPredictability(double attendedWordPredictability)
attendedWordPredictability - New value of property attendedWordPredictability.public int getPreviousWordLen()
public void setPreviousWordLen(int previousWordLen)
previousWordLen - New value of property previousWordLen.public int getNextWordLen()
public void setNextWordLen(int nextWordLen)
nextWordLen - New value of property nextWordLen.public int getNextNextWordLen()
public void setNextNextWordLen(int nextNextWordLen)
nextNextWordLen - New value of property nextNextWordLen.public double getPreviousWordPredictability()
public void setPreviousWordPredictability(double previousWordPredictability)
previousWordPredictability - New value of property previousWordPredictability.public double getNextWordPredictability()
public void setNextWordPredictability(double nextWordPredictability)
nextWordPredictability - New value of property nextWordPredictability.public double getNextNextWordPredictability()
public void setNextNextWordPredictability(double nextNextWordPredictability)
nextNextWordPredictability - New value of property nextNextWordPredictability.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||