edu.washington.cs.sounddetector.server.api.methodresult
Class ClassifyResult

java.lang.Object
  extended by edu.washington.cs.sounddetector.server.api.MethodResult<Classify>
      extended by edu.washington.cs.sounddetector.server.api.methodresult.ClassifyResult

public class ClassifyResult
extends MethodResult<Classify>


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.washington.cs.sounddetector.server.api.MethodResult
MethodResult.FailureReason
 
Method Summary
static ClassifyResult failureDetectorIdDoesNotExist(String detectorId)
           
 String getDetectorId()
           
 String getSoundClass()
           
 void setDetectorId(String detectorId)
           
 void setSoundClass(String soundClass)
           
static ClassifyResult success(String soundClass)
           
 
Methods inherited from class edu.washington.cs.sounddetector.server.api.MethodResult
getReason, isSuccessful, setReason, setSuccessful, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setSoundClass

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

getSoundClass

public String getSoundClass()
Returns:
if MethodResult.isSuccessful() is true, returns the soundClass of the classified sound, otherwise returns null.

getDetectorId

public String getDetectorId()
Returns:
the detectorId that does not exist if MethodResult.isSuccessful() returns false, null otherwise

setDetectorId

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

success

public static ClassifyResult success(String soundClass)

failureDetectorIdDoesNotExist

public static ClassifyResult failureDetectorIdDoesNotExist(String detectorId)


Copyright © 2012. All Rights Reserved.