00001 /* 00002 * BALT - The Boxes and Lines Toolkit for component communication. 00003 * 00004 * Copyright (C) 2006-2007 Nick Hawes 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public License 00008 * as published by the Free Software Foundation; either version 2.1 of 00009 * the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00019 * 02110-1301 USA 00020 * 00021 */ 00022 00026 package cast.core; 00027 00028 00033 public abstract class ControlledRunnable implements Runnable { 00034 00035 private boolean m_bRun; 00036 00037 public void start() { 00038 m_bRun = true; 00039 } 00040 00041 public void stop() { 00042 m_bRun = false; 00043 } 00044 00045 public boolean isRunning() { 00046 return m_bRun; 00047 } 00048 }
1.5.8