001/**
002 * 
003 */
004package org.openimaj.hardware.serial;
005
006import java.util.EventListener;
007
008/**
009 *      An event listener for objects that wish to be informed
010 *      of data arriving on a serial port.      
011 * 
012 *  @author David Dupplaw (dpd@ecs.soton.ac.uk)
013 *      
014 *      @created 12 Jul 2011
015 */
016public interface SerialDataListener extends EventListener
017{
018        /**
019         *      Called when data is received on a serial port.
020         *  @param data The data that was received as a string.
021         */
022        public void dataReceived( String data );
023}