o

com.bovianalytics.dcdm

TimelineEvent

object TimelineEvent

Source
TimelineEvent.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimelineEvent
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class BirthMetaData(calvingEaseType: Option[CalvingEaseType], parturitionBirthStatusType: Option[ParturitionBirthStatusType]) extends TimelineEventMetadata with Product with Serializable

    Birth event metadata.

    Birth event metadata.

    calvingEaseType

    Ease of being born of this cow based up ICAR enum.

    parturitionBirthStatusType

    The way this calf was born, based up ICAR enum.

  2. case class BreedingMetaData(bullIdentifier: Option[Long], bullEarTag: Option[String], bullName: Option[String], bullNumber: Option[Long], inseminationNumber: Option[Int], breedingType: Option[BreedingType], reproductionType: Option[Int], genderSorted: Option[GenderSorting]) extends TimelineEventMetadata with Product with Serializable

    Breeding event metadata.

    Breeding event metadata.

    bullIdentifier

    Identifier of the bull used for breeding from the MmmooOgle system

    bullEarTag

    Ear tag number of the bull

    bullName

    Official name of the bull

    bullNumber

    Number of the bull from the breeding organization or when the bull is at the farm; the farm number of the bull

    inseminationNumber

    Insemination attempt number

    breedingType

    Breeding type bases on ICAR enums

    reproductionType

    Reproduction type code, default is 1

    genderSorted

    Description of gender-sorted semen, based on ICAR enums

  3. case class CalvingMetaData(calvingEaseType: Option[CalvingEaseType], parturitionBirthStatusType: Option[ParturitionBirthStatusType]) extends TimelineEventMetadata with Product with Serializable

    Calving event metadata.

    Calving event metadata.

    calvingEaseType

    Ease of the birthing process, based on ICAR enum.

    parturitionBirthStatusType

    The way a calf was born, based on ICAR enum.

  4. sealed trait EventType extends AnyRef

    Sealed trait with all the event types to ensure only predefined and immutable events can be used.

  5. case class ExitMetaData(departureType: Option[DepartureType], departureReason: Option[DepartureReason]) extends TimelineEventMetadata with Product with Serializable

    Exit event metadata.

    Exit event metadata.

    departureType

    Enumeration for exit reason based on Fetrow et al., 2006.

    departureReason

    Reason for exit of the cow, based on ICAR enum.

  6. case class FeedIntakeMetaData(productId: Option[Int], productCategory: Option[String], feedDryMatterContentUniId: Option[Int], productName: Option[String], intakeProgrammedKg: Option[Float], intakeConsumedKg: Option[Float], feedIntakeSession: Option[Int], startTime: Option[LocalDateTime], endTime: Option[LocalDateTime]) extends TimelineEventMetadata with Product with Serializable

    Feed intake event metadata.

    Feed intake event metadata. Represents feed consumption of concentrates per eating session.

    productId

    ID of the feed product assigned by the farm.

    productCategory

    The category of feed (e.g., "Concentrate").

    feedDryMatterContentUniId

    ID for the dry matter content unit (e.g., "1").

    productName

    Name of the feed product (e.g., "VS 2 RB eiwit").

    intakeProgrammedKg

    Maximum intake allowed for that day or visit, in kg (e.g., 1.1).

    intakeConsumedKg

    Actual intake consumed for that day or visit, in kg (e.g., 0.56).

    feedIntakeSession

    The session number for eating on that day (e.g., 1 for the first session, 2 for the second).

    startTime

    Start time of feeding session (format: YYYY-MM-DD HH:MM:SS).

    endTime

    End time of feeding session (format: YYYY-MM-DD HH:MM:SS).

  7. case class MilkMeterYieldsMetaData(milkingYield: Option[Float], startTime: Option[LocalDateTime], endTime: Option[LocalDateTime], robotID: Option[Int], robotName: Option[String], failure: Option[Boolean], refusal: Option[Boolean], milkingSpeed: Option[Float], bodyWeight: Option[Int], milkingSession: Option[Int]) extends TimelineEventMetadata with Product with Serializable

    Milk meter yields event metadata.

    Milk meter yields event metadata. Represents milk production of a single milking session measured by a milk meter on a milk robot or in a milk parlour.

    milkingYield

    Amount of milk produced during the session, measured in kg (or liters).

    startTime

    Start time of milking session (format: YYYY-MM-DD HH:MM:SS).

    endTime

    End time of milking session (format: YYYY-MM-DD HH:MM:SS).

    robotID

    ID of the robot as attributed at the farm (example: 5).

    robotName

    Name of the robot (example: "Astronaut 102").

    failure

    Indicates if the robot encountered an error during the session (true/false).

    refusal

    Indicates if the cow refused milking or interrupted the system (true/false).

    milkingSpeed

    Average speed of milking during the session (kg/min).

    bodyWeight

    Body weight of the animal measured during the session, in kg.

    milkingSession

    The session number of milking on that day (1 for first session, 2 for second, etc.).

  8. case class MilkRecordingMetaData(lactosePercentage: Option[Float], fatPercentage: Option[Float], proteinPercentage: Option[Float], scc: Option[Int], milkingYield: Option[Float]) extends TimelineEventMetadata with Product with Serializable

    Milk recording event metadata.

    Milk recording event metadata.

    lactosePercentage

    Percentage of lactose in the milk, between 0 and 100.

    fatPercentage

    Percentage of fat in the milk, between 0 and 100.

    proteinPercentage

    Percentage of protein in the milk, between 0 and 100.

    scc

    Somatic Cell Count, an indicator of udder health.

    milkingYield

    Total daily milk yield in kilograms (or liters).

  9. case class TimelineEvent[T <: TimelineEventMetadata](eventType: EventType, eventDate: LocalDate, metadata: T) extends Product with Serializable

    A class to represent an event on the timeline of a cow.

    A class to represent an event on the timeline of a cow. Consists of a date, an event type, a map with metadata and (eventually also) a list with data quality issues. The metadata is different for each event type and should be matched automatically to ensure the correct metadata is assigned to each event.

    eventType

    Mandatory type of the event.

    eventDate

    Mandatory date of the event.

    metadata

    Event metadata, unique for each event type. By making TimelineEvent generic, the metadata type is strongly linked to the eventType. This ensures that if you specify an eventType, you can only provide the metadata type that corresponds to it. If an event does not have metadata, use case object noMetaData.

  10. sealed trait TimelineEventMetadata extends AnyRef

    Sealed trait representing different types of timeline event metadata.

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. object EventType
  20. case object NoMetadata extends TimelineEventMetadata with Product with Serializable

    object for when an event does not have any metadata

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped