edu.washington.cs.sounddetector.server.api.method
Class Classify

java.lang.Object
  extended by edu.washington.cs.sounddetector.server.api.method.Classify
All Implemented Interfaces:
Method

public class Classify
extends Object
implements Method


Constructor Summary
Classify()
           
Classify(String detectorId, byte[] sound, SoundFormat soundFormat, List<PeakEvent> peakEvents)
           
 
Method Summary
 String getDetectorId()
           
 List<PeakEvent> getPeakEvents()
           
 byte[] getSound()
           
 SoundFormat getSoundFormat()
           
 void setDetectorId(String detectorId)
           
 void setPeakEvents(List<PeakEvent> peakEvents)
           
 void setSound(byte[] sound)
           
 void setSoundFormat(SoundFormat soundFormat)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Classify

public Classify()

Classify

public Classify(String detectorId,
                byte[] sound,
                SoundFormat soundFormat,
                List<PeakEvent> peakEvents)
Method Detail

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.