ca.shiftfocus.krispii.core.models.tasks

MatchingTask

Related Docs: object MatchingTask | package tasks

case class MatchingTask(id: UUID = UUID.random, partId: UUID, position: Int, version: Long = 1L, settings: CommonTaskSettings = CommonTaskSettings(), elementsLeft: IndexedSeq[String] = IndexedSeq(), elementsRight: IndexedSeq[String] = IndexedSeq(), answers: IndexedSeq[Match] = IndexedSeq(), randomizeChoices: Boolean = true, createdAt: DateTime = new DateTime, updatedAt: DateTime = new DateTime) extends Task with Product with Serializable

A matching task is one in which the student is presented with two lists of elements and is asked to match elements from one list with their corresponding element in the other.

id

The task's UUID.

partId

The Part to which this task belongs.

position

The order in the part in which this task falls.

version

The version of the task entity, for offline locking. Default = 0.

settings

An object containing common settings for tasks.

elementsLeft

The left list of elements.

elementsRight

The right list of elements.

answers

The answers as a vector of Int -> Int tuples. Note that not every element needs to be accounted for in the answers.

randomizeChoices

Whether the choices should be presented randomly, or in the order in which they are defined.

createdAt

When the entity was created. Default = None.

updatedAt

When the entity was last updated. Default = None.

Linear Supertypes
Serializable, Serializable, Product, Equals, Task, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MatchingTask
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Task
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatchingTask(id: UUID = UUID.random, partId: UUID, position: Int, version: Long = 1L, settings: CommonTaskSettings = CommonTaskSettings(), elementsLeft: IndexedSeq[String] = IndexedSeq(), elementsRight: IndexedSeq[String] = IndexedSeq(), answers: IndexedSeq[Match] = IndexedSeq(), randomizeChoices: Boolean = true, createdAt: DateTime = new DateTime, updatedAt: DateTime = new DateTime)

    id

    The task's UUID.

    partId

    The Part to which this task belongs.

    position

    The order in the part in which this task falls.

    version

    The version of the task entity, for offline locking. Default = 0.

    settings

    An object containing common settings for tasks.

    elementsLeft

    The left list of elements.

    elementsRight

    The right list of elements.

    answers

    The answers as a vector of Int -> Int tuples. Note that not every element needs to be accounted for in the answers.

    randomizeChoices

    Whether the choices should be presented randomly, or in the order in which they are defined.

    createdAt

    When the entity was created. Default = None.

    updatedAt

    When the entity was last updated. Default = None.

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 answers: IndexedSeq[Match]

    The answers as a vector of Int -> Int tuples.

    The answers as a vector of Int -> Int tuples. Note that not every element needs to be accounted for in the answers.

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val createdAt: DateTime

    When the entity was created.

    When the entity was created. Default = None.

    Definition Classes
    MatchingTaskTask
  8. val elementsLeft: IndexedSeq[String]

    The left list of elements.

  9. val elementsRight: IndexedSeq[String]

    The right list of elements.

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

    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean

    Definition Classes
    MatchingTask → Equals → AnyRef → Any
  12. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  14. val id: UUID

    The task's UUID.

    The task's UUID.

    Definition Classes
    MatchingTaskTask
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  19. val partId: UUID

    The Part to which this task belongs.

    The Part to which this task belongs.

    Definition Classes
    MatchingTaskTask
  20. val position: Int

    The order in the part in which this task falls.

    The order in the part in which this task falls.

    Definition Classes
    MatchingTaskTask
  21. val randomizeChoices: Boolean

    Whether the choices should be presented randomly, or in the order in which they are defined.

  22. val settings: CommonTaskSettings

    An object containing common settings for tasks.

    An object containing common settings for tasks.

    Definition Classes
    MatchingTaskTask
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. val taskType: Int

    Which type of task this is.

    Which type of task this is. Hard-coded value per class!

    Definition Classes
    MatchingTaskTask
  25. val updatedAt: DateTime

    When the entity was last updated.

    When the entity was last updated. Default = None.

    Definition Classes
    MatchingTaskTask
  26. val version: Long

    The version of the task entity, for offline locking.

    The version of the task entity, for offline locking. Default = 0.

    Definition Classes
    MatchingTaskTask
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Task

Inherited from AnyRef

Inherited from Any

Ungrouped