brain
Class ModuleInput

java.lang.Object
  extended by brain.Module
      extended by brain.ModuleInput
All Implemented Interfaces:
java.io.Serializable

public class ModuleInput
extends Module
implements java.io.Serializable

The ModuleInput module of the cognitive system (CS). All parameters for time development of activities and reservoirs are generally public. Exceptions are parameters which need additional computation or checks when changed.

See Also:
Serialized Form

Field Summary
 java.util.Set<brain.OneStimulus> appliedStimuli
          Set of `OneStimulus' which have been applied to ModuleInput.
 double auxPrintTimeStepCountInterval
          Time-interval for output of data on file.
 double diffusiveModuleSignal
          The diffusive signal specific to the input module, it's task yet to be determined.
 java.lang.String name
          String-identifier for the module.
 java.util.ArrayList<brain.OneStimulus> referencePatterns
          Dynamic ArrayList of `OneStimulus' with the reference patterns.
 double stimulusDuration
          Length of a stimulus.
 double stimulusStartingTime
          For the first stimulus.
 double timeBetweenStimuli
           
 
Fields inherited from class brain.Module
activities, biases, changeListeners, elapsedTime, elapsedTimeSteps, forwardModules, receptors
 
Constructor Summary
ModuleInput()
           
ModuleInput(java.io.File patternsFile)
          The module-name is set for good.
 
Method Summary
 void addAfferentModule(Module module)
          Adds a module to the HashMap `afferentModules'.
 void calculateOneTimeStep(double timeDelta)
          A single time step of the dynamics.
 void dataOutputToFile()
          Selects data for output on file and sends the print strings to the printing facility.
 double getLink(int i, int j)
          Returns the value of a specific internal link.
 java.lang.String getName()
          Returns the name specific to this module.
 brain.OneStimulus[] getStimuli(double time)
           
static brain.OneStimulus[] loadStimuli(java.io.File file, double stimulusStartingTime, double stimulusDuration, double timeBetweenStimuli)
          Reads pattern in the form of cliques from file.
 void readReferencePattern(java.io.File referenceInputPatternsFile)
          Reads the reference patterns in the form of cliques from file.
 void reset()
           
 void setLink(int i, int j, double value)
          Sets the value of a specific internal link.
 void stimuliOutputToFile(brain.OneStimulus[] stimuli)
          Specialized output routing for sending current stimulus once to the printing facility.
 
Methods inherited from class brain.Module
addBias, addBias, addChangeListener, addForwardModule, addNeuron, addReceptor, createDotGraph, createGraphMLGraph, createTGFGraph, getActiveClique, getActivities, getActivity, getAfferentLink, getAfferentLinks, getAfferentModules, getBias, getBiases, getCliqueGraph, getCliques, getDegreeDistribution, getElapsedTime, getElapsedTimeSteps, getForwardModules, getLinkProbability, getLinks, getNeighbors, getNeighbors, getNodeDegree, getNodeDegrees, getNodeInDegree, getNodeInDegrees, getNodeOutDegree, getNodeOutDegrees, getPositiveLinkAverage, getReceptor, getReceptors, getSize, hasAfferentModule, hasForwardModule, notifyStateChanged, performOneTimeStep, removeAfferentModule, removeAfferentModules, removeChangeListener, removeForwardModule, removeForwardModules, removeNeuron, setActivities, setActivity, setAfferentLink, setAfferentLinks, setBias, setBias, setLink, setName, setPositiveLinkAverage, setSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
String-identifier for the module.


diffusiveModuleSignal

public double diffusiveModuleSignal
The diffusive signal specific to the input module, it's task yet to be determined.


appliedStimuli

public java.util.Set<brain.OneStimulus> appliedStimuli
Set of `OneStimulus' which have been applied to ModuleInput.


stimulusStartingTime

public double stimulusStartingTime
For the first stimulus.


stimulusDuration

public double stimulusDuration
Length of a stimulus.


timeBetweenStimuli

public double timeBetweenStimuli

referencePatterns

public java.util.ArrayList<brain.OneStimulus> referencePatterns
Dynamic ArrayList of `OneStimulus' with the reference patterns.


auxPrintTimeStepCountInterval

public double auxPrintTimeStepCountInterval
Time-interval for output of data on file.

Constructor Detail

ModuleInput

public ModuleInput()

ModuleInput

public ModuleInput(java.io.File patternsFile)
The module-name is set for good. All other parameters are changeable.

Method Detail

getName

public java.lang.String getName()
Returns the name specific to this module.

Overrides:
getName in class Module

getLink

public double getLink(int i,
                      int j)
Returns the value of a specific internal link.

Overrides:
getLink in class Module
Returns:
link

setLink

public void setLink(int i,
                    int j,
                    double value)
Sets the value of a specific internal link.

Overrides:
setLink in class Module

addAfferentModule

public void addAfferentModule(Module module)
Description copied from class: Module
Adds a module to the HashMap `afferentModules'.

Overrides:
addAfferentModule in class Module
Parameters:
module - - the module to which this module connects

getStimuli

public brain.OneStimulus[] getStimuli(double time)

calculateOneTimeStep

public void calculateOneTimeStep(double timeDelta)
A single time step of the dynamics.

--class ModuleInput--
Sets the input activities determined by the remainingStimuli.

Specified by:
calculateOneTimeStep in class Module

stimuliOutputToFile

public void stimuliOutputToFile(brain.OneStimulus[] stimuli)
Specialized output routing for sending current stimulus once to the printing facility.

--class ModuleInput--


dataOutputToFile

public void dataOutputToFile()
Selects data for output on file and sends the print strings to the printing facility.

--class ModuleInput--


loadStimuli

public static brain.OneStimulus[] loadStimuli(java.io.File file,
                                              double stimulusStartingTime,
                                              double stimulusDuration,
                                              double timeBetweenStimuli)
                                       throws java.io.FileNotFoundException
Reads pattern in the form of cliques from file.

--class ModuleInput--

Throws:
java.io.FileNotFoundException

readReferencePattern

public void readReferencePattern(java.io.File referenceInputPatternsFile)
                          throws java.io.IOException
Reads the reference patterns in the form of cliques from file. The reference patterns may be used for controlling learning, e.g. an independent component analysis.

--class ModuleInput--

Throws:
java.io.IOException

reset

public void reset()
Overrides:
reset in class Module