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

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

public class TrainResult
extends MethodResult<Train>


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.washington.cs.sounddetector.server.api.MethodResult
MethodResult.FailureReason
 
Method Summary
static TrainResult failureCantBuildClassifier(String message)
           
 String getMessage()
           
 List<Long> getSoundIds()
           
static TrainResult success(List<Long> soundIds)
          Successful TrainResult.
 
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

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.