---
- entityDefinitions:
  - IDC_CircuitBreaker: '{c3dad82b-5911-4aff-a45b-4bba246a7a93}'
  - IDA_CircuitBreakerIndex: '{28815737-b6ce-4686-9c45-7b2e4d04b622}'
  - IDA_CircuitBreakerCurrentRating: '{ecdcc1bd-d542-4a4d-b0df-5e491d97355d}'

  - IDR_Circuit_Breaker__has__Circuit_Breaker_Group: '{26b880d3-f045-4465-8a86-05546ba0e436}'
  - IDR_Circuit_Breaker_Group__for__Circuit_Breaker: '{ef88bbea-5bba-4dad-84e4-efaa173d008a}'
  
  - IDR_Circuit_Breaker__has__Circuit_Breaker_Phase: '{176ca7f3-6753-42ea-8e81-c8c5899b1f9f}'
  - IDR_Circuit_Breaker_Phase__for__Circuit_Breaker: '{ef88bbea-5bba-4dad-84e4-efaa173d008a}'
  
- library: '&IDL_MochaBaseSystem;'
  instances:
  - class: '&IDC_CircuitBreaker;'
    name: 'Circuit Breaker'
    customTagName: 'circuitBreaker'
    registerForTemplate: yes
    attributes:
    - instance: '&IDA_Name;'
      customTagName: 'name'
    - instance: '&IDA_NotInUse;'
      customTagName: 'notInUse'
    - instance: '&IDA_CircuitBreakerIndex;'
      customTagName: 'breakerIndex'
    - instance: '&IDA_CircuitBreakerCurrentRating;'
      customTagName: 'currentRating'
    relationships:
    - instance: '&IDR_Circuit_Breaker__has__Circuit_Breaker_Group;'
      customTagName: 'groupId'
    defaultTask: '&IDI_Task_CircuitBreaker_View;'
    relatedTasks:
    - instance: '&IDI_Task_CircuitBreaker_View;'
    - instance: '&IDI_Task_CircuitBreaker_Edit;'

  - numericAttribute: '&IDA_CircuitBreakerCurrentRating;'
    name: 'Current Rating'
    
  - numericAttribute: '&IDA_CircuitBreakerIndex;'
    name: 'Circuit Breaker Index'

  - relationship: '&IDR_Circuit_Breaker__has__Circuit_Breaker_Group;'
    sourceClassId: '&IDC_CircuitBreaker;'
    type: 'has'
    destinationClassId: '&IDC_CircuitBreakerGroup;'
    siblingRelationshipId: '&IDR_Circuit_Breaker_Group__for__Circuit_Breaker;'
    singular: no

  - relationship: '&IDR_Circuit_Breaker_Group__for__Circuit_Breaker;'
    sourceClassId: '&IDC_CircuitBreakerGroup;'
    type: 'for'
    destinationClassId: '&IDC_CircuitBreaker;'
    siblingRelationshipId: '&IDR_Circuit_Breaker__has__Circuit_Breaker_Group;'
    singular: no

  - relationship: '&IDR_Circuit_Breaker__has__Circuit_Breaker_Phase;'
    sourceClassId: '&IDC_CircuitBreaker;'
    type: 'has'
    destinationClassId: '&IDC_CircuitBreakerPhase;'
    siblingRelationshipId: '&IDR_Circuit_Breaker_Phase__for__Circuit_Breaker;'
    singular: yes

  - relationship: '&IDR_Circuit_Breaker_Phase__for__Circuit_Breaker;'
    sourceClassId: '&IDC_CircuitBreakerPhase;'
    type: 'for'
    destinationClassId: '&IDC_CircuitBreaker;'
    siblingRelationshipId: '&IDR_Circuit_Breaker__has__Circuit_Breaker_Phase;'
    singular: no