Class MapRouletteClient

  • All Implemented Interfaces:
    java.io.Serializable

    public class MapRouletteClient
    extends java.lang.Object
    implements java.io.Serializable
    Stand-alone MapRoulette client
    See Also:
    Serialized Form
    • Method Detail

      • addTask

        public void addTask​(Challenge challenge,
                            Task task)
      • addTask

        public void addTask​(java.lang.String projectName,
                            Challenge challenge,
                            Task task)
        Adds tasks for a particular challenge name to the internal batch
        Parameters:
        projectName - The name of the project for the task
        challenge - The Challenge for this Task
        task - The task itself
      • getCurrentBatchSize

        public int getCurrentBatchSize()
      • uploadTasks

        public void uploadTasks()
        Upload batched tasks to MapRoulette
      • uploadTasks

        public void uploadTasks​(org.openstreetmap.atlas.utilities.tuples.Tuple<java.lang.String,​java.lang.String> key)
      • setOutputPath

        protected void setOutputPath​(java.util.Optional<java.lang.String> challengeIdFile)
        This methods sets challenge id output path
        Parameters:
        challengeIdFile - challenge id file location.