ca.shiftfocus.krispii.core.models

tasks

package tasks

Visibility
  1. Public
  2. All

Type Members

  1. case class CommonTaskSettings(dependencyId: Option[UUID] = None, title: String = "", description: String = "", notesAllowed: Boolean = true, notesTitle: Option[String] = None, responseTitle: Option[String] = None) extends Product with Serializable

  2. case class LongAnswerTask(id: UUID = UUID.random, partId: UUID, position: Int, version: Long = 1L, settings: CommonTaskSettings = CommonTaskSettings(), createdAt: DateTime = new DateTime, updatedAt: DateTime = new DateTime) extends Task with Product with Serializable

    A long answer task is one in which the student is expected to write more than a few words in response.

    A long answer task is one in which the student is expected to write more than a few words in response. This task type gives them free reign to enter as much text as they desire.

    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.

    settings

    An object containing common settings for tasks.

    createdAt

    When the entity was created.

    updatedAt

    When the entity was last updated.

  3. 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.

    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.

  4. 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.

    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.

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

    An ordering task is one for which the student must place a given set of elements in the correct sequence, or order.

    An ordering task is one for which the student must place a given set of elements in the correct sequence, or order.

    id
    partId
    position
    version
    settings
    elements
    answers
    randomizeChoices
    createdAt
    updatedAt

  6. case class ShortAnswerTask(id: UUID = UUID.random, partId: UUID, position: Int, version: Long = 1L, settings: CommonTaskSettings = CommonTaskSettings(), maxLength: Int = 50, createdAt: DateTime = new DateTime, updatedAt: DateTime = new DateTime) extends Task with Product with Serializable

    A short answer task is one for which the student is expected to write only a couple words.

    A short answer task is one for which the student is expected to write only a couple words.

    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.

    maxLength

    The maximum length of answer accepted, as a number of characters. Default = 50.

    createdAt

    When the entity was created. Default = None.

    updatedAt

    When the entity was last updated. Default = None.

  7. trait Task extends AnyRef

    The supertype for tasks.

    The supertype for tasks. A task is identified by its position within a part, which is in turn identifed by its position within a project.

Value Members

  1. object CommonTaskSettings extends Serializable

  2. object LongAnswerTask extends Serializable

  3. object MatchingTask extends Serializable

  4. object MultipleChoiceTask extends Serializable

  5. object OrderingTask extends Serializable

  6. object ShortAnswerTask extends Serializable

  7. object Task

Ungrouped