Class: NonNegativeMeasure
Defines a concrete non-negative measure as a number associated to a unit. It extends Measure by requiring the value attribute to be non-negative. A measure may be unit-less so the unit attribute is still optional.
URI: common_domain_model:NonNegativeMeasure
classDiagram
class NonNegativeMeasure
click NonNegativeMeasure href "../NonNegativeMeasure/"
Measure <|-- NonNegativeMeasure
click Measure href "../Measure/"
NonNegativeMeasure : datedValue
NonNegativeMeasure --> "*" DatedValue : datedValue
click DatedValue href "../DatedValue/"
NonNegativeMeasure : unit
NonNegativeMeasure --> "0..1" UnitType : unit
click UnitType href "../UnitType/"
NonNegativeMeasure : value
Inheritance
Section titled “Inheritance”- Schedule
- MeasureBase
- Measure
- NonNegativeMeasure
- Measure
- MeasureBase
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| unit | 0..1 UnitType |
Qualifies the unit by which the amount is measured | MeasureBase |
| value | 1 NonNegativeNumber |
The value attribute must be present in a concrete measure and non-negative | Schedule |
| datedValue | * DatedValue |
The schedule of step date and value pairs must be absent | Schedule |
Expressions & Logic
All Of
Section titled “All Of”The class must satisfy all of:
- AnonymousClassExpression({ ‘description’: (’From Schedule. ValueExists: A schedule may be specified as a single value or ’ ’as a set of date-value pairs. Both attributes may be specified, in which ’ ‘case the single amount number is the initial value.’), ‘any_of’: [AnonymousClassExpression({ ‘slot_conditions’: {‘value’: SlotDefinition({‘name’: ‘value’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} }), AnonymousClassExpression({ ‘slot_conditions’: {‘datedValue’: SlotDefinition({‘name’: ‘datedValue’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} })] })
- AnonymousClassExpression({ ‘description’: (’From Measure. DatedValueIsAbsent: Work around to ensure datedValue is absent ’ ‘because the 0 cardinality is not adequately handled at the language level.’), ‘slot_conditions’: {‘datedValue’: SlotDefinition({‘name’: ‘datedValue’, ‘value_presence’: PresenceEnum(text=‘ABSENT’)})} })
Usages
Section titled “Usages”| used by | used in | type | used |
|---|---|---|---|
| NonNegativeQuantity | multiplier | range | NonNegativeMeasure |
| NonNegativeQuantitySchedule | multiplier | range | NonNegativeMeasure |
| Quantity | multiplier | range | NonNegativeMeasure |
| QuantitySchedule | multiplier | range | NonNegativeMeasure |
| Money | multiplier | range | NonNegativeMeasure |
Identifier and Mapping Information
Section titled “Identifier and Mapping Information”Schema Source
Section titled “Schema Source”- from schema: https://w3id.org/lmodel/common-domain-model
Mappings
Section titled “Mappings”| Mapping Type | Mapped Value |
|---|---|
| self | common_domain_model:NonNegativeMeasure |
| native | common_domain_model:NonNegativeMeasure |
LinkML Source
Section titled “LinkML Source”Direct
Section titled “Direct”name: NonNegativeMeasuredescription: Defines a concrete non-negative measure as a number associated to a unit. It extends Measure by requiring the value attribute to be non-negative. A measure may be unit-less so the unit attribute is still optional.from_schema: https://w3id.org/lmodel/common-domain-modelis_a: Measureslot_usage: value: name: value description: The value attribute must be present in a concrete measure and non-negative. range: NonNegativeNumber required: trueall_of:- description: 'From Schedule. ValueExists: A schedule may be specified as a single value or as a set of date-value pairs. Both attributes may be specified, in which case the single amount number is the initial value.' any_of: - slot_conditions: value: name: value value_presence: PRESENT - slot_conditions: datedValue: name: datedValue value_presence: PRESENT- description: 'From Measure. DatedValueIsAbsent: Work around to ensure datedValue is absent because the 0 cardinality is not adequately handled at the language level.' slot_conditions: datedValue: name: datedValue value_presence: ABSENTInduced
Section titled “Induced”name: NonNegativeMeasuredescription: Defines a concrete non-negative measure as a number associated to a unit. It extends Measure by requiring the value attribute to be non-negative. A measure may be unit-less so the unit attribute is still optional.from_schema: https://w3id.org/lmodel/common-domain-modelis_a: Measureslot_usage: value: name: value description: The value attribute must be present in a concrete measure and non-negative. range: NonNegativeNumber required: trueattributes: unit: name: unit description: Qualifies the unit by which the amount is measured. Optional because a measure may be unit-less (e.g. when representing a ratio between amounts in the same unit). from_schema: https://w3id.org/lmodel/common-domain-model rank: 1000 owner: NonNegativeMeasure domain_of: - MeasureBase range: UnitType value: name: value description: The value attribute must be present in a concrete measure and non-negative. from_schema: https://w3id.org/lmodel/common-domain-model owner: NonNegativeMeasure domain_of: - DatedValue - Schedule - Taxonomy - TaxonomyClassification - CodeValue - AccrualFactor - AdjustmentFactor - ClauseLibraryVariableSet - CSAMinimumTransferAmountVariableSet - CSAThresholdVariableSet - DisputeResolution - OtherEligibleAndPostedSupport range: NonNegativeNumber required: true datedValue: name: datedValue description: The schedule of step date and value pairs must be absent. from_schema: https://w3id.org/lmodel/common-domain-model rank: 1000 owner: NonNegativeMeasure domain_of: - Schedule range: DatedValue multivalued: trueall_of:- description: 'From Schedule. ValueExists: A schedule may be specified as a single value or as a set of date-value pairs. Both attributes may be specified, in which case the single amount number is the initial value.' any_of: - slot_conditions: value: name: value value_presence: PRESENT - slot_conditions: datedValue: name: datedValue value_presence: PRESENT- description: 'From Measure. DatedValueIsAbsent: Work around to ensure datedValue is absent because the 0 cardinality is not adequately handled at the language level.' slot_conditions: datedValue: name: datedValue value_presence: ABSENT