Packages

case class Cow(animalId: Long, gender: AnimalGender, birthDate: LocalDate, animalEarTag: Option[String] = None, animalFarmName: Option[String] = None, animalFarmNumber: Option[Int] = None, geneticDamEarTag: Option[String] = None, geneticDamIdentifier: Option[Int] = None, sireEarTag: Option[String] = None, sireIdentifier: Option[Int] = None, animalLegalIdentifier: Option[String] = None, animalISORFIDStartingManufacturer: Option[String] = None, animalISORFIDStartingCountryCode: Option[String] = None, animalHerdBookName: Option[String] = None, animalUSDA: Option[String] = None, animalDHIA: Option[String] = None, recipientDamIdentifier: Option[Int] = None, breed: ListBuffer[BreedPart] = scala.collection.mutable.ListBuffer(new BreedPart("HOL", 0.99)), bornOnFarm: Option[Boolean] = None, timelineEvents: List[TimelineEvent[_ <: TimelineEventMetadata]] = Nil) extends Product with Serializable

A class to represent a Cow.

Specify at least an AnimalIdentifier, Gender, and BirthDate when creating a new Cow Every cow needs at least one event in their timeline.

animalId

The primary and unique animals's identifier within the entire herd in MmmooOgle. " It can be possible that animals in different datasources exist with different identifiers.

gender

The animal's gender (male/female), based upon ICAR Enumeration for sex of animal using species-independent English names. Includes neuter/cryptorchid variations.

birthDate

Day animal was born as recorded by the farmer, format YYYY-MM-DD, should not include time, may not coincide with true birthdate, example 2002-15-19

animalEarTag

The animal's ear tag number, which is official & unique in most but not all countries. European law dictates that every individual cow needs to be identified by an unique ‘official’ ear tag, in consequence, an identifier similar to the social security number has been created. In Europe every cow gets an unique number assigned after birth notification, this number is then used on the individual identification document and on the official ear tag (EG 911/2004 //EG1760/2000). The official ear tag remains linked to the animal for the rest of its life. This implies the use of the official ear tag as a reliable identifier. The official ear tag is unique (no two cows have the same number), is singular (no cow has two numbers), is total (every cow has one) and is stable (the same number always identifies the same cow) (Kent, 1991).

animalFarmName

The animal's name most commonly used on the farm, aka BarnName.

animalFarmNumber

The animal's number most commonly used on the farm (also called work number), for instance displayed on collar or as a burnmark, can be re-used over time on the farm.

geneticDamEarTag

The animal's dam ear tag number.

geneticDamIdentifier

The animal's dam identifier. (from the MmmooOgle system?).

sireEarTag

The animal's sire ear tag number.

sireIdentifier

The animal's sire identifier (from the MmmooOgle system?).

animalLegalIdentifier

In EU countries this will be the same as the AnimalEartag.

animalISORFIDStartingManufacturer

ISO RFID tag starting with manufacturer code.

animalISORFIDStartingCountryCode

ISO RFID tag starting with country code https://en.wikipedia.org/wiki/ISO_11784_%26_11785.

animalHerdBookName

A name given to the animal by an offcial herdbook.

animalUSDA

A number used by the US department of agriculture for animal identification https://www.aphis.usda.gov/aphis/ourfocus/animalhealth/nvap/NVAP-Reference-Guide/Animal-Identification/Animal-Identification.

animalDHIA

A number used by the US http://www.dhia.org.

recipientDamIdentifier

The animal's surrogate dam identifier, only applies when cow was born with the use of assisted reproductive technologies like in vitro embryo production or embryo transfer.

breed

The animal's breed expressed in a list of BreedPart. When UNKNOWN, the default is put as 99% HOL.

bornOnFarm

Boolean indicating if the animal was born on the herd linked to the herd identifier.

timelineEvents

List of all the events belonging to the cow, events must be part of the predifined events with the predefined metadata.

Source
Cow.scala
Version

2.0

To do

Add more functionality.

See also

