edu.umass.cs.automan.core.policy.validation

ValidationPolicy

abstract class ValidationPolicy extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ValidationPolicy
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ValidationPolicy(question: Question)

Type Members

  1. class PrematureValidationCompletionException extends Exception

Abstract Value Members

  1. abstract def is_done(tasks: List[Task]): Boolean

    Returns true if the strategy has enough data to stop scheduling work.

    Returns true if the strategy has enough data to stop scheduling work.

    tasks

    The complete list of scheduled tasks.

    returns

  2. abstract def rejection_response(tasks: List[Task]): String

    Returns a string explaining why the worker's answer was not accepted.

    Returns a string explaining why the worker's answer was not accepted.

    tasks

    The list of accepted tasks. Used to determine the correct answer.

    returns

    Explanation string.

  3. abstract def select_answer(tasks: List[Task]): AA

    Returns the top answer.

    Returns the top answer.

    tasks

    The complete list of tasks.

    returns

    Top answer

  4. abstract def select_over_budget_answer(tasks: List[Task], need: BigDecimal, have: BigDecimal): AA

    Returns an appropriate response for when the computation ran out of money.

    Returns an appropriate response for when the computation ran out of money.

    tasks

    The complete list of tasks.

    need

    The smallest amount of money needed to complete the computation under optimistic assumptions.

    have

    The amount of money we have.

    returns

    A low-confidence or over-budget answer.

  5. abstract def spawn(tasks: List[Task], suffered_timeout: Boolean): List[Task]

    Computes the number of tasks needed to satisfy the quality-control algorithm given the already-collected list of tasks.

    Computes the number of tasks needed to satisfy the quality-control algorithm given the already-collected list of tasks. Returns only newly-created tasks.

    tasks

    The complete list of previously-scheduled tasks

    suffered_timeout

    True if any of the latest batch of tasks suffered a timeout.

    returns

    A list of new tasks to schedule on the backend.

  6. abstract def tasks_to_accept(tasks: List[Task]): List[Task]

  7. abstract def tasks_to_reject(tasks: List[Task]): List[Task]

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def blacklisted_workers(tasks: List[Task]): List[String]

    Returns a list of blacklisted worker_ids given a set of tasks, completed or not.

    Returns a list of blacklisted worker_ids given a set of tasks, completed or not.

    tasks

    The complete list of tasks.

    returns

    A list of worker IDs.

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def completed_tasks(tasks: List[Task]): List[Task]

    Attributes
    protected
  10. def completed_workerunique_tasks(tasks: List[Task]): List[Task]

    Attributes
    protected
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def mark_duplicates(tasks: List[Task]): List[Task]

    Given a list of tasks, this method returns the same list with all but one task marked as DUPLICATE for each subset submitted by each distinct worker.

    Given a list of tasks, this method returns the same list with all but one task marked as DUPLICATE for each subset submitted by each distinct worker. The task left as ANSWERED is chosen arbitrarily (the first one encountered).

    tasks

    A list of ANSWERED tasks.

    returns

    A list of ANSWERED and DUPLICATE tasks.

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def outstanding_tasks(tasks: List[Task]): List[Task]

    Attributes
    protected
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def tasks_to_cancel(tasks: List[Task]): List[Task]

  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. def unique_by_date(ts: List[Task]): List[Task]

    Attributes
    protected
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped