T - this would either be a Check typepublic abstract class RunnableCheckBase<T extends Check>
extends java.lang.Object
RunnableCheck| Constructor and Description |
|---|
RunnableCheckBase(java.lang.String country,
T check,
java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> objects,
MapRouletteClient client)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTask(CheckFlag flag)
Adds a
CheckFlag to MapRouletteClient |
protected T |
getCheck() |
protected MapRouletteClient |
getClient() |
protected java.lang.String |
getCountry() |
EventService |
getEventService() |
protected java.lang.String |
getName() |
protected java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> |
getObjects() |
protected void |
uploadTasks()
Uploads
CheckFlags to MapRoulette in a separate thread. |
public RunnableCheckBase(java.lang.String country,
T check,
java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> objects,
MapRouletteClient client)
country - country that is being processedcheck - check that is being executedobjects - AtlasObjects that are going to be executedclient - MapRouletteClient that will upload the tasks to MapRoulettepublic EventService getEventService()
EventService events are published toprotected void addTask(CheckFlag flag)
CheckFlag to MapRouletteClientflag - CheckFlag to create MapRoulette taskprotected T getCheck()
protected MapRouletteClient getClient()
protected java.lang.String getCountry()
protected java.lang.String getName()
protected java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> getObjects()
protected void uploadTasks()
CheckFlags to MapRoulette in a separate thread. Thread will timeout if it
does not complete by given timeout time.