Class RunnableCheckBase<T extends Check>

  • Type Parameters:
    T - this would either be a Check type
    Direct Known Subclasses:
    RunnableCheck

    public abstract class RunnableCheckBase<T extends Check>
    extends java.lang.Object
    Base class to with helper methods for RunnableCheck
    • Constructor Detail

      • RunnableCheckBase

        public RunnableCheckBase​(java.lang.String country,
                                 T check,
                                 java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> objects,
                                 MapRouletteClient client)
        Default constructor
        Parameters:
        country - country that is being processed
        check - check that is being executed
        objects - AtlasObjects that are going to be executed
        client - MapRouletteClient that will upload the tasks to MapRoulette
    • Method Detail

      • getCheck

        protected T getCheck()
      • getCountry

        protected java.lang.String getCountry()
      • getName

        protected java.lang.String getName()
      • getObjects

        protected java.lang.Iterable<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> getObjects()
      • uploadTasks

        protected void uploadTasks()
        Uploads CheckFlags to MapRoulette in a separate thread. Thread will timeout if it does not complete by given timeout time.