edu.washington.cs.sounddetector.server.api.methodresult
Class ClassifyResult
java.lang.Object
edu.washington.cs.sounddetector.server.api.MethodResult<Classify>
edu.washington.cs.sounddetector.server.api.methodresult.ClassifyResult
public class ClassifyResult
- extends MethodResult<Classify>
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.