Class VisADOutputSynapse
- java.lang.Object
-
- org.joone.edit.visad.VisADOutputSynapse
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, ChartInterface, NeuralElement, NeuralNetListener, OutputPatternListener, NotSerialize
public class VisADOutputSynapse extends java.lang.Object implements NotSerialize, java.io.Serializable, NeuralNetListener, ChartInterface
This component implements the chart interface and allows data obtained via the use of ChartHandles to be plotted onto a graph.
The VisADOutputSynapse uses the visad display library, more details on this can be obtained from http://www.visad.org.
When the property show is set to true a JFrame is displayed, this will display a chart of any previously obtained data or no chart if the data has not yet been obtained. When the network starts the component collects the data in internal buffers and at the end of the network run will display the data in a chart. Serie lines are coloured according to the choice made in the specific ChartHandle object.
The displayed component allows the user to change the X and Y range of data that should be displayed, this allows ther user to zoom in ans out of the data range.
The user can also decided whether to display the data as points and whatthe point size can be.
Multi serie plots can be done by the use of ChartHandles. Mono plots can be done by connecting this to a normal Layer.
This component will throw an network error if it runs out of memory, the network will then stop running.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description VisADOutputSynapse()Creates new form ChartOutputSynapse
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.TreeSetcheck()Base for check messages.voidcicleTerminated(NeuralNetEvent e)Processes the cicleTerminated.voiderrorChanged(NeuralNetEvent e)Processes the errorChanged event.voidfwdPut(Pattern pattern)Called by the previous layer to place a pattern on this VisADOutputSynapse, supports single/mono serie plot.voidfwdPut(Pattern pattern, ChartingHandle handle)Method to plot a serie of a pattern in multi-serie mode This method is used by a ChartingHandle to plot a specific serieintgetInputDimension()Returns the dimension of this VisADOutputSynapse which is always 0.intgetMaxXaxis()Getter for property maxXaxis.doublegetMaxYaxis()Getter for property maxYaxis.MonitorgetMonitor()Returns the monitorjava.lang.StringgetName()Getter for property name.intgetSerie()Getter for property serie.java.lang.StringgetTitle()Getter for property title.voidinit()booleanisEnabled()Getter for property enabled.booleanisOutputFull()booleanisResizable()Getter for property resizable.booleanisShow()Getter for property show.voidnetStarted(NeuralNetEvent e)Processes the netStarted event.voidnetStopped(NeuralNetEvent e)Processes the netStopped event.voidnetStoppedError(NeuralNetEvent e, java.lang.String error)Processes the netStoppedError event.voidremoveHandle(ChartingHandle handle)Remove a chart handle.PatternrevGet()Returns the error pattern coming from the next layer during the training phasevoidsetEnabled(boolean enabled)Setter for property enabled.voidsetInputDimension(int newInputDimension)Sets the dimension of the output synapsevoidsetMaxXaxis(int maxXaxis)Setter for property maxXaxis.voidsetMaxYaxis(double maxYaxis)Setter for property maxYaxis.voidsetMonitor(Monitor newMonitor)Sets the Monitor object of this VisADOutputSyanpse.voidsetName(java.lang.String name)Setter for property name.voidsetOutputFull(boolean newoutputFull)voidsetResizable(boolean resizable)Setter for property resizable.voidsetSerie(int newSerie)Setter for property serie.voidsetShow(boolean show)Setter for property show.voidsetTitle(java.lang.String title)Setter for property title.
-
-
-
Constructor Detail
-
VisADOutputSynapse
public VisADOutputSynapse()
Creates new form ChartOutputSynapse
-
-
Method Detail
-
setMonitor
public void setMonitor(Monitor newMonitor)
Sets the Monitor object of this VisADOutputSyanpse.- Specified by:
setMonitorin interfaceNeuralElement- Parameters:
newMonitor- org.joone.engine.Monitor
-
fwdPut
public void fwdPut(Pattern pattern, ChartingHandle handle)
Method to plot a serie of a pattern in multi-serie mode This method is used by a ChartingHandle to plot a specific serie- Specified by:
fwdPutin interfaceChartInterface- Parameters:
pattern- The input patternhandle- The ChartingHandle class that describes the serie to plot
-
fwdPut
public void fwdPut(Pattern pattern)
Called by the previous layer to place a pattern on this VisADOutputSynapse, supports single/mono serie plot. The data plotted is defined by the serie property.- Specified by:
fwdPutin interfaceOutputPatternListener- Parameters:
pattern- The pattern with the data to plot.
-
revGet
public Pattern revGet()
Returns the error pattern coming from the next layer during the training phase- Specified by:
revGetin interfaceOutputPatternListener- Returns:
- neural.engine.Pattern
-
setInputDimension
public void setInputDimension(int newInputDimension)
Sets the dimension of the output synapse- Specified by:
setInputDimensionin interfaceOutputPatternListener- Parameters:
newOutputDimension- int
-
getMonitor
public Monitor getMonitor()
Returns the monitor- Specified by:
getMonitorin interfaceNeuralElement- Returns:
- org.joone.engine.Monitor
-
getInputDimension
public int getInputDimension()
Returns the dimension of this VisADOutputSynapse which is always 0.- Specified by:
getInputDimensionin interfaceOutputPatternListener- Returns:
- int Always 0.
-
isShow
public boolean isShow()
Getter for property show. Is the frame/component/chart on display?- Returns:
- Value of property show.
-
setShow
public void setShow(boolean show)
Setter for property show.- Parameters:
show- true to display the chart component, false to hide it.
-
getMaxYaxis
public double getMaxYaxis()
Getter for property maxYaxis.- Specified by:
getMaxYaxisin interfaceChartInterface- Returns:
- Value of property maxYaxis.
-
setMaxYaxis
public void setMaxYaxis(double maxYaxis)
Setter for property maxYaxis.- Specified by:
setMaxYaxisin interfaceChartInterface- Parameters:
maxYaxis- New value of property maxYaxis.
-
getMaxXaxis
public int getMaxXaxis()
Getter for property maxXaxis.- Specified by:
getMaxXaxisin interfaceChartInterface- Returns:
- Value of property maxXaxis.
-
setMaxXaxis
public void setMaxXaxis(int maxXaxis)
Setter for property maxXaxis.- Specified by:
setMaxXaxisin interfaceChartInterface- Parameters:
maxXaxis- New value of property maxXaxis.
-
getSerie
public int getSerie()
Getter for property serie. Used for mono plots only.- Returns:
- Value of property serie.
-
setSerie
public void setSerie(int newSerie)
Setter for property serie. Used for mono plots only.- Parameters:
serie- New value of property serie.
-
getName
public java.lang.String getName()
Getter for property name.- Specified by:
getNamein interfaceNeuralElement- Returns:
- Value of property name.
-
setName
public void setName(java.lang.String name)
Setter for property name.- Specified by:
setNamein interfaceNeuralElement- Parameters:
name- New value of property name.
-
getTitle
public java.lang.String getTitle()
Getter for property title. Gets the title of the components frame.- Returns:
- Value of property title.
-
setTitle
public void setTitle(java.lang.String title)
Setter for property title. Sets the title of the components frame.- Parameters:
title- New value of property title.
-
isResizable
public boolean isResizable()
Getter for property resizable. Can user re-size the components frame or not.- Returns:
- Value of property resizable.
-
setResizable
public void setResizable(boolean resizable)
Setter for property resizable. Can user re-size the components frame or not.- Parameters:
resizable- New value of property resizable.
-
check
public java.util.TreeSet check()
Base for check messages. Subclasses should call this method from their own check method.- Specified by:
checkin interfaceNeuralElement- Returns:
- validation errors.
- See Also:
OutputPaternListener
-
cicleTerminated
public void cicleTerminated(NeuralNetEvent e)
Processes the cicleTerminated. Currently no processing.- Specified by:
cicleTerminatedin interfaceNeuralNetListener
-
errorChanged
public void errorChanged(NeuralNetEvent e)
Processes the errorChanged event. Currently no processing.- Specified by:
errorChangedin interfaceNeuralNetListener
-
netStarted
public void netStarted(NeuralNetEvent e)
Processes the netStarted event. Initialises VisAd components.- Specified by:
netStartedin interfaceNeuralNetListener
-
netStopped
public void netStopped(NeuralNetEvent e)
Processes the netStopped event. Plots the VisAd chart in a frame.- Specified by:
netStoppedin interfaceNeuralNetListener
-
netStoppedError
public void netStoppedError(NeuralNetEvent e, java.lang.String error)
Processes the netStoppedError event. Currently no processing.- Specified by:
netStoppedErrorin interfaceNeuralNetListener
-
removeHandle
public void removeHandle(ChartingHandle handle)
Remove a chart handle. Currently no processing.- Specified by:
removeHandlein interfaceChartInterface
-
isEnabled
public boolean isEnabled()
Getter for property enabled. Is the component enabled or not.- Specified by:
isEnabledin interfaceNeuralElement- Returns:
- Value of property enabled.
-
setEnabled
public void setEnabled(boolean enabled)
Setter for property enabled.- Specified by:
setEnabledin interfaceNeuralElement- Parameters:
enabled- New value of property enabled.
-
isOutputFull
public boolean isOutputFull()
- Specified by:
isOutputFullin interfaceOutputPatternListener
-
setOutputFull
public void setOutputFull(boolean newoutputFull)
- Specified by:
setOutputFullin interfaceOutputPatternListener
-
init
public void init()
- Specified by:
initin interfaceNeuralElement
-
-
DataMelt 3.0 © DataMelt by jWork.ORG