org.joone.engine
Class BufferedSynapse
- java.lang.Object
-
- org.joone.engine.Synapse
-
- org.joone.engine.BufferedSynapse
-
- All Implemented Interfaces:
- java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable
public class BufferedSynapse extends Synapse
This class implements a synapse that permits to have asynchronous methods to write output patterns. ThefwdPutmethod, infact, uses a FIFO structure to store the patterns and to separate the writing from the reading layers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BufferedSynapse()BufferedOutputSynapse constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PatternfwdGet()Return the first element of the FIFO structure, if exists.voidfwdPut(Pattern pattern)Writes the input pattern into the FIFO structure.PatternrevGet()Not usedvoidrevPut(Pattern pattern)Not used-
Methods inherited from class org.joone.engine.Synapse
addNoise, canCountSteps, check, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getOutputDimension, getWeights, init, initLearner, InspectableTitle, Inspections, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, reset, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setMonitor, setName, setOutputDimension, setOutputFull, setWeights
-
-
-
-
Method Detail
-
fwdGet
public Pattern fwdGet()
Return the first element of the FIFO structure, if exists.- Specified by:
fwdGetin interfaceInputPatternListener- Overrides:
fwdGetin classSynapse- Returns:
- Pattern
-
fwdPut
public void fwdPut(Pattern pattern)
Writes the input pattern into the FIFO structure. The layer that calls this methos will wait only the time needed to put the input data into the pipeline.- Specified by:
fwdPutin interfaceOutputPatternListener- Overrides:
fwdPutin classSynapse- Parameters:
pattern- The Pattern object to write in the FIFO structure
-
revGet
public Pattern revGet()
Not used- Specified by:
revGetin interfaceOutputPatternListener- Overrides:
revGetin classSynapse- Returns:
- Pattern
-
revPut
public void revPut(Pattern pattern)
Not used- Specified by:
revPutin interfaceInputPatternListener- Overrides:
revPutin classSynapse- Parameters:
pattern-
-
-
DataMelt 3.0 © DataMelt by jWork.ORG