neuroidnet.phasesegregator
Class Peripheral

java.lang.Object
  |
  +--neuroidnet.ntr.Peripheral
        |
        +--neuroidnet.phasesegregator.Peripheral
All Implemented Interfaces:
Expressive, Serializable
Direct Known Subclasses:
StatisticalInputSequence, ThreeLevelInputSequence, TwoLevelInputSequence

public class Peripheral
extends Peripheral

Creates inputs in one SensoryArea that projects to neuroids in 3 input Areas. Inputs are represented by SensoryNeuroids.

Introduces event hooks to enable inputs to be presented at predefined times. Created: Mon Dec 11 02:52:07 2000 Modified: $Date: 2002/10/30 04:42:54 $

Version:
$Revision: 1.14 $ for this file
Author:
Cengiz Gunay
See Also:
SensoryArea, SensoryNeuroid, events, Serialized Form

Field Summary
(package private)  Iterator eventIterator
           
(package private)  Map events
          Peripheral input events map.
(package private)  Area[] inputAreas
           
(package private)  Double nextTime
           
(package private)  int numberOfItemsPerArea
           
protected  Hashtable percepts
           
(package private)  double segregation
           
(package private)  SensoryArea sensoryArea
           
 
Fields inherited from class neuroidnet.ntr.Peripheral
network, time
 
Constructor Summary
Peripheral(Network network, Area[] inputAreas, int numberOfItemsPerArea, double segregation)
           
 
Method Summary
(package private)  void createSensoryInputs()
          Creates sensoryAreas that hold sensoryNeuroids.
protected  void eventsAtThisTime()
          If nextTime is reached, call job().
(package private)  void fireObjectInArea(int inputArea, int offset)
          Deprecated. See methods in StatisticalInputSequence.java
(package private)  void getNext()
          Iterates to next event.
(package private)  void initEvents()
          Sets the eventIterator to first position.
private  void readObject(ObjectInputStream in)
          For serialization support.
(package private)  void testOneInput()
          Fire one input in sensory area.
 
Methods inherited from class neuroidnet.ntr.Peripheral
getProperties, getStatus, step, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inputAreas

Area[] inputAreas

numberOfItemsPerArea

int numberOfItemsPerArea

sensoryArea

SensoryArea sensoryArea

segregation

double segregation

events

Map events
Peripheral input events map.


eventIterator

transient Iterator eventIterator

nextTime

Double nextTime

percepts

protected Hashtable percepts
Constructor Detail

Peripheral

public Peripheral(Network network,
                  Area[] inputAreas,
                  int numberOfItemsPerArea,
                  double segregation)
Method Detail

initEvents

void initEvents()
Sets the eventIterator to first position.

See Also:
eventIterator, getNext()

getNext

final void getNext()
Iterates to next event. Events are ordered according to time of occurrance.

See Also:
eventIterator, nextTime

eventsAtThisTime

protected void eventsAtThisTime()
If nextTime is reached, call job(). For all registered events, pop and check for if its time has come.

Specified by:
eventsAtThisTime in class Peripheral
See Also:
events

createSensoryInputs

final void createSensoryInputs()
Creates sensoryAreas that hold sensoryNeuroids. Neuroids can be indirectly reached from the areas.


testOneInput

void testOneInput()
Fire one input in sensory area.


fireObjectInArea

void fireObjectInArea(int inputArea,
                      int offset)
Deprecated. See methods in StatisticalInputSequence.java

Fires the sensory neuroid attached to the given input area.

Parameters:
inputArea - an int value
offset - an int value
See Also:
StatisticalInputSequence

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
For serialization support.

Parameters:
in - a java.io.ObjectInputStream value
Throws:
IOException - if an error occurs
ClassNotFoundException - if an error occurs