Class

edu.umass.cs.automan.adapters.mturk.logging

MTMemo

Related Doc: package logging

Permalink

class MTMemo extends Memo

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

Instance Constructors

  1. new MTMemo(log_config: core.logging.LogConfig.Value, database_path: String)

    Permalink

Type Members

  1. type DBCheckboxAnswer = (Int, Set[Symbol], String)

    Permalink
    Definition Classes
    Memo
  2. type DBFreeTextAnswer = (Int, String, String)

    Permalink
    Definition Classes
    Memo
  3. type DBHITType = (String, String, Int)

    Permalink
  4. type DBQualificationRequirement = (String, String)

    Permalink
  5. type DBQuestion = (UUID, String, QuestionType, String, String)

    Permalink
    Definition Classes
    Memo
  6. type DBRadioButtonAnswer = (Int, Symbol, String)

    Permalink
    Definition Classes
    Memo
  7. type DBSession = SessionDef

    Permalink
    Definition Classes
    Memo
  8. type DBTask = (UUID, UUID, BigDecimal, Date, Int, Int)

    Permalink
    Definition Classes
    Memo
  9. type DBTaskHistory = (UUID, Date, SchedulerState)

    Permalink
    Definition Classes
    Memo

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. val _jdbc_conn_string: String

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  5. var _plugins: List[Plugin]

    Permalink
    Attributes
    protected
    Definition Classes
    Memo
  6. def allTasksQuery(): Query[(core.logging.tables.DBQuestion, (core.logging.tables.DBTask, core.logging.tables.DBTaskHistory)), (core.logging.tables.DBQuestion.TableElementType, (core.logging.tables.DBTask.TableElementType, (Int, UUID, Date, SchedulerState))), Seq]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def assignmentFromDBAssnRow(row: (String, String, String, AssignmentStatus, Option[Calendar], Option[Calendar], Option[Calendar], Option[Calendar], Option[Calendar], Option[Calendar], String, Option[String], UUID)): Assignment

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def database_exists(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Memo
  11. val dbCheckboxAnswer: TableQuery[core.logging.tables.DBCheckboxAnswer]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  12. val dbFreeTextAnswer: TableQuery[core.logging.tables.DBFreeTextAnswer]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  13. val dbQuestion: TableQuery[core.logging.tables.DBQuestion]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  14. val dbRadioButtonAnswer: TableQuery[core.logging.tables.DBRadioButtonAnswer]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  15. val dbTask: TableQuery[core.logging.tables.DBTask]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  16. val dbTaskHistory: TableQuery[core.logging.tables.DBTaskHistory]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  17. var db_opt: Option[DatabaseDef]

    Permalink
    Definition Classes
    Memo
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def getAllTasksMap(implicit session: DBSession): Map[UUID, core.scheduler.SchedulerState.Value]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  22. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def init(): Unit

    Permalink

    Initialization routines.

    Initialization routines.

    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    MTMemoMemo
  25. def init_database_if_required(ddls: List[scala.slick.driver.H2Driver.SchemaDescription]): Unit

    Permalink

    Run table definitions if this is the first time the database is run.

    Run table definitions if this is the first time the database is run. Overring subclasses should provide their DDLs as a list to this method instead of overriding it.

    ddls

    Slick Table definitions.

    Attributes
    protected
    Definition Classes
    Memo
  26. def insertAnswerTable(ts: List[Task], histories: Seq[(UUID, Int)])(implicit session: DBSession): Option[Int]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. implicit val javaUtilDateMapper: scala.slick.driver.H2Driver.BaseColumnType[Date]

    Permalink
    Definition Classes
    Memo
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. def needsUpdate[A](ts: List[Task], tsstates: Map[UUID, core.scheduler.SchedulerState.Value]): List[InsertUpdateOrSkip[Task]]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  31. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  33. val path: String

    Permalink
    Definition Classes
    Memo
  34. def questionInDB(memo_hash: String)(implicit db: DBSession): Boolean

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  35. implicit val questionTypeMapper: scala.slick.driver.H2Driver.BaseColumnType[QuestionType]

    Permalink
    Definition Classes
    Memo
  36. def register_plugins(plugins: List[Plugin]): Unit

    Permalink

    Register plugins so that they can be notified on DB state changes.

    Register plugins so that they can be notified on DB state changes.

    plugins

    A list of initialized plugins.

    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  37. def restore(q: Question): List[Task]

    Permalink

    Restore all tasks from the database given a question's memo_hash.

    Restore all tasks from the database given a question's memo_hash.

    q

    An AutoMan question.

    returns

    A list of tasks.

    Definition Classes
    Memo
  38. def restore_mt_state(backend: RequesterService): Option[MTState]

    Permalink
  39. def save(q: Question, inserts: List[Task], updates: List[Task]): Unit

    Permalink

    Updates the database given a complete list of tasks.

    Updates the database given a complete list of tasks.

    inserts

    A list of tasks to insert.

    updates

    A list of tasks to update.

    Definition Classes
    Memo
  40. def save_mt_state(state: MTState): Unit

    Permalink
  41. def snapshot(): List[TaskSnapshot[_]]

    Permalink
    Definition Classes
    Memo
  42. def snapshotUpdates(): List[TaskSnapshot[_]]

    Permalink
    Definition Classes
    Memo
  43. implicit val symbolSetStringMapper: scala.slick.driver.H2Driver.BaseColumnType[Set[Symbol]]

    Permalink
    Definition Classes
    Memo
  44. implicit val symbolStringMapper: scala.slick.driver.H2Driver.BaseColumnType[Symbol]

    Permalink
    Definition Classes
    Memo
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. def task2TaskAnswerTuple(ts: List[Task], histories: Seq[(UUID, Int)]): List[(Int, A, String)]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  47. def task2TaskHistoryTuple(ts: List[Task]): List[(Int, UUID, Date, SchedulerState)]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  48. def task2TaskTuple(ts: List[Task]): List[(UUID, UUID, Int, BigDecimal, Date, Int, Int)]

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
    Definition Classes
    Memo
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def updateHITs(hit_states: Map[HITID, HITState], hit_ids: Map[HITKey, HITID])(implicit session: DBSession): Unit

    Permalink
  51. def updateWhitelist(ww: Map[(WorkerID, GroupID), HITTypeID])(implicit session: DBSession): Unit

    Permalink
  52. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def wipeDatabase(): Unit

    Permalink

    This call deletes all records stored in all of the Memo database's tables.

    This call deletes all records stored in all of the Memo database's tables.

    Definition Classes
    Memo

Inherited from Memo

Inherited from AnyRef

Inherited from Any

Ungrouped