edu.washington.cs.sounddetector.server.api.methodresult
Class TrainResult
java.lang.Object
edu.washington.cs.sounddetector.server.api.MethodResult<Train>
edu.washington.cs.sounddetector.server.api.methodresult.TrainResult
public class TrainResult
- extends MethodResult<Train>
getMessage
public String getMessage()
- Returns:
- if this.successful() == false, then the message as to why the classifier could not be
built. If this.successful() == true, then returns null.
getSoundIds
public List<Long> getSoundIds()
- Returns:
- if this.successful() == true, then returns a list of ids for the sounds which were
sent in the Train API call. If this.successful() == false, returns null.
success
public static TrainResult success(List<Long> soundIds)
- Successful TrainResult.
- Parameters:
soundIds
- the ids corresponding to the sounds that were sent in the Train api call.
failureCantBuildClassifier
public static TrainResult failureCantBuildClassifier(String message)
Copyright © 2012. All Rights Reserved.