Packages

case class Herd(herdIdentifier: Long, name: Option[String], sourceId: Option[Long], dataProviderGuid: Option[String], street: Option[String], number: Option[String], registrationNumber: Option[String], zip: Option[String], city: Option[String], state: Option[String], country: Option[String], countryCode: Option[String], latitude: Option[Float], longitude: Option[Float], email: Option[String], mobilePhoneNumber: Option[String], telephoneNumber: Option[String], cows: List[Cow] = List.empty) extends Product with Serializable

Represents a herd; group of cattle at the same geospatial location, one farm can therefore have multiple herds depending on if they house cattle at multiple locations. herdIdentifier is mandatory to fill in

herdIdentifier

Unique identifier for the herd from the MMMooOgle system.

name

Name of the herd as given by the farmer.

sourceId

Unique identifier for the data source from the MMMooOgle system.

dataProviderGuid

Globally Unique Identifier for the data provider.

street

Street name of location herd.

number

House number of location herd.

registrationNumber

Registration number of the herd as provided by the government, e.g. UBN in the Netherlands.

zip

Zip code/postal code of location herd.

city

City name of location herd.

state

State name of location herd.

country

Country name of location herd.

countryCode

Alpha-2-code of ISO 3166-1 for the country, see https://en.wikipedia.org/wiki/ISO_3166-1.

latitude

A geographic coordinate that specifies the north-south position of the herd on the surface of the Earth.

longitude

A geographic coordinate that specifies the east-west position of the herd on the surface of the Earth.

email

Email address of the farmer.

mobilePhoneNumber

Mobile phone number of the farmer.

telephoneNumber

Telephone number of the farmer.

cows

List of all the cows that are in the herd

Source
Herd.scala
Version

1.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. Herd
  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 Herd(herdIdentifier: Long, name: Option[String], sourceId: Option[Long], dataProviderGuid: Option[String], street: Option[String], number: Option[String], registrationNumber: Option[String], zip: Option[String], city: Option[String], state: Option[String], country: Option[String], countryCode: Option[String], latitude: Option[Float], longitude: Option[Float], email: Option[String], mobilePhoneNumber: Option[String], telephoneNumber: Option[String], cows: List[Cow] = List.empty)

    Create a new herd with a herdIdentifier and an embedded list of cows.

    Create a new herd with a herdIdentifier and an embedded list of cows.

    herdIdentifier

    Unique identifier for the herd from the MMMooOgle system.

    name

    Name of the herd as given by the farmer.

    sourceId

    Unique identifier for the data source from the MMMooOgle system.

    dataProviderGuid

    Globally Unique Identifier for the data provider.

    street

    Street name of location herd.

    number

    House number of location herd.

    registrationNumber

    Registration number of the herd as provided by the government, e.g. UBN in the Netherlands.

    zip

    Zip code/postal code of location herd.

    city

    City name of location herd.

    state

    State name of location herd.

    country

    Country name of location herd.

    countryCode

    Alpha-2-code of ISO 3166-1 for the country, see https://en.wikipedia.org/wiki/ISO_3166-1.

    latitude

    A geographic coordinate that specifies the north-south position of the herd on the surface of the Earth.

    longitude

    A geographic coordinate that specifies the east-west position of the herd on the surface of the Earth.

    email

    Email address of the farmer.

    mobilePhoneNumber

    Mobile phone number of the farmer.

    telephoneNumber

    Telephone number of the farmer.

    cows

    List of all the cows that are in the herd

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. val city: Option[String]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. val country: Option[String]
  8. val countryCode: Option[String]
  9. val cows: List[Cow]
  10. val dataProviderGuid: Option[String]
  11. val email: Option[String]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. val herdIdentifier: Long
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val latitude: Option[Float]
  17. val longitude: Option[Float]
  18. val mobilePhoneNumber: Option[String]
  19. val name: Option[String]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. val number: Option[String]
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. val registrationNumber: Option[String]
  26. val sourceId: Option[Long]
  27. val state: Option[String]
  28. val street: Option[String]
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. val telephoneNumber: Option[String]
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. val zip: Option[String]

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