edu.washington.cs.sounddetector.server.api.method
Class Classify
java.lang.Object
edu.washington.cs.sounddetector.server.api.method.Classify
- All Implemented Interfaces:
- Method
public class Classify
- extends Object
- implements Method
Classify
public Classify()
Classify
public Classify(String detectorId,
byte[] sound,
SoundFormat soundFormat,
List<PeakEvent> peakEvents)
setDetectorId
public void setDetectorId(String detectorId)
- Parameters:
detectorId
- the detectorId to set
setSound
public void setSound(byte[] sound)
- Parameters:
sound
- the sound to set
setSoundFormat
public void setSoundFormat(SoundFormat soundFormat)
- Parameters:
soundFormat
- the soundFormat to set
setPeakEvents
public void setPeakEvents(List<PeakEvent> peakEvents)
- Parameters:
peakEvents
- the peakEvents to set
getSoundFormat
public SoundFormat getSoundFormat()
- Returns:
- the soundFormat
getDetectorId
public String getDetectorId()
- Returns:
- the detectorId
getSound
public byte[] getSound()
- Returns:
- the sound
getPeakEvents
public List<PeakEvent> getPeakEvents()
- Returns:
- a new list containing the peak events
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.