Skip to content

Class: State

Defines the state of a trade at a point in the Trade’s life cycle. Trades have many state dimensions, all of which are represented here. For example, states useful for position keeping are represented alongside those needed for regulatory reporting.

URI: common_domain_model:State

 classDiagram
    class State
    click State href "../State/"
      State : closedState
        
          
    
        
        
        State --> "0..1" ClosedState : closedState
        click ClosedState href "../ClosedState/"
    

        
      State : positionState
        
          
    
        
        
        State --> "0..1" PositionStatusEnum : positionState
        click PositionStatusEnum href "../PositionStatusEnum/"
    

        
      
Name Cardinality and Range Description Inheritance
closedState 0..1
ClosedState
Represents the qualification of what led to the trade’s closure alongside the… direct
positionState 0..1
PositionStatusEnum
Identifies the state of the position, to distinguish if just executed, formed… direct
used by used in type used
CounterpartyPositionState state range State
TradeState state range State

Rule Applied Preconditions Postconditions Elseconditions
slot_conditions {'positionState': {'value_presence': 'PRESENT', 'equals_string': 'Closed'}} {'closedState': {'value_presence': 'PRESENT'}}
Mapping Type Mapped Value
self common_domain_model:State
native common_domain_model:State
name: State
description: Defines the state of a trade at a point in the Trade's life cycle. Trades
have many state dimensions, all of which are represented here. For example, states
useful for position keeping are represented alongside those needed for regulatory
reporting.
from_schema: https://w3id.org/lmodel/common-domain-model
attributes:
closedState:
name: closedState
description: Represents the qualification of what led to the trade's closure alongside
the dates on which this closure took effect.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_event_common
rank: 1000
domain_of:
- State
range: ClosedState
positionState:
name: positionState
description: Identifies the state of the position, to distinguish if just executed,
formed, already settled, closed, etc.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_event_common
rank: 1000
domain_of:
- State
range: PositionStatusEnum
rules:
- preconditions:
slot_conditions:
positionState:
name: positionState
value_presence: PRESENT
equals_string: Closed
postconditions:
slot_conditions:
closedState:
name: closedState
value_presence: PRESENT
description: 'ClosedStateExists: When the position state is identified as closed,
the closed state must also be specified.'
name: State
description: Defines the state of a trade at a point in the Trade's life cycle. Trades
have many state dimensions, all of which are represented here. For example, states
useful for position keeping are represented alongside those needed for regulatory
reporting.
from_schema: https://w3id.org/lmodel/common-domain-model
attributes:
closedState:
name: closedState
description: Represents the qualification of what led to the trade's closure alongside
the dates on which this closure took effect.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_event_common
rank: 1000
owner: State
domain_of:
- State
range: ClosedState
positionState:
name: positionState
description: Identifies the state of the position, to distinguish if just executed,
formed, already settled, closed, etc.
from_schema: https://w3id.org/lmodel/common-domain-model/cdm_event_common
rank: 1000
owner: State
domain_of:
- State
range: PositionStatusEnum
rules:
- preconditions:
slot_conditions:
positionState:
name: positionState
value_presence: PRESENT
equals_string: Closed
postconditions:
slot_conditions:
closedState:
name: closedState
value_presence: PRESENT
description: 'ClosedStateExists: When the position state is identified as closed,
the closed state must also be specified.'