edu.washington.cs.sounddetector.server.api.object
Class Notification
java.lang.Object
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
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 detecteddetectorId
- the id of the phone that detected the soundpeakEvents
- a list of peak events describing the time and magnitude of peaks in the sound
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.