org.placelab.stumbler.smallgui
Class Receiver

java.lang.Object
  extended byorg.placelab.stumbler.smallgui.Receiver
All Implemented Interfaces:
SpotterListener
Direct Known Subclasses:
BeaconReceiver, GPSReceiver

public abstract class Receiver
extends java.lang.Object
implements SpotterListener


Constructor Summary
Receiver(java.lang.Class[][] classTypes)
           
Receiver(java.lang.Class measurementClass, java.lang.Class readingClass)
           
 
Method Summary
 void addListener(ReceiverListener listener)
           
abstract  java.lang.Class[] getSupportedSpotters()
           
abstract  java.lang.String getType()
           
 void gotMeasurement(Spotter s, Measurement m)
           
abstract  void gotMeasurementImpl(Spotter s, Measurement m)
           
 void spotterExceptionThrown(Spotter s, SpotterException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Receiver

public Receiver(java.lang.Class measurementClass,
                java.lang.Class readingClass)

Receiver

public Receiver(java.lang.Class[][] classTypes)
Method Detail

addListener

public void addListener(ReceiverListener listener)

gotMeasurement

public void gotMeasurement(Spotter s,
                           Measurement m)
Specified by:
gotMeasurement in interface SpotterListener

gotMeasurementImpl

public abstract void gotMeasurementImpl(Spotter s,
                                        Measurement m)

spotterExceptionThrown

public void spotterExceptionThrown(Spotter s,
                                   SpotterException e)
Specified by:
spotterExceptionThrown in interface SpotterListener

getSupportedSpotters

public abstract java.lang.Class[] getSupportedSpotters()

getType

public abstract java.lang.String getType()