public abstract class MapRouletteCommand
extends org.openstreetmap.atlas.geography.atlas.AtlasLoadingCommand
org.openstreetmap.atlas.geography.atlas.AtlasLoadingCommand.AcceptableInputFileFilterorg.openstreetmap.atlas.utilities.runtime.Command.Flag, org.openstreetmap.atlas.utilities.runtime.Command.Optionality, org.openstreetmap.atlas.utilities.runtime.Command.Switch<T>, org.openstreetmap.atlas.utilities.runtime.Command.SwitchList| Constructor and Description |
|---|
MapRouletteCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTask(Challenge challenge,
Task task) |
protected void |
addTask(java.lang.String challengeName,
Task task) |
protected void |
checkUploadTasks(int threshold)
Function will check to see how many tasks are currently added in the batch, and if there are
more than the current threshold, then it will upload the current tasks otherwise it will do
nothing.
|
protected abstract void |
execute(org.openstreetmap.atlas.utilities.runtime.CommandMap commandMap,
MapRouletteConfiguration configuration) |
MapRouletteClient |
getClient() |
protected MapRouletteClient |
getMapRouletteClient() |
protected int |
onRun(org.openstreetmap.atlas.utilities.runtime.CommandMap commandMap) |
protected org.openstreetmap.atlas.utilities.runtime.Command.SwitchList |
switches() |
protected void |
uploadTasks() |
loadAtlas, loadAtlaspublic MapRouletteClient getClient()
protected void addTask(java.lang.String challengeName,
Task task)
throws java.io.UnsupportedEncodingException,
java.net.URISyntaxException
java.io.UnsupportedEncodingExceptionjava.net.URISyntaxExceptionprotected void addTask(Challenge challenge, Task task) throws java.io.UnsupportedEncodingException, java.net.URISyntaxException
java.io.UnsupportedEncodingExceptionjava.net.URISyntaxExceptionprotected void checkUploadTasks(int threshold)
threshold - the number of tasks that it needs to execute the uploadprotected abstract void execute(org.openstreetmap.atlas.utilities.runtime.CommandMap commandMap,
MapRouletteConfiguration configuration)
protected MapRouletteClient getMapRouletteClient()
protected int onRun(org.openstreetmap.atlas.utilities.runtime.CommandMap commandMap)
onRun in class org.openstreetmap.atlas.utilities.runtime.Commandprotected org.openstreetmap.atlas.utilities.runtime.Command.SwitchList switches()
switches in class org.openstreetmap.atlas.geography.atlas.AtlasLoadingCommandprotected void uploadTasks()