edu.umass.cs.automan.core.logging

Memo

class Memo extends AnyRef

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

Instance Constructors

  1. new Memo(log_config: LogConfig.Value, database_name: String)

Type Members

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

  2. type DBFreeTextAnswer = (Int, String, String)

  3. type DBQuestion = (UUID, String, QuestionType, String, String)

  4. type DBRadioButtonAnswer = (Int, Symbol, String)

  5. type DBSession = SessionDef

  6. type DBTask = (UUID, UUID, BigDecimal, Date, Int, Int)

  7. type DBTaskHistory = (UUID, Date, SchedulerState)

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. val _jdbc_conn_string: String

    Attributes
    protected[edu.umass.cs.automan]
  5. var _plugins: List[Plugin]

    Attributes
    protected
  6. def allTasksQuery(): Query[(tables.DBQuestion, (tables.DBTask, tables.DBTaskHistory)), (tables.DBQuestion.TableElementType, (tables.DBTask.TableElementType, (Int, UUID, Date, SchedulerState))), Seq]

    Attributes
    protected[edu.umass.cs.automan]
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Attributes
    protected
  10. val dbCheckboxAnswer: TableQuery[tables.DBCheckboxAnswer]

    Attributes
    protected[edu.umass.cs.automan]
  11. val dbFreeTextAnswer: TableQuery[tables.DBFreeTextAnswer]

    Attributes
    protected[edu.umass.cs.automan]
  12. val dbQuestion: TableQuery[tables.DBQuestion]

    Attributes
    protected[edu.umass.cs.automan]
  13. val dbRadioButtonAnswer: TableQuery[tables.DBRadioButtonAnswer]

    Attributes
    protected[edu.umass.cs.automan]
  14. val dbTask: TableQuery[tables.DBTask]

    Attributes
    protected[edu.umass.cs.automan]
  15. val dbTaskHistory: TableQuery[tables.DBTaskHistory]

    Attributes
    protected[edu.umass.cs.automan]
  16. var db_opt: Option[DatabaseDef]

  17. final def eq(arg0: AnyRef): Boolean

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

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

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

    Attributes
    protected[edu.umass.cs.automan]
  21. final def getClass(): Class[_]

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

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

    Initialization routines.

    Initialization routines.

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

    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
  25. def insertAnswerTable(ts: List[Task], histories: Seq[(UUID, Int)])(implicit session: DBSession): Option[Int]

    Attributes
    protected[edu.umass.cs.automan]
  26. final def isInstanceOf[T0]: Boolean

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

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

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

    Attributes
    protected[edu.umass.cs.automan]
  30. final def notify(): Unit

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

    Definition Classes
    AnyRef
  32. val path: String

  33. def questionInDB(memo_hash: String)(implicit db: DBSession): Boolean

    Attributes
    protected[edu.umass.cs.automan]
  34. implicit val questionTypeMapper: scala.slick.driver.H2Driver.BaseColumnType[QuestionType]

  35. def register_plugins(plugins: List[Plugin]): Unit

    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]
  36. def restore(q: Question): List[Task]

    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.

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

    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.

  38. def snapshot(): List[TaskSnapshot[_]]

  39. def snapshotUpdates(): List[TaskSnapshot[_]]

  40. implicit val symbolSetStringMapper: scala.slick.driver.H2Driver.BaseColumnType[Set[Symbol]]

  41. implicit val symbolStringMapper: scala.slick.driver.H2Driver.BaseColumnType[Symbol]

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

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

    Attributes
    protected[edu.umass.cs.automan]
  44. def task2TaskHistoryTuple(ts: List[Task]): List[(Int, UUID, Date, SchedulerState)]

    Attributes
    protected[edu.umass.cs.automan]
  45. def task2TaskTuple(ts: List[Task]): List[(UUID, UUID, Int, BigDecimal, Date, Int, Int)]

    Attributes
    protected[edu.umass.cs.automan]
  46. def toString(): String

    Definition Classes
    AnyRef → Any
  47. final def wait(): Unit

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped