|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.engine.OutputSwitchSynapse
public class OutputSwitchSynapse
This class acts as a switch that can connect its input to one of its connected output synapses. Many output synapses can be attached to the switch calling the method addOutputSynapse, but only one is attached to the input; which one is connected is determined by the call to the method setActiveOutput, passing to it the name of the selected synapse.
Field Summary | |
---|---|
protected java.util.Vector |
outputs
|
Constructor Summary | |
---|---|
OutputSwitchSynapse()
The constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector outputs
Constructor Detail |
---|
public OutputSwitchSynapse()
Method Detail |
---|
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 NeuralElement
public void setName(java.lang.String name)
setName
in interface NeuralElement
name
- Stringpublic void setInputDimension(int newInputDimension)
setInputDimension
in interface OutputPatternListener
newOutputDimension
- intpublic int getInputDimension()
getInputDimension
in interface OutputPatternListener
public Monitor getMonitor()
getMonitor
in interface NeuralElement
public void setMonitor(Monitor newMonitor)
setMonitor
in interface NeuralElement
newMonitor
- 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 OutputPatternListener
pattern
- neural.engine.Patternpublic Pattern revGet()
revGet
in interface OutputPatternListener
public java.util.TreeSet check()
check
in interface NeuralElement
OutputPaternListener
public boolean isOutputFull()
isOutputFull
in interface OutputPatternListener
public void setOutputFull(boolean outputFull)
setOutputFull
in interface OutputPatternListener
outputFull
- New value of property outputFull.public boolean isEnabled()
isEnabled
in interface NeuralElement
public void setEnabled(boolean enabled)
setEnabled
in interface NeuralElement
enabled
- New value of property enabled.public void init()
init
in interface NeuralElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |