Packages

case class Domain(loc: At, id: Definitions.Identifier, options: Seq[Definitions.DomainOption] = Seq.empty[DomainOption], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], authorDefs: Seq[Author] = Seq.empty[Author], types: Seq[Type] = Seq.empty[Type], contexts: Seq[Context] = Seq.empty[Context], actors: Seq[Actor] = Seq.empty[Actor], stories: Seq[Story] = Seq.empty[Story], applications: Seq[Application] = Seq.empty[Application], domains: Seq[Domain] = Seq.empty[Domain], terms: Seq[Term] = Seq.empty[Term], includes: Seq[Include[DomainDefinition]] = Seq
.empty[Include[DomainDefinition]]
, brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)
extends VitalDefinition[DomainOption, DomainDefinition] with RootDefinition with WithTypes with DomainDefinition with Product with Serializable

The definition of a domain. Domains are the highest building block in RIDDL and may be nested inside each other to form a hierarchy of domains. Generally, domains follow hierarchical organization structure but other taxonomies and ontologies may be modelled with domains too.

loc

The location of the domain definition

id

The name of the domain

options

Options for the domain

types

Type definitions with a domain (nearly global) scope, with applicability to many contexts or subdomains

contexts

The contexts defined in the scope of the domain

actors

Actor definitions for use in stories

stories

Story definitions for this domain

applications

Application definitions for this domain

domains

Nested sub-domains within this domain

terms

Definition of terms pertaining to this domain that provide explanation of concepts from the domain.

brief

A brief description (one sentence) for use in documentation

description

An optional description of the domain.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Domain
  2. Serializable
  3. Product
  4. Equals
  5. DomainDefinition
  6. WithTypes
  7. RootDefinition
  8. VitalDefinition
  9. WithTerms
  10. WithIncludes
  11. WithAuthors
  12. WithOptions
  13. Definition
  14. Container
  15. BrieflyDescribedValue
  16. DescribedValue
  17. RiddlValue
  18. RiddlNode
  19. AnyRef
  20. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Domain(loc: At, id: Definitions.Identifier, options: Seq[Definitions.DomainOption] = Seq.empty[DomainOption], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], authorDefs: Seq[Author] = Seq.empty[Author], types: Seq[Type] = Seq.empty[Type], contexts: Seq[Context] = Seq.empty[Context], actors: Seq[Actor] = Seq.empty[Actor], stories: Seq[Story] = Seq.empty[Story], applications: Seq[Application] = Seq.empty[Application], domains: Seq[Domain] = Seq.empty[Domain], terms: Seq[Term] = Seq.empty[Term], includes: Seq[Include[DomainDefinition]] = Seq
    .empty[Include[DomainDefinition]]
    , brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)

    loc

    The location of the domain definition

    id

    The name of the domain

    options

    Options for the domain

    types

    Type definitions with a domain (nearly global) scope, with applicability to many contexts or subdomains

    contexts

    The contexts defined in the scope of the domain

    actors

    Actor definitions for use in stories

    stories

    Story definitions for this domain

    applications

    Application definitions for this domain

    domains

    Nested sub-domains within this domain

    terms

    Definition of terms pertaining to this domain that provide explanation of concepts from the domain.

    brief

    A brief description (one sentence) for use in documentation

    description

    An optional description of the domain.

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 actors: Seq[Actor]
  5. val applications: Seq[Application]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val authorDefs: Seq[Author]
  8. val authors: Seq[AuthorRef]
    Definition Classes
    DomainWithAuthors
  9. implicit def bool2int(b: Boolean): Int

    Implicit conversion of boolean to Int for easier computation of statistics below

    Implicit conversion of boolean to Int for easier computation of statistics below

    b

    The boolean to convert to an Int

    Definition Classes
    VitalDefinition
  10. val brief: Option[Definitions.LiteralString]
    Definition Classes
    DomainBrieflyDescribedValue
  11. def briefValue: String
    Definition Classes
    BrieflyDescribedValue
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  13. def completeness: (Int, Int)

    Compute the completeness of this definition.

    Compute the completeness of this definition. Vital definitions should have options, terms, and authors but includes are optional. Incompleteness is signalled by child definitions that are empty.

    returns

    A numerator and denominator for percent complete

    Definition Classes
    VitalDefinition
  14. lazy val contents: Seq[DomainDefinition]
    Definition Classes
    DomainWithIncludesContainer
  15. val contexts: Seq[Context]
  16. val description: Option[Definitions.Description]
    Definition Classes
    DomainDescribedValue
  17. def descriptionValue: String
    Definition Classes
    DescribedValue
  18. val domains: Seq[Domain]
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def find(name: String): Option[Definitions.Definition]
    Definition Classes
    Definition
  21. def format: String

    Format the node to a string

    Format the node to a string

    Definition Classes
    WithOptionsRiddlNode
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. def getOptionValue[OPT <: Definitions.DomainOption](implicit arg0: ClassTag[OPT]): Option[Seq[Definitions.LiteralString]]
    Definition Classes
    WithOptions
  24. def hasAuthors: Boolean
    Definition Classes
    WithAuthorsDefinition
  25. def hasOption[OPT <: Definitions.DomainOption](implicit arg0: ClassTag[OPT]): Boolean
    Definition Classes
    WithOptions
  26. def hasOptions: Boolean
    Definition Classes
    WithOptionsDefinition
  27. def hasTerms: Boolean
    Definition Classes
    WithTerms
  28. def hasTypes: Boolean
    Definition Classes
    WithTypesDefinition
  29. val id: Definitions.Identifier
    Definition Classes
    DomainDefinition
  30. def identify: String
    Definition Classes
    Definition
  31. def identifyWithLoc: String
    Definition Classes
    Definition
  32. val includes: Seq[Include[DomainDefinition]]
    Definition Classes
    DomainWithIncludes
  33. def isContainer: Boolean

    Determine if this node is a container or not

    Determine if this node is a container or not

    Definition Classes
    ContainerRiddlNode
  34. def isEmpty: Boolean

    determine if this node is empty or not.

    determine if this node is empty or not. Non-containers are always empty

    Definition Classes
    WithOptionsContainerRiddlNode
  35. def isImplicit: Boolean
    Definition Classes
    Definition
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def isRootContainer: Boolean
    Definition Classes
    Container
  38. def isVital: Boolean
    Definition Classes
    VitalDefinitionDefinition
  39. final val kind: String
    Definition Classes
    DomainDefinition
  40. val loc: At

    The location in the parse at which this RiddlValue occurs

    The location in the parse at which this RiddlValue occurs

    Definition Classes
    DomainRiddlValue
  41. def maturity: Int

    Compute the 'maturity' of a definition.

    Compute the 'maturity' of a definition. Maturity is a score with no maximum but with scoring rules that target 100 points per definition. Maturity is broken down this way:

    • has a description - up to 50 points depending on # of non empty lines
    • has a brief description - 5 points
    • has options specified - 5 points
    • has terms defined -
    • has an author in or above the definition - 5 points \-
    • definition specific things: 0.65
    Definition Classes
    DomainVitalDefinition
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def nonEmpty: Boolean
    Definition Classes
    RiddlNode
    Annotations
    @deprecatedOverriding()
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  46. val options: Seq[Definitions.DomainOption]
    Definition Classes
    DomainWithOptions
  47. def productElementNames: Iterator[String]
    Definition Classes
    Product
  48. val stories: Seq[Story]
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. val terms: Seq[Term]
    Definition Classes
    DomainWithTerms
  51. val types: Seq[Type]
    Definition Classes
    DomainWithTypes
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  54. 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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DomainDefinition

Inherited from WithTypes

Inherited from RootDefinition

Inherited from WithTerms

Inherited from WithAuthors

Inherited from Definitions.Definition

Inherited from Definitions.RiddlValue

Inherited from Definitions.RiddlNode

Inherited from AnyRef

Inherited from Any

Ungrouped