See https:// for more information.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cow
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Cow(animalId: Long, gender: AnimalGender, birthDate: LocalDate, animalEarTag: Option[String] = None, animalFarmName: Option[String] = None, animalFarmNumber: Option[Int] = None, geneticDamEarTag: Option[String] = None, geneticDamIdentifier: Option[Int] = None, sireEarTag: Option[String] = None, sireIdentifier: Option[Int] = None, animalLegalIdentifier: Option[String] = None, animalISORFIDStartingManufacturer: Option[String] = None, animalISORFIDStartingCountryCode: Option[String] = None, animalHerdBookName: Option[String] = None, animalUSDA: Option[String] = None, animalDHIA: Option[String] = None, recipientDamIdentifier: Option[Int] = None, breed: ListBuffer[BreedPart] = scala.collection.mutable.ListBuffer(new BreedPart("HOL", 0.99)), bornOnFarm: Option[Boolean] = None, timelineEvents: List[TimelineEvent[_ <: TimelineEventMetadata]] = Nil)

    Create a new cow with an AnimalIdentifier, Gender, and BirthDate.

    Create a new cow with an AnimalIdentifier, Gender, and BirthDate.

    animalId

    The primary and unique animals's identifier within the entire herd in MmmooOgle. " It can be possible that animals in different datasources exist with different identifiers.

    gender

    The animal's gender (male/female), based upon ICAR Enumeration for sex of animal using species-independent English names. Includes neuter/cryptorchid variations.

    birthDate

    Day animal was born as recorded by the farmer, format YYYY-MM-DD, should not include time, may not coincide with true birthdate, example 2002-15-19

    animalEarTag

    The animal's ear tag number, which is official & unique in most but not all countries. European law dictates that every individual cow needs to be identified by an unique ‘official’ ear tag, in consequence, an identifier similar to the social security number has been created. In Europe every cow gets an unique number assigned after birth notification, this number is then used on the individual identification document and on the official ear tag (EG 911/2004 //EG1760/2000). The official ear tag remains linked to the animal for the rest of its life. This implies the use of the official ear tag as a reliable identifier. The official ear tag is unique (no two cows have the same number), is singular (no cow has two numbers), is total (every cow has one) and is stable (the same number always identifies the same cow) (Kent, 1991).

    animalFarmName

    The animal's name most commonly used on the farm, aka BarnName.

    animalFarmNumber

    The animal's number most commonly used on the farm (also called work number), for instance displayed on collar or as a burnmark, can be re-used over time on the farm.

    geneticDamEarTag

    The animal's dam ear tag number.

    geneticDamIdentifier

    The animal's dam identifier. (from the MmmooOgle system?).

    sireEarTag

    The animal's sire ear tag number.

    sireIdentifier

    The animal's sire identifier (from the MmmooOgle system?).

    animalLegalIdentifier

    In EU countries this will be the same as the AnimalEartag.

    animalISORFIDStartingManufacturer

    ISO RFID tag starting with manufacturer code.

    animalISORFIDStartingCountryCode

    ISO RFID tag starting with country code https://en.wikipedia.org/wiki/ISO_11784_%26_11785.

    animalHerdBookName

    A name given to the animal by an offcial herdbook.

    animalUSDA

    A number used by the US department of agriculture for animal identification https://www.aphis.usda.gov/aphis/ourfocus/animalhealth/nvap/NVAP-Reference-Guide/Animal-Identification/Animal-Identification.

    animalDHIA

    A number used by the US http://www.dhia.org.

    recipientDamIdentifier

    The animal's surrogate dam identifier, only applies when cow was born with the use of assisted reproductive technologies like in vitro embryo production or embryo transfer.

    breed

    The animal's breed expressed in a list of BreedPart. When UNKNOWN, the default is put as 99% HOL.

    bornOnFarm

    Boolean indicating if the animal was born on the herd linked to the herd identifier.

    timelineEvents

    List of all the events belonging to the cow, events must be part of the predifined events with the predefined 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. val animalDHIA: Option[String]
  5. val animalEarTag: Option[String]
  6. val animalFarmName: Option[String]
  7. val animalFarmNumber: Option[Int]
  8. val animalHerdBookName: Option[String]
  9. val animalISORFIDStartingCountryCode: Option[String]
  10. val animalISORFIDStartingManufacturer: Option[String]
  11. val animalId: Long
  12. val animalLegalIdentifier: Option[String]
  13. val animalUSDA: Option[String]
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. val birthDate: LocalDate
  16. val bornOnFarm: Option[Boolean]
  17. val breed: ListBuffer[BreedPart]
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. val gender: AnimalGender
  21. val geneticDamEarTag: Option[String]
  22. val geneticDamIdentifier: Option[Int]
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val recipientDamIdentifier: Option[Int]
  30. val sireEarTag: Option[String]
  31. val sireIdentifier: Option[Int]
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. val timelineEvents: List[TimelineEvent[_ <: TimelineEventMetadata]]
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped