|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrain.Module
brain.ModuleInput
public class ModuleInput
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.
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public double diffusiveModuleSignal
public java.util.Set<brain.OneStimulus> appliedStimuli
public double stimulusStartingTime
public double stimulusDuration
public double timeBetweenStimuli
public java.util.ArrayList<brain.OneStimulus> referencePatterns
public double auxPrintTimeStepCountInterval
Constructor Detail |
---|
public ModuleInput()
public ModuleInput(java.io.File patternsFile)
Method Detail |
---|
public java.lang.String getName()
getName
in class Module
public double getLink(int i, int j)
getLink
in class Module
public void setLink(int i, int j, double value)
setLink
in class Module
public void addAfferentModule(Module module)
Module
addAfferentModule
in class Module
module
- -
the module to which this module connectspublic brain.OneStimulus[] getStimuli(double time)
public void calculateOneTimeStep(double timeDelta)
--class ModuleInput--
Sets the input activities determined by the remainingStimuli.
calculateOneTimeStep
in class Module
public void stimuliOutputToFile(brain.OneStimulus[] stimuli)
--class ModuleInput--
public void dataOutputToFile()
--class ModuleInput--
public static brain.OneStimulus[] loadStimuli(java.io.File file, double stimulusStartingTime, double stimulusDuration, double timeBetweenStimuli) throws java.io.FileNotFoundException
--class ModuleInput--
java.io.FileNotFoundException
public void readReferencePattern(java.io.File referenceInputPatternsFile) throws java.io.IOException
--class ModuleInput--
java.io.IOException
public void reset()
reset
in class Module
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |