Skip to content

Class: WeightedAveragingObservation

A single weighted averaging observation.

URI: common_domain_model:WeightedAveragingObservation

 classDiagram
    class WeightedAveragingObservation
    click WeightedAveragingObservation href "../WeightedAveragingObservation/"
      WeightedAveragingObservation : dateTime
        
      WeightedAveragingObservation : observationNumber
        
      WeightedAveragingObservation : weight
        
      
Name Cardinality and Range Description Inheritance
dateTime 0..1
Datetime
Observation date time, which should be used when literal observation dates ar… direct
observationNumber 0..1
Integer
Observation number, which should be unique, within a series generated by a da… direct
weight 1
Decimal
Observation weight, which is used as a multiplier for the observation value direct
Expressions & Logic

The class must satisfy all of:

  • AnonymousClassExpression({ ‘description’: (’WeightedAveragingObservationChoice: Choice rule to represent an FpML choice ’ ’construct between date times for literal date values, and observation ’ ‘numbers for schedule generated observations.’), ‘exactly_one_of’: [AnonymousClassExpression({ ‘slot_conditions’: {‘dateTime’: SlotDefinition({‘name’: ‘dateTime’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} }), AnonymousClassExpression({ ‘slot_conditions’: {‘observationNumber’: SlotDefinition({‘name’: ‘observationNumber’, ‘value_presence’: PresenceEnum(text=‘PRESENT’)})} })] })
  • AnonymousClassExpression({ ‘description’: ‘PositiveWeight: FpML specifies observationNumber as a non-negative decimal.’, ‘slot_conditions’: {‘weight’: SlotDefinition({‘name’: ‘weight’, ‘minimum_value’: 0})} })
used by used in type used
AveragingObservationList averagingObservation range WeightedAveragingObservation

Rule Applied Preconditions Postconditions Elseconditions
slot_conditions {'observationNumber': {'value_presence': 'PRESENT'}} {'observationNumber': {'minimum_value': 0, 'value_presence': 'PRESENT'}}
Mapping Type Mapped Value
self common_domain_model:WeightedAveragingObservation
native common_domain_model:WeightedAveragingObservation
name: WeightedAveragingObservation
description: A single weighted averaging observation.
from_schema: https://w3id.org/lmodel/common-domain-model
attributes:
dateTime:
name: dateTime
description: Observation date time, which should be used when literal observation
dates are required. The CDM specifies that the zoned date time is to be expressed
in accordance with ISO 8601, either as UTC as an offset to UTC.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_product_common_schedule
domain_of:
- DateTimeList
- WeightedAveragingObservation
- AggregationParameters
- EventTimestamp
range: datetime
observationNumber:
name: observationNumber
description: Observation number, which should be unique, within a series generated
by a date schedule.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_product_common_schedule
rank: 1000
domain_of:
- WeightedAveragingObservation
range: integer
weight:
name: weight
description: Observation weight, which is used as a multiplier for the observation
value.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_product_common_schedule
domain_of:
- ObservationDate
- WeightedAveragingObservation
range: decimal
required: true
rules:
- preconditions:
slot_conditions:
observationNumber:
name: observationNumber
value_presence: PRESENT
postconditions:
slot_conditions:
observationNumber:
name: observationNumber
minimum_value: 0
value_presence: PRESENT
description: 'PositiveObservationNumber: FpML specifies observationNumber as a positive
integer.'
all_of:
- description: 'WeightedAveragingObservationChoice: Choice rule to represent an FpML
choice construct between date times for literal date values, and observation numbers
for schedule generated observations.'
exactly_one_of:
- slot_conditions:
dateTime:
name: dateTime
value_presence: PRESENT
- slot_conditions:
observationNumber:
name: observationNumber
value_presence: PRESENT
- description: 'PositiveWeight: FpML specifies observationNumber as a non-negative
decimal.'
slot_conditions:
weight:
name: weight
minimum_value: 0
name: WeightedAveragingObservation
description: A single weighted averaging observation.
from_schema: https://w3id.org/lmodel/common-domain-model
attributes:
dateTime:
name: dateTime
description: Observation date time, which should be used when literal observation
dates are required. The CDM specifies that the zoned date time is to be expressed
in accordance with ISO 8601, either as UTC as an offset to UTC.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_product_common_schedule
owner: WeightedAveragingObservation
domain_of:
- DateTimeList
- WeightedAveragingObservation
- AggregationParameters
- EventTimestamp
range: datetime
observationNumber:
name: observationNumber
description: Observation number, which should be unique, within a series generated
by a date schedule.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_product_common_schedule
rank: 1000
owner: WeightedAveragingObservation
domain_of:
- WeightedAveragingObservation
range: integer
weight:
name: weight
description: Observation weight, which is used as a multiplier for the observation
value.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_product_common_schedule
owner: WeightedAveragingObservation
domain_of:
- ObservationDate
- WeightedAveragingObservation
range: decimal
required: true
rules:
- preconditions:
slot_conditions:
observationNumber:
name: observationNumber
value_presence: PRESENT
postconditions:
slot_conditions:
observationNumber:
name: observationNumber
minimum_value: 0
value_presence: PRESENT
description: 'PositiveObservationNumber: FpML specifies observationNumber as a positive
integer.'
all_of:
- description: 'WeightedAveragingObservationChoice: Choice rule to represent an FpML
choice construct between date times for literal date values, and observation numbers
for schedule generated observations.'
exactly_one_of:
- slot_conditions:
dateTime:
name: dateTime
value_presence: PRESENT
- slot_conditions:
observationNumber:
name: observationNumber
value_presence: PRESENT
- description: 'PositiveWeight: FpML specifies observationNumber as a non-negative
decimal.'
slot_conditions:
weight:
name: weight
minimum_value: 0