edu.washington.cs.sounddetector.server.api.object
Class Notification

java.lang.Object
  extended by edu.washington.cs.sounddetector.server.api.object.Notification

public class Notification
extends Object

A Notification represents a sound event that has been detected by a detector phone.

Author:
the.dylan.price@gmail.com

Constructor Summary
Notification()
           
Notification(SoundClass soundClass, String detectorId, List<PeakEvent> peakEvents)
          Construct a new Notification.
 
Method Summary
 String getDetectorId()
           
 List<PeakEvent> getPeakEvents()
           
 SoundClass getSoundClass()
           
 void setDetectorId(String detectorId)
           
 void setPeakEvents(List<PeakEvent> peakEvents)
           
 void setSoundClass(SoundClass soundClass)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Notification

public Notification()

Notification

public Notification(SoundClass soundClass,
                    String detectorId,
                    List<PeakEvent> peakEvents)
Construct a new Notification.

Parameters:
soundClass - the class of the sound that was detected
detectorId - the id of the phone that detected the sound
peakEvents - a list of peak events describing the time and magnitude of peaks in the sound
Method Detail

setSoundClass

public void setSoundClass(SoundClass soundClass)
Parameters:
soundClass - the soundClass to set

setDetectorId

public void setDetectorId(String detectorId)
Parameters:
detectorId - the detectorId to set

setPeakEvents

public void setPeakEvents(List<PeakEvent> peakEvents)
Parameters:
peakEvents - the peakEvents to set

getSoundClass

public SoundClass getSoundClass()
Returns:
the soundClass

getDetectorId

public String getDetectorId()

getPeakEvents

public List<PeakEvent> getPeakEvents()
Returns:
the peakEvents as a new list

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.