public static class PhotoBackendFeedbackTask.FeedbackTaskBuilder extends java.lang.Object
PhotoBackendFeedbackTask and executable using CAContentCore.scheduleTask(PhotoTaskDetails)}CAContentCore,
PhotoTaskDetails| Constructor and Description |
|---|
FeedbackTaskBuilder(AsyncTask.TaskType taskType) |
| Modifier and Type | Method and Description |
|---|---|
PhotoBackendFeedbackTask.FeedbackTaskBuilder |
addBackend(AnalysisBackend end) |
PhotoBackendFeedbackTask.FeedbackTaskBuilder |
addPhoto(Photo photo)
Add photo to feedback task if the given photo has (valid) changes
|
PhotoBackendFeedbackTask.FeedbackTaskBuilder |
addPhotos(PhotoList photos) |
PhotoTaskDetails |
build() |
PhotoBackendFeedbackTask.FeedbackTaskBuilder |
clearPhotos() |
PhotoBackendFeedbackTask.FeedbackTaskBuilder |
setBackends(BackendStatusList backendStatusList)
This will automatically filter out back-end with inadequate capabilities
|
PhotoBackendFeedbackTask.FeedbackTaskBuilder |
setUser(UserIdentity userId) |
PhotoBackendFeedbackTask.FeedbackTaskBuilder |
setUserConfidence(java.lang.Double confidence) |
public FeedbackTaskBuilder(AsyncTask.TaskType taskType) throws java.lang.IllegalArgumentException
taskType - AsyncTask.TaskType.BACKEND_FEEDBACKjava.lang.IllegalArgumentException - on unsupported/invalid task typepublic PhotoBackendFeedbackTask.FeedbackTaskBuilder addPhoto(Photo photo)
photo - public PhotoBackendFeedbackTask.FeedbackTaskBuilder addPhotos(PhotoList photos)
photos - public PhotoBackendFeedbackTask.FeedbackTaskBuilder setUser(UserIdentity userId)
userId - public PhotoBackendFeedbackTask.FeedbackTaskBuilder setUserConfidence(java.lang.Double confidence)
confidence - public PhotoBackendFeedbackTask.FeedbackTaskBuilder addBackend(AnalysisBackend end) throws java.lang.IllegalArgumentException
end - java.lang.IllegalArgumentException - on null or invalid back-endpublic PhotoBackendFeedbackTask.FeedbackTaskBuilder setBackends(BackendStatusList backendStatusList)
backendStatusList - public PhotoBackendFeedbackTask.FeedbackTaskBuilder clearPhotos()
public PhotoTaskDetails build() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionCopyright © 2015 Tampere University of Technology, Pori Department.