package com.rle.monitor; /* * RLE Surface Crack Detector Graphing Software * * Copyright (C) 2002 RLE Technologies * For more information visit http://www.rletech.com/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * USA. */ /** * @author Andy Goth * @author Eric Peterson * @author Matt Lane * @version 0.1 */ import java.io.*; /** Partially-implemented scanner device. */ public class ScannerAdapter implements Scanner { protected SampleListener sampleListener; protected EchoListener echoListener; /** Sends a sample to the listener. */ protected void sendSample(int val) { if (sampleListener != null) sampleListener.sample(val); } /** Sends a command echo to the listener. */ protected void sendEcho(int type, int val) { if (echoListener != null) echoListener.echo(type, val); } public void open(String portName) throws IOException {} public void close() throws IOException {} /** Sets the sample listener. */ public void setSampleListener(SampleListener l) {sampleListener = l;} /** Sets the command echo listener. */ public void setEchoListener(EchoListener l) {echoListener = l;} public void beginDataTransfer() throws IOException {} public void reset() throws IOException {} public void setOffset(int o) throws IOException {} public void setGain(int g) throws IOException {} public void setAutoOffset() throws IOException {} public void setAlarm(boolean f) throws IOException {} public void setRedLED() throws IOException {} public void setGreenLED() throws IOException {} public void setLED(boolean f) throws IOException {} public void setThreshhold(int t) throws IOException {} public void queryOffset() throws IOException {} public void queryGain() throws IOException {} public void queryThreshhold() throws IOException {} }