public class InputSwitchSynapse extends StreamInputSynapse implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
inputs |
cols, currentRow, EOF, InputVector, plugInListeners, tokens| Constructor and Description |
|---|
InputSwitchSynapse()
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addInputSynapse(StreamInputSynapse newInput)
Adds an input synapse to the switch
|
protected void |
backward(double[] pattern)
Funzione di TRAIN dell'elemento.
|
java.util.TreeSet |
check()
Check that parameters are set correctly.
|
void |
dataChanged(PlugInEvent data)
This method is called by plug-ins whenever data is changed.
|
protected void |
forward(double[] pattern)
Recall function
|
Pattern |
fwdGet()
Returns the pattern coming from the previous layer during the recall phase
|
Pattern |
fwdGet(InputConnector conn)
Returns the pattern coming from the previous layer during the recall phase.
|
java.lang.String |
getActiveInput()
Returns the name of the actual connected input synapse
|
protected StreamInputSynapse |
getActiveSynapse()
Getter for property activeSynapse.
|
java.lang.String |
getAdvancedColumnSelector() |
java.util.Vector |
getAllInputs() |
java.lang.String |
getDefaultInput()
Returns the name of the default input synapse that is connected
when the reset method is called
|
protected StreamInputSynapse |
getDefaultSynapse()
Getter for property defaultSynapse.
|
int |
getFirstRow() |
protected StreamInputSynapse |
getInputSynapse(java.lang.String inputName) |
java.util.Collection |
getInspections() |
int |
getLastRow() |
Monitor |
getMonitor()
Returns the monitor
|
java.lang.String |
getName()
Returns the name of the input synapse
|
int |
getOutputDimension()
Returns the dimension of the input synapse
|
ConverterPlugIn |
getPlugIn()
Gets the attached ConverterPlugin, if any
|
void |
gotoFirstLine() |
void |
gotoLine(int numLine)
Point to the indicated line into the input stream
|
void |
init()
Synapse's initialization.
|
protected void |
initInputStream() |
boolean |
isBuffered()
Returns if the input synapse is buffered
(10/04/00 23.11.30)
|
boolean |
isEOF()
Returns if reached the EOF
(10/04/00 23.16.20)
|
boolean |
isStepCounter()
Returns if this input layer is an active counter of the steps.
|
int |
numColumns() |
void |
readAll()
Reads all input values and fills the buffer
|
void |
removeAllInputs() |
boolean |
removeInputSynapse(java.lang.String inputName)
Removes an input synapse from the switch
|
void |
reset()
reset the state of the input synapse
|
void |
resetInput()
Reset the input stream to read its content again
|
void |
resetSwitch()
Resets the switch, connecting the default synapse to the output
|
void |
revPut(Pattern pattern)
Method to put an error pattern backward to the previous layer
|
void |
setActiveInput(java.lang.String newActiveInput)
Sets the input synapse connected to the output
|
protected void |
setActiveSynapse(StreamInputSynapse activeSynapse)
Setter for property activeSynapse.
|
void |
setAllInputs(java.util.Vector inps) |
void |
setBuffered(boolean newBuffered)
Sets the buffer-mode for this input synapse.
|
void |
setDecimalPoint(char dp) |
void |
setDefaultInput(java.lang.String newDefaultInput)
Sets the name of the default input synapse that is connected
when the reset method is called
|
protected void |
setDefaultSynapse(StreamInputSynapse defaultSynapse)
Setter for property defaultSynapse.
|
void |
setMonitor(Monitor newMonitor)
Sets the Monitor object of the input synapse
|
void |
setName(java.lang.String name)
Sets the name of the input synapse
|
void |
setOutputDimension(int newOutputDimension)
Sets the dimension of the input synapse
|
void |
setStepCounter(boolean newStepCounter)
Inserire qui la descrizione del metodo.
|
addPlugIn, addPlugInListener, fireDataChanged, getAllPlugInListeners, getCurrentRow, getDecimalPoint, getFirstCol, getInputPatterns, getInputVector, getLastCol, getMaxBufSize, getStream, getTokens, handleExceptionWithError, handleExceptionWithWarn, InspectableTitle, Inspections, readObjectBase, removeAllPlugIns, removePlugInListener, restart, setAdvancedColumnSelector, setArrays, setColList, setDimensions, setEOF, setFirstCol, setFirstRow, setInputPatterns, setLastCol, setLastRow, setMaxBufSize, setPlugin, setPlugIn, setTokens, writeObjectBase, zeroPatternaddNoise, canCountSteps, fwdPattern_consume, fwdPattern_produce, fwdPut, getCount, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getRevLock, getSynapseNameSafely, getWeights, initLearner, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, readResolve, revGet, revPattern_consume, revPattern_produce, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setOutputFull, setWeights, warnLogger, warnLoggerpublic void init()
Synapseinit in interface NeuralElementinit in class Synapsepublic void resetSwitch()
public void reset()
StreamInputSynapsereset in interface InputPatternListenerreset in class StreamInputSynapsepublic boolean removeInputSynapse(java.lang.String inputName)
inputName - The name of the synapse to removeprotected StreamInputSynapse getInputSynapse(java.lang.String inputName)
public boolean addInputSynapse(StreamInputSynapse newInput)
newInput - the new input synapsepublic java.lang.String getActiveInput()
public void setActiveInput(java.lang.String newActiveInput)
newActiveInput - the name of the input synapse to connectpublic java.lang.String getDefaultInput()
public void setDefaultInput(java.lang.String newDefaultInput)
newDefaultInput - the name of the default input synapseprotected StreamInputSynapse getActiveSynapse()
protected void setActiveSynapse(StreamInputSynapse activeSynapse)
activeSynapse - New value of property activeSynapse.protected StreamInputSynapse getDefaultSynapse()
protected void setDefaultSynapse(StreamInputSynapse defaultSynapse)
defaultSynapse - New value of property defaultSynapse.public java.lang.String getName()
getName in interface NeuralElementgetName in class SynapseSynapse.setName(java.lang.String)public void setName(java.lang.String name)
setName in interface NeuralElementsetName in class Synapsename - StringSynapse.getName()public void setOutputDimension(int newOutputDimension)
setOutputDimension in interface InputPatternListenersetOutputDimension in class SynapsenewOutputDimension - intpublic void revPut(Pattern pattern)
revPut in interface InputPatternListenerrevPut in class StreamInputSynapsepattern - neural.engine.Patternpublic Pattern fwdGet()
fwdGet in interface InputPatternListenerfwdGet in class StreamInputSynapsepublic Pattern fwdGet(InputConnector conn)
fwdGet in class StreamInputSynapsepublic int getOutputDimension()
getOutputDimension in interface InputPatternListenergetOutputDimension in interface LearnableSynapsegetOutputDimension in class Synapsepublic Monitor getMonitor()
getMonitor in interface LearnablegetMonitor in interface NeuralElementgetMonitor in class Synapsepublic void setMonitor(Monitor newMonitor)
setMonitor in interface NeuralElementsetMonitor in class SynapsenewMonitor - org.joone.engine.Monitorprotected void backward(double[] pattern)
Synapsebackward in class StreamInputSynapsepattern - double[] - pattern di input sul quale applicare la funzione di trasferimentoprotected void forward(double[] pattern)
Synapseforward in class StreamInputSynapsepattern - double[] - input pattern. THIS PATTERN CANNOT BE CHANGEDpublic java.util.Vector getAllInputs()
public void setAllInputs(java.util.Vector inps)
public void resetInput()
StreamInputSynapseresetInput in interface InputSynapseresetInput in class StreamInputSynapseprotected void initInputStream()
initInputStream in class StreamInputSynapsepublic void setStepCounter(boolean newStepCounter)
StreamInputSynapsesetStepCounter in interface InputSynapsesetStepCounter in class StreamInputSynapsenewStepCounter - booleanpublic void gotoLine(int numLine)
throws java.io.IOException
gotoLine in interface InputSynapsegotoLine in class StreamInputSynapsejava.io.IOExceptionpublic void dataChanged(PlugInEvent data)
PlugInListenerdataChanged in interface PlugInListenerdataChanged in class StreamInputSynapsedata - the event that is send, i.e. the event indicating that the
data is changed.public void setDecimalPoint(char dp)
setDecimalPoint in interface InputSynapsesetDecimalPoint in class StreamInputSynapsepublic boolean isEOF()
isEOF in interface InputSynapseisEOF in class StreamInputSynapsepublic void readAll()
StreamInputSynapsereadAll in interface InputSynapsereadAll in class StreamInputSynapsepublic void setBuffered(boolean newBuffered)
StreamInputSynapsesetBuffered in interface InputSynapsesetBuffered in class StreamInputSynapsenewBuffered - booleanpublic boolean isBuffered()
isBuffered in interface InputSynapseisBuffered in class StreamInputSynapsepublic ConverterPlugIn getPlugIn()
StreamInputSynapsegetPlugIn in class StreamInputSynapsepublic boolean isStepCounter()
isStepCounter in interface InputSynapseisStepCounter in class StreamInputSynapsepublic void gotoFirstLine()
throws java.io.IOException
gotoFirstLine in interface InputSynapsegotoFirstLine in class StreamInputSynapsejava.io.IOExceptionpublic void removeAllInputs()
public java.util.TreeSet check()
check in interface NeuralElementcheck in class StreamInputSynapseSynapsepublic int getFirstRow()
getFirstRow in interface InputSynapsegetFirstRow in class StreamInputSynapsepublic int getLastRow()
getLastRow in interface InputSynapsegetLastRow in class StreamInputSynapsepublic java.util.Collection getInspections()
public int numColumns()
numColumns in class StreamInputSynapsepublic java.lang.String getAdvancedColumnSelector()
getAdvancedColumnSelector in class StreamInputSynapseSubmit Feedback to pmarrone@users.sourceforge.net