public static class PhotoFeedbackTask.FeedbackTaskBuilder extends java.lang.Object
PhotoFeedbackTask
and executable using CAContentCore.scheduleTask(PhotoTaskDetails)
}CAContentCore
,
PhotoTaskDetails
Constructor and Description |
---|
FeedbackTaskBuilder(AsyncTask.TaskType taskType) |
public FeedbackTaskBuilder(AsyncTask.TaskType taskType) throws java.lang.IllegalArgumentException
taskType
- AsyncTask.TaskType.FEEDBACK
java.lang.IllegalArgumentException
- on unsupported/invalid task typepublic PhotoFeedbackTask.FeedbackTaskBuilder addPhoto(Photo photo)
photo
- public PhotoFeedbackTask.FeedbackTaskBuilder addPhotos(PhotoList photos)
photos
- public PhotoFeedbackTask.FeedbackTaskBuilder addReferencePhoto(Photo photo) throws java.lang.IllegalArgumentException
photo
- java.lang.IllegalArgumentException
- if the given photo is already present in similar or dissimilar photo listpublic PhotoFeedbackTask.FeedbackTaskBuilder addSimilarPhoto(Photo photo) throws java.lang.IllegalArgumentException
photo
- java.lang.IllegalArgumentException
- if the given photo is already present in reference or dissimilar photo listpublic PhotoFeedbackTask.FeedbackTaskBuilder addDissimilarPhoto(Photo photo) throws java.lang.IllegalArgumentException
photo
- java.lang.IllegalArgumentException
- if the given photo is already present in reference or similar photo listpublic PhotoFeedbackTask.FeedbackTaskBuilder addDeletedPhoto(Photo photo) throws java.lang.IllegalArgumentException
photo
- java.lang.IllegalArgumentException
public PhotoFeedbackTask.FeedbackTaskBuilder addDeletedPhotos(java.util.Collection<java.lang.String> guids)
guids
- public PhotoFeedbackTask.FeedbackTaskBuilder addDeletedPhotos(DeletedPhotoList photos)
photos
- public PhotoFeedbackTask.FeedbackTaskBuilder addDissimilarPhotos(SimilarPhotoList photos)
photos
- public PhotoFeedbackTask.FeedbackTaskBuilder addSimilarPhotos(DissimilarPhotoList photos)
photos
- public PhotoFeedbackTask.FeedbackTaskBuilder setUser(UserIdentity userId)
userId
- public PhotoFeedbackTask.FeedbackTaskBuilder setUserConfidence(java.lang.Double confidence)
confidence
- public PhotoFeedbackTask.FeedbackTaskBuilder addBackend(AnalysisBackend end) throws java.lang.IllegalArgumentException
end
- java.lang.IllegalArgumentException
- on null or invalid back-endpublic PhotoFeedbackTask.FeedbackTaskBuilder setBackends(BackendStatusList backendStatusList)
backendStatusList
- public PhotoFeedbackTask.FeedbackTaskBuilder clearDeletedPhotos()
public PhotoFeedbackTask.FeedbackTaskBuilder clearSimilarPhotos()
public PhotoFeedbackTask.FeedbackTaskBuilder clearDissimilarPhotos()
public PhotoFeedbackTask.FeedbackTaskBuilder clearPhotos()
public PhotoFeedbackTask.FeedbackTaskBuilder clearReferencePhotos()
public PhotoTaskDetails build() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- on bad dataCopyright © 2015 Tampere University of Technology, Pori Department.