public class OutputSwitchSynapse extends java.lang.Object implements OutputPatternListener, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
outputs |
| Constructor and Description |
|---|
OutputSwitchSynapse()
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addOutputSynapse(OutputPatternListener newOutput)
Adds an output synapse to the switch
|
protected void |
backward(double[] pattern) |
java.util.TreeSet |
check()
Base for check messages.
|
protected void |
forward(double[] pattern) |
void |
fwdPut(Pattern pattern)
Method to put a pattern forward to the next layer
|
java.lang.String |
getActiveOutput()
Returns the name of the actual connected output synapse
|
protected OutputPatternListener |
getActiveSynapse()
Getter for property activeSynapse.
|
java.util.Vector |
getAllOutputs() |
java.lang.String |
getDefaultOutput()
Returns the name of the default output synapse that is connected
when the reset method is called
|
protected OutputPatternListener |
getDefaultSynapse()
Getter for property defaultSynapse.
|
int |
getInputDimension()
Returns the dimension of the output synapse
|
Monitor |
getMonitor()
Returns the monitor
|
java.lang.String |
getName()
Returns the name of the output synapse
|
protected OutputPatternListener |
getOutputSynapse(java.lang.String outputName) |
void |
init() |
boolean |
isEnabled()
Getter for property enabled.
|
boolean |
isOutputFull()
Getter for property outputFull.
|
boolean |
removeOutputSynapse(java.lang.String outputName)
Removes an output synapse from the switch
|
void |
reset()
Resets the switch, connecting the default synapse to the output
|
void |
resetOutput() |
Pattern |
revGet()
Returns the error pattern coming from the next layer during the training phase
|
void |
setActiveOutput(java.lang.String newActiveOutput)
Sets the output synapse connected to the input
|
protected void |
setActiveSynapse(OutputPatternListener activeSynapse)
Setter for property activeSynapse.
|
void |
setDefaultOutput(java.lang.String newDefaultOutput)
Sets the name of the default output synapse that is connected
when the reset method is called
|
protected void |
setDefaultSynapse(OutputPatternListener defaultSynapse)
Setter for property defaultSynapse.
|
void |
setEnabled(boolean enabled)
Setter for property enabled.
|
void |
setInputDimension(int newInputDimension)
Sets the dimension of the output synapse
|
void |
setMonitor(Monitor newMonitor)
Sets the Monitor object of the input synapse
|
void |
setName(java.lang.String name)
Sets the name of the output synapse
|
void |
setOutputFull(boolean outputFull)
Setter for property outputFull.
|
public void reset()
public boolean removeOutputSynapse(java.lang.String outputName)
inputName - The name of the synapse to removeprotected OutputPatternListener getOutputSynapse(java.lang.String outputName)
public boolean addOutputSynapse(OutputPatternListener newOutput)
newOutput - the new output synapsepublic java.lang.String getActiveOutput()
public void setActiveOutput(java.lang.String newActiveOutput)
newActiveOutput - the name of the output synapse to connectpublic java.lang.String getDefaultOutput()
public void setDefaultOutput(java.lang.String newDefaultOutput)
newDefaultOutput - the name of the default output synapseprotected OutputPatternListener getActiveSynapse()
protected void setActiveSynapse(OutputPatternListener activeSynapse)
protected OutputPatternListener getDefaultSynapse()
protected void setDefaultSynapse(OutputPatternListener defaultSynapse)
public java.lang.String getName()
getName in interface NeuralElementpublic void setName(java.lang.String name)
setName in interface NeuralElementname - Stringpublic void setInputDimension(int newInputDimension)
setInputDimension in interface OutputPatternListenernewOutputDimension - intpublic int getInputDimension()
getInputDimension in interface OutputPatternListenerpublic Monitor getMonitor()
getMonitor in interface NeuralElementpublic void setMonitor(Monitor newMonitor)
setMonitor in interface NeuralElementnewMonitor - org.joone.engine.Monitorprotected void backward(double[] pattern)
protected void forward(double[] pattern)
public java.util.Vector getAllOutputs()
public void resetOutput()
public void fwdPut(Pattern pattern)
fwdPut in interface OutputPatternListenerpattern - neural.engine.Patternpublic Pattern revGet()
revGet in interface OutputPatternListenerpublic java.util.TreeSet check()
check in interface NeuralElementOutputPaternListenerpublic boolean isOutputFull()
isOutputFull in interface OutputPatternListenerpublic void setOutputFull(boolean outputFull)
setOutputFull in interface OutputPatternListeneroutputFull - New value of property outputFull.public boolean isEnabled()
isEnabled in interface NeuralElementpublic void setEnabled(boolean enabled)
setEnabled in interface NeuralElementenabled - New value of property enabled.public void init()
init in interface NeuralElementSubmit Feedback to pmarrone@users.sourceforge.net