|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eyelanguage.rl.reading.SentenceWorld
org.eyelanguage.rl.reading.SentenceWorldParallel
public class SentenceWorldParallel
Defines how states evolve in response to actions when a parallel reading process is underway, such as
when various words become identified. Word identification can proceed on words in parallel according to
an attentional gradient, which specifies how word identification resources are applied to far away words.
After identification of words, the AttNext ReadingAction can advance attention through multiple words if
those words (which are to the right) are already identified due to parallel word identification.
When we attend the next word, shift all attended times over to the left.
If a word in the distance is identified, allow it to be identified.
Visual acuity applies to all of the words. So does the attentional gradient.
Attention still shifts from left to right.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eyelanguage.rl.reading.SentenceWorld |
|---|
SentenceWorld.StateIteratorIndividualist |
| Field Summary | |
|---|---|
static int |
CENTER_OF_ATTENTION
|
static boolean |
DIVIDED_ATTENTION
|
static boolean |
LEXICAL_PROCESSING_RIGHTAFTER_ATTN_SHIFT
|
static boolean |
LINEAR_ATTENTION_GRADIENT
|
static int |
MAX_WORDS_IN_SENTENCE
|
static int |
PARALLEL_ATTENDABLE_WORDS
|
boolean |
PARALLEL_ATTENTION_ALWAYS_POSITIVE
|
static int |
TIME_GRANULARITY
|
static boolean |
UNIFORM_ATTENTION
|
| Constructor Summary | |
|---|---|
SentenceWorldParallel()
|
|
SentenceWorldParallel(java.lang.String name,
long seed)
|
|
| Method Summary | |
|---|---|
int[] |
acuityAdjustmentParallel(int previousEyePosition,
ReadingStateParallelRelative currentState)
|
void |
advanceAttentionWindow(ReadingStateParallelRelative newState)
|
void |
applyAcuityAdjustmentsParallel(ReadingStateParallelRelative previousState,
ReadingStateParallelRelative newState)
|
protected void |
attemptAttendNextWord(ReadingState newState)
If the next word is already identified, a single attNext action keeps moving you through the identified word to the following word. |
ReadingState |
attendCurrentWord(ReadingState newState)
|
int |
calculateDistFromAttendedWordCenter(ReadingState state)
|
ReadingState |
checkForWordIdentification(ReadingState state)
|
ReadingState |
checkForWordIdentificationParallel(ReadingState state)
Checks whether any words which are currently receivers of attention have become identified. |
int |
getCENTER_OF_ATTENTION()
|
State |
getNewState(State oldGenericState,
Action genericAction)
Call the same code that is in the serial SentenceWorld newState(state, action), but also calls a new function called
performParallelLexicalProcessing(org.eyelanguage.rl.reading.ReadingStateParallelRelative) on the state. |
int |
getPARALLEL_ATTENDABLE_WORDS()
|
java.lang.String |
getSettings()
|
State |
getStartingState()
|
boolean |
isTerminalState(State state)
The final word in the sentence, and all preceding words, must be identified. |
static void |
main(java.lang.String[] args)
|
void |
performParallelLexicalProcessing(ReadingStateParallelRelative newState)
Core function of parallel sentence world, allows the parallel attention slots to increment according to an #attentionalGradient. |
static double |
roundTo(double value,
double roundToNearest)
|
static int |
roundTo(int value,
int roundToNearest)
|
void |
setCENTER_OF_ATTENTION(int newCENTER_OF_ATTENTION)
|
void |
setPARALLEL_ATTENDABLE_WORDS(int newPARALLEL_ATTENDABLE_WORDS)
|
java.util.Iterator |
stateIterator()
Returns an object which lets you iterate over all states (positions) in the world. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int PARALLEL_ATTENDABLE_WORDS
public static int CENTER_OF_ATTENTION
public static int MAX_WORDS_IN_SENTENCE
public static int TIME_GRANULARITY
public static boolean UNIFORM_ATTENTION
public static boolean LINEAR_ATTENTION_GRADIENT
public static boolean DIVIDED_ATTENTION
public static boolean LEXICAL_PROCESSING_RIGHTAFTER_ATTN_SHIFT
public boolean PARALLEL_ATTENTION_ALWAYS_POSITIVE
| Constructor Detail |
|---|
public SentenceWorldParallel()
public SentenceWorldParallel(java.lang.String name,
long seed)
| Method Detail |
|---|
public State getNewState(State oldGenericState,
Action genericAction)
SentenceWorld newState(state, action), but also calls a new function called
performParallelLexicalProcessing(org.eyelanguage.rl.reading.ReadingStateParallelRelative) on the state.
getNewState in interface WorldgetNewState in class SentenceWorld
public void applyAcuityAdjustmentsParallel(ReadingStateParallelRelative previousState,
ReadingStateParallelRelative newState)
public static void main(java.lang.String[] args)
public int[] acuityAdjustmentParallel(int previousEyePosition,
ReadingStateParallelRelative currentState)
public ReadingState attendCurrentWord(ReadingState newState)
attendCurrentWord in class SentenceWorldpublic void performParallelLexicalProcessing(ReadingStateParallelRelative newState)
#attentionalGradient. REALIZE that identification of the word
(the amount of lexical processing required) is modulated by acuity constraints.
public boolean isTerminalState(State state)
isTerminalState in interface WorldisTerminalState in class SentenceWorldpublic State getStartingState()
getStartingState in interface WorldgetStartingState in class SentenceWorldpublic ReadingState checkForWordIdentification(ReadingState state)
checkForWordIdentification in class SentenceWorldpublic ReadingState checkForWordIdentificationParallel(ReadingState state)
public int calculateDistFromAttendedWordCenter(ReadingState state)
calculateDistFromAttendedWordCenter in class SentenceWorldprotected void attemptAttendNextWord(ReadingState newState)
attemptAttendNextWord in class SentenceWorldpublic void advanceAttentionWindow(ReadingStateParallelRelative newState)
public java.util.Iterator stateIterator()
World
stateIterator in interface WorldstateIterator in class SentenceWorld
public static int roundTo(int value,
int roundToNearest)
public static double roundTo(double value,
double roundToNearest)
public void setPARALLEL_ATTENDABLE_WORDS(int newPARALLEL_ATTENDABLE_WORDS)
public int getPARALLEL_ATTENDABLE_WORDS()
public void setCENTER_OF_ATTENTION(int newCENTER_OF_ATTENTION)
public int getCENTER_OF_ATTENTION()
public java.lang.String getSettings()
getSettings in class SentenceWorld
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||