Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.joone.io
Class InputConnector

    java.lang.Object
      org.joone.engine.Synapse
          org.joone.io.StreamInputSynapse
              org.joone.io.InputConnector

All Implemented Interfaces:
  java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable, InputSynapse, PlugInListener

    public class InputConnector

extends StreamInputSynapse
implements PlugInListener

Author:
  drmarpao
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, notFirstTime, notFirstTimeB, outs, revLock`

Constructor Summary
`InputConnector()` Creates a new instance of InputConnector

Method Summary
`java.util.TreeSet` | `check()` Check that parameters are set correctly.
`void` | `dataChanged(PlugInEvent anEvent)` This method is called by plug-ins whenever data is changed.
`protected Pattern` | `getStream()`
`protected void` | `initInputStream()`
`void` | `resetInput()` Reset the input stream to read its content again
`protected void` | `setCurrentRow(int aRow)` Sets the current row.
`boolean` | `setInputSynapse(StreamInputSynapse input)` Attach a `StreamInputSynapse` to this connector.
`void` | `setMonitor(Monitor newMonitor)` Sets the Monitor object of the synapse

Methods inherited from class org.joone.io.StreamInputSynapse
`addPlugIn, addPlugInListener, backward, fireDataChanged, forward, fwdGet, fwdGet, getAdvancedColumnSelector, getAllPlugInListeners, getCurrentRow, getDecimalPoint, getFirstCol, getFirstRow, getInputPatterns, getInputVector, getLastCol, getLastRow, getMaxBufSize, getPlugIn, getTokens, gotoFirstLine, gotoLine, InspectableTitle, Inspections, isBuffered, isEOF, isStepCounter, numColumns, readAll, readObjectBase, removeAllPlugIns, removePlugInListener, reset, 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, fwdPut, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getOutputDimension, getRevLock, getWeights, init, initLearner, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, readResolve, revGet, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setName, setOutputDimension, setOutputFull, setWeights`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### InputConnector

    public InputConnector()

  Creates a new instance of InputConnector

Method Detail

### initInputStream

    protected void initInputStream()
                            throws JooneRuntimeException

  Specified by:
    `initInputStream` in class `StreamInputSynapse`
  Throws:
    `JooneRuntimeException`

### setInputSynapse

    public boolean setInputSynapse(StreamInputSynapse input)

  Attach a `StreamInputSynapse` to this connector.

  Parameters:
    `input` - the `StreamInputSynapse` to attach. `null` to free this connector

### getStream

    protected Pattern getStream()

  Overrides:
    `getStream` in class `StreamInputSynapse`

### setMonitor

    public void setMonitor(Monitor newMonitor)

  Description copied from class: `Synapse`
  Sets the Monitor object of the synapse

  Specified by:
    `setMonitor` in interface `NeuralElement`
  Overrides:
    `setMonitor` in class `Synapse`
  Parameters:
    `newMonitor` - neural.engine.Monitor

### dataChanged

    public void dataChanged(PlugInEvent anEvent)

  Description copied from interface: `PlugInListener`
  This method is called by plug-ins whenever data is changed.

  Specified by:
    `dataChanged` in interface `PlugInListener`
  Overrides:
    `dataChanged` in class `StreamInputSynapse`
  Parameters:
    `anEvent` - the event that is send, i.e. the event indicating that the data is changed.

### check

    public java.util.TreeSet check()

  Description copied from class: `StreamInputSynapse`
  Check that parameters are set correctly.

  Specified by:
    `check` in interface `NeuralElement`
  Overrides:
    `check` in class `StreamInputSynapse`
  Returns:
    validation errors.
  See Also:
    `Synapse`

### resetInput

    public void resetInput()

  Description copied from class: `StreamInputSynapse`
  Reset the input stream to read its content again

  Specified by:
    `resetInput` in interface `InputSynapse`
  Overrides:
    `resetInput` in class `StreamInputSynapse`

### setCurrentRow

    protected void setCurrentRow(int aRow)

  Sets the current row. Note : this method is needed by the MultipleInputSynpase. I wonder if it is needed for any other purpose... So you probably don't need to use this method.

  Parameters:
    `aRow` - the new value for the current row.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Submit Feedback to pmarrone@users.sourceforge.net