|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--de.cul8r.synapse.Controller
The controller does all the controlling stuff. It references All the panels, and the network files.
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
The actionPerformed method. catches events from the following objects: the learn button the save-cnfig button the patternIO buttons the weightsIO buttons |
void |
exit()
This method is called when the programm closes. |
ConfigPanel |
getCp()
Gets the reference to the ConfigPanel |
FileIOPanel |
getFp()
Gets the reference to the FileIOPanel |
static Controller |
getInstance()
Gets an instance of the controller itself. |
InputPanel |
getIp()
Gets the reference to the InputPanel |
Network |
getNetwork()
Gets the reference to the Network |
SnnsNetworkLoader |
getNetworkLoader()
Gets the networkLoader attribute of the Controller object |
NeuronalNetwork |
getNN()
Gets the NeuronalNetwork |
OutputPanel |
getOp()
Gets the reference to the OutputPanel |
PatternContainer |
getPatternContainer()
Gets the reference to the PatternContainer |
int |
getResolution()
Gets the resolution attribute of the Controller object |
SynInterface |
getSif()
Gets the the SynInterface |
boolean |
isLearn()
Asks if the Network is in lern or recall mode |
void |
loadSnnsNet(java.lang.String path,
java.lang.String filename)
Loads an SNNS .net file and sets the resolution fitting to the net. |
void |
setContainers(PatternContainer patternContainer)
Sets the containers attribute of the Controller object |
void |
setLearn(boolean value)
Specifies whether the Network should recall the paintet pattern or store the pattern in the PatternContainer. |
void |
setPanels(InputPanel ip,
ConfigPanel cp,
OutputPanel op,
FileIOPanel fp)
Sets all the panelreferences. |
void |
setResolution(int resolution)
Sets the resolution attribute of the Controller object |
void |
stateChanged(javax.swing.event.ChangeEvent e)
Wathces the state of the ResolutionSlider and the UseActivationFunction button. |
void |
tableChanged(javax.swing.event.TableModelEvent e)
If the ConfigTable is changed the propertyfile is updated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void setContainers(PatternContainer patternContainer)
patternContainer - the container which stores the drawn patterns.public void setLearn(boolean value)
value - boolean
public void setPanels(InputPanel ip,
ConfigPanel cp,
OutputPanel op,
FileIOPanel fp)
ip - The new InputPanelcp - The new ConfigPanelop - The new OutputPanelfp - The new FileIOPanelpublic void setResolution(int resolution)
resolution - this attribute determines to how many points the painted
pattern is interpolated. A value of 20 seems to produce the best
results.public int getResolution()
public SynInterface getSif()
public ConfigPanel getCp()
public InputPanel getIp()
public FileIOPanel getFp()
public OutputPanel getOp()
public PatternContainer getPatternContainer()
public boolean isLearn()
public Network getNetwork()
public SnnsNetworkLoader getNetworkLoader()
public NeuronalNetwork getNN()
public void loadSnnsNet(java.lang.String path,
java.lang.String filename)
path - path to the filefilename - the filenamepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - the ActionEventpublic void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged in interface javax.swing.event.TableModelListenere - the TableModelEventpublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenere - the ChangeEventpublic void exit()
public static Controller getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||