abstracteventnotifier.java
来自「一个纯java写的神经网络源代码」· Java 代码 · 共 40 行
JAVA
40 行
/* * AbstractEventNotifier.java * * Created on 31 gennaio 2003, 21.09 */package org.joone.engine;/** * This class raises an event notification invoking the corrisponnding * Monitor.fireXXX method. The event is raised from within a separate * Thread to avoid the race conditions to happen * * @author pmarrone */public abstract class AbstractEventNotifier implements Runnable { protected Monitor monitor; private Thread myThread; /** Creates a new instance of AbstractEventNotifier */ public AbstractEventNotifier(Monitor mon) { monitor = mon; } /** * The inherited classes must to override this method * invoking into it the desired monitor.fireXXX method */ public abstract void run(); public synchronized void start() { if (myThread == null) { myThread = new Thread(this); myThread.start(); } } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?