org.joone.io
Class FileInputSynapse

java.lang.Object
  extended by org.joone.engine.Synapse
      extended by org.joone.io.StreamInputSynapse
          extended by org.joone.io.FileInputSynapse
All Implemented Interfaces:
java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable, InputSynapse, PlugInListener

public class FileInputSynapse
extends StreamInputSynapse

Allows data to be presented to the network from a file. The file must contain semi-colon seperated values e.g '2;5;7;2.1'.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.joone.io.StreamInputSynapse
cols, currentRow, EOF, InputVector, plugInListeners, tokens
 
Fields inherited from class org.joone.engine.Synapse
array, b_pattern, bitems, bouts, count, enabled, fwdLock, inps, items, learnable, m_batch, m_pattern, myLearner, outs, revLock
 
Constructor Summary
FileInputSynapse()
           
 
Method Summary
 java.util.TreeSet check()
          Returns a TreeSet of errors or problems regarding the setup of this synapse.
 java.lang.String getFileName()
          Deprecated. use getInputFile instead
 java.io.File getInputFile()
           
protected  void initInputStream()
           
 void setFileName(java.lang.String newFileName)
          Deprecated. use setInputFile instead
 void setInputFile(java.io.File inputFile)
           
 
Methods inherited from class org.joone.io.StreamInputSynapse
addPlugIn, addPlugInListener, backward, dataChanged, fireDataChanged, forward, fwdGet, fwdGet, getAdvancedColumnSelector, getAllPlugInListeners, getCurrentRow, getDecimalPoint, getFirstCol, getFirstRow, getInputPatterns, getInputVector, getLastCol, getLastRow, getMaxBufSize, getPlugIn, getStream, getTokens, gotoFirstLine, gotoLine, handleExceptionWithError, handleExceptionWithWarn, InspectableTitle, Inspections, isBuffered, isEOF, isStepCounter, numColumns, readAll, readObjectBase, removeAllPlugIns, removePlugInListener, reset, resetInput, restart, revPut, setAdvancedColumnSelector, setArrays, setBuffered, setColList, setDecimalPoint, setDimensions, setEOF, setFirstCol, setFirstRow, setInputPatterns, setLastCol, setLastRow, setMaxBufSize, setPlugin, setPlugIn, setStepCounter, setTokens, writeObjectBase, zeroPattern
 
Methods inherited from class org.joone.engine.Synapse
addNoise, canCountSteps, fwdPattern_consume, fwdPattern_produce, fwdPut, getCount, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getOutputDimension, getRevLock, getSynapseNameSafely, getWeights, init, initLearner, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, readResolve, revGet, revPattern_consume, revPattern_produce, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setMonitor, setName, setOutputDimension, setOutputFull, setWeights, warnLogger, warnLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInputSynapse

public FileInputSynapse()
Method Detail

getFileName

public java.lang.String getFileName()
Deprecated. use getInputFile instead

Gets the file name that this synapse uses to extract the input data from.

Returns:
The file name that this synapse uses to extract the input data from.

setFileName

public void setFileName(java.lang.String newFileName)
Deprecated. use setInputFile instead

Sets the file name that this synapse should extract data from.

Parameters:
newFileName - The file name that this synapse should extract data from.

initInputStream

protected void initInputStream()
                        throws JooneRuntimeException
Specified by:
initInputStream in class StreamInputSynapse
Throws:
JooneRuntimeException

check

public java.util.TreeSet check()
Returns a TreeSet of errors or problems regarding the setup of this synapse.

Specified by:
check in interface NeuralElement
Overrides:
check in class StreamInputSynapse
Returns:
A TreeSet of errors or problems regarding the setup of this synapse.
See Also:
Synapse

getInputFile

public java.io.File getInputFile()

setInputFile

public void setInputFile(java.io.File inputFile)


Submit Feedback to pmarrone@users.sourceforge.net