org.joone.util
Class MonitorPlugin
- java.lang.Object
-
- org.joone.util.MonitorPlugin
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, NeuralNetListener
- Direct Known Subclasses:
- ConvergenceObserver, DynamicAnnealing, ErrorBasedTerminator, GroovyMacroPlugin, LinearAnnealing, MacroPlugin, SnapshotPlugin
public abstract class MonitorPlugin extends java.lang.Object implements java.io.Serializable, NeuralNetListener
This class represents a generic listener of the net's events. Any new listener can be created simply extending this class and filling the manageXxxx methods with the necessary code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MonitorPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcicleTerminated(NeuralNetEvent e)cicleTerminated method.voiderrorChanged(NeuralNetEvent e)java.lang.StringgetName()Getter for property name.NeuralNetgetNeuralNet()intgetRate()Getter for property rate.voidnetStarted(NeuralNetEvent e)voidnetStopped(NeuralNetEvent e)netStopped method comment.voidnetStoppedError(NeuralNetEvent e, java.lang.String error)voidsetName(java.lang.String name)Setter for property name.voidsetNeuralNet(NeuralNet neuralNet)voidsetRate(int rate)Setter for property rate.
-
-
-
Method Detail
-
cicleTerminated
public void cicleTerminated(NeuralNetEvent e)
cicleTerminated method.- Specified by:
cicleTerminatedin interfaceNeuralNetListener
-
netStopped
public void netStopped(NeuralNetEvent e)
netStopped method comment.- Specified by:
netStoppedin interfaceNeuralNetListener
-
netStarted
public void netStarted(NeuralNetEvent e)
- Specified by:
netStartedin interfaceNeuralNetListener
-
errorChanged
public void errorChanged(NeuralNetEvent e)
- Specified by:
errorChangedin interfaceNeuralNetListener
-
netStoppedError
public void netStoppedError(NeuralNetEvent e, java.lang.String error)
- Specified by:
netStoppedErrorin interfaceNeuralNetListener
-
getName
public java.lang.String getName()
Getter for property name.- Returns:
- Value of property name.
-
setName
public void setName(java.lang.String name)
Setter for property name.- Parameters:
name- New value of property name.
-
getRate
public int getRate()
Getter for property rate. This property represents the interval (# of cycles) between two calls to the manageXxxx methods.- Returns:
- Value of property rate.
-
setRate
public void setRate(int rate)
Setter for property rate. This property represents the interval (# of cycles) between two calls to the manageXxxx methods.- Parameters:
rate- New value of property rate.
-
getNeuralNet
public NeuralNet getNeuralNet()
-
setNeuralNet
public void setNeuralNet(NeuralNet neuralNet)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG