Class

edu.umass.cs.automan.core.scheduler

Scheduler

Related Doc: package scheduler

Permalink

class Scheduler extends AnyRef

Controls scheduling of tasks for a given question.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Scheduler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Scheduler(question: Question, backend: AutomanAdapter)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Sch

    Permalink
  5. val VIRT_FREQ: Int

    Permalink
  6. val VP: AP

    Permalink
  7. def accept_invariant(ts: List[Task]): Boolean

    Permalink
  8. def accept_on_failure[A](all_tasks: List[Task], strategy: AggregationPolicy, backend: AutomanAdapter): List[Task]

    Permalink
  9. def accept_reject_and_cancel[A](all_tasks: List[Task], strategy: AggregationPolicy, backend: AutomanAdapter): List[Task]

    Permalink

    Accepts and rejects tasks on the backend.

    Accepts and rejects tasks on the backend. Returns all tasks.

    all_tasks

    All tasks.

    strategy

    The ValidationStrategy.

    backend

    A reference to the backend AutomanAdapter.

    returns

    The tasks passed in, with new states.

  10. def all_set_invariant[A](before: List[Task], after: List[Task], state: SchedulerState.Value): Boolean

    Permalink

    Returns true if all of the tasks from the before list are set to the given state in the after list.

    Returns true if all of the tasks from the before list are set to the given state in the after list.

    before

    A list of tasks.

    after

    A list of tasks.

    state

    The state to check.

    returns

    True if the invariant holds.

  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. val backend: AutomanAdapter

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def failUnWrap(tso: Option[List[Task]]): List[Task]

    Permalink
  17. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. val init_time: Date

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def mutex_invariant(to_cancel: List[Task], to_accept: List[Task], to_reject: List[Task], remaining: List[Task]): Boolean

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def post_as_needed(tasks: List[Task], backend: AutomanAdapter, question: Question, suffered_timeout: Boolean, blacklist: List[String], num_comparisons: Int): (List[Task], Int, Boolean)

    Permalink

    Post new tasks if needed.

    Post new tasks if needed. Returns only newly-created tasks.

    tasks

    The complete list of tasks.

    question

    Question data.

    suffered_timeout

    True if any tasks suffered a timeout on the last iteration.

    num_comparisons

    The number of times we've called is_done, inclusive

    returns

    A list of newly-created tasks, the number of comparisons, and whether we're done

  27. def process_timeouts(ts: List[Task], current_time: Date): (List[Task], Boolean)

    Permalink
  28. val question: Question

    Permalink
  29. def reject_invariant(ts: List[Task]): Boolean

    Permalink
  30. def retrieve_invariant[A](running: List[Task], answered: List[Task]): Boolean

    Permalink

    Given a list of RUNNING tasks and a list of tasks returned from the AutomanAdapter.retrieve method, ensure that a number of invariants hold.

    Given a list of RUNNING tasks and a list of tasks returned from the AutomanAdapter.retrieve method, ensure that a number of invariants hold.

    running

    A list of RUNNING tasks.

    answered

    A list of tasks returned by the AutomanAdapter.retrieve method.

    returns

    True if all invariants hold.

  31. def run(): AA

    Permalink

    Crowdsources a task on the desired backend, scheduling and rescheduling enough jobs until the chosen quality-control mechanism is confident in the result, and paying for answers where appropriate.

  32. def spawn_invariant[A](new_tasks: List[Task]): Boolean

    Permalink

    The list of newly-spawned tasks should never be zero.

    The list of newly-spawned tasks should never be zero.

    new_tasks

    A list of newly-spawned tasks.

    returns

    True if the invariant holds.

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def total_cost[A](tasks: List[Task]): BigDecimal

    Permalink

    Calculates the total cost of all tasks that might potentially be accepted.

    Calculates the total cost of all tasks that might potentially be accepted.

    tasks

    The complete list of tasks.

    returns

    The amount spent.

  36. val use_virt: Boolean

    Permalink
  37. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped