neuralnetevent.java
来自「一个纯java写的神经网络源代码」· Java 代码 · 共 41 行
JAVA
41 行
package org.joone.engine;import org.joone.net.NeuralNet;/** * Transport class used to notify the events raised from a neural network */public class NeuralNetEvent extends java.util.EventObject { private static final long serialVersionUID = -2307998901508765401L; private NeuralNet nnet; /** * The event constructor * @param source The object generating this event. Normally it is the neural network's Monitor */ public NeuralNetEvent(Monitor source) { super(source); } /** * Getter for the NeuralNet generating this event. * Warning: Use this method ONLY if the event has been raised by * an org.joone.helpers class, otherwise you could get a null value. * @return The neural network generating this event * @since 1.2.2 */ public NeuralNet getNeuralNet() { return nnet; } /** * Setter for the NeuralNet generating this event. * @param nnet The neural network generating this event * @since 1.2.2 */ public void setNeuralNet(NeuralNet nnet) { this.nnet = nnet; } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?