ca.shiftfocus.krispii.core.models.tasks

MultipleChoiceTask

Related Docs: object MultipleChoiceTask | package tasks

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

A multiple-choice task is one in which the student must select one or more from a list of possible answers.

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.

choices

A vector of possible choices a student can select from.

answers

A vector of indeces indicating which choices are "correct".

allowMultiple

Whether the student is allowed to select more than one answer.

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. MultipleChoiceTask
  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 MultipleChoiceTask(id: UUID = UUID.random, partId: UUID, position: Int, version: Long = 1L, settings: CommonTaskSettings = CommonTaskSettings(), choices: IndexedSeq[String] = IndexedSeq(), answers: IndexedSeq[Int] = IndexedSeq(), allowMultiple: Boolean = false, 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.

    choices

    A vector of possible choices a student can select from.

    answers

    A vector of indeces indicating which choices are "correct".

    allowMultiple

    Whether the student is allowed to select more than one answer.

    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 allowMultiple: Boolean

    Whether the student is allowed to select more than one answer.

  5. val answers: IndexedSeq[Int]

    A vector of indeces indicating which choices are "correct".

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val choices: IndexedSeq[String]

    A vector of possible choices a student can select from.

  8. def clone(): AnyRef

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

    When the entity was created.

    When the entity was created. Default = None.

    Definition Classes
    MultipleChoiceTaskTask
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    MultipleChoiceTask → 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
    MultipleChoiceTaskTask
  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
    MultipleChoiceTaskTask
  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
    MultipleChoiceTaskTask
  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
    MultipleChoiceTaskTask
  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
    MultipleChoiceTaskTask
  25. val updatedAt: DateTime

    When the entity was last updated.

    When the entity was last updated. Default = None.

    Definition Classes
    MultipleChoiceTaskTask
  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
    MultipleChoiceTaskTask
  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