<?xml version="1.0" encoding="utf-16"?>
<Connector id="duct_connector" Version="1">
  <!--Define all system types-->
  <SystemTypes>
    <SystemType id="exhaust">
      <Name Language="1033" Description="Exhaust System Type">Exhaust</Name>
    </SystemType>
    <SystemType id="return">
      <Name Language="1033" Description="Return System Type - For Systems where the Air flows into the System Equipment">Return</Name>
    </SystemType>
    <SystemType id="supply">
      <Name Language="1033" Description="Supply System Type - For Systems where the Air flows out of the System Equipment">Supply</Name>
    </SystemType>
    <SystemType id="undefined">
      <Name Language="1033" Description="Global System Type - For non-fitting content. Will inherit the System Type that is connected to it.">Undefined</Name>
    </SystemType>
    <SystemType id="other">
      <Name Language="1033" Description="Other System Type - For Systems where the System Type is Other.">Other</Name>
    </SystemType>
  </SystemTypes>
  
  <!--Define all group names-->
  <Groups>
    <Group id="mechanical">
      <Name Language="1033" Description="Mechanical Parameter Group">Mechanical</Name>
    </Group>
    <Group id="mechanical_airflow">
      <Name Language="1033" Description="Mechanical - Airflow Parameter Group">Mechanical - Airflow</Name>
    </Group>
    <Group id="dimensions">
      <Name Language="1033" Description="Dimensions Parameter Group">Dimensions</Name>
    </Group>
    <Group id="identity_data">
      <Name Language="1033" Description="">Identity Data</Name>
    </Group>
    <Group id="constraints">
      <Name Language="1033" Description="Constraints Parameter Group">Constraints</Name>
    </Group>
  </Groups>
  
  <!--Define all enums-->
  <Enums>
    <Enum id="loss_method_enum">
      <Item id="0">
        <Name Language="1033" Description="">None</Name>
      </Item>
      <Item id="1">
        <Name Language="1033" Description="">Coefficient</Name>
      </Item>
      <Item id="2">
        <Name Language="1033" Description="">Specific Loss</Name>
      </Item>
    </Enum>
    <Enum id="flow_configuration_enum">
      <Item id="0">
        <Name Language="1033" Description="">Calculated</Name>
      </Item>
      <Item id="1">
        <Name Language="1033" Description="">Preset</Name>
      </Item>
      <Item id="2">
        <Name Language="1033" Description="">System</Name>
      </Item>
    </Enum>
    <Enum id="flow_direction_enum">
      <Item id="0">
        <Name Language="1033" Description="">In</Name>
      </Item>
      <Item id="1">
        <Name Language="1033" Description="">Out</Name>
      </Item>
    </Enum>
    <Enum id="shape_enum">
      <Item id="0">
        <Name Language="1033" Description="">Rectangular</Name>
      </Item>
      <Item id="1">
        <Name Language="1033" Description="">Round</Name>
      </Item>
      <Item id="2">
        <Name Language="1033" Description="">Oval</Name>
      </Item>
      <Item id="3">
        <Name Language="1033" Description="">Undefined</Name>
      </Item>
    </Enum>
    <Enum id="connection_type_enum">
      <Item id="0">
        <Name Language="1033" Description="">Banded</Name>
      </Item>
      <Item id="1">
        <Name Language="1033" Description="">Clipped</Name>
      </Item>
      <Item id="2">
        <Name Language="1033" Description="">Flange</Name>
      </Item>
      <Item id="3">
        <Name Language="1033" Description="">Mastic</Name>
      </Item>
      <Item id="4">
        <Name Language="1033" Description="">Overcollar</Name>
      </Item>
      <Item id="5">
        <Name Language="1033" Description="">Raw Edge</Name>
      </Item>
      <Item id="6">
        <Name Language="1033" Description="">Slip Drive</Name>
      </Item>
      <Item id="7">
        <Name Language="1033" Description="">Slip Joint</Name>
      </Item>
      <Item id="8">
        <Name Language="1033" Description="">Undefined</Name>
      </Item>
      <Item id="9">
        <Name Language="1033" Description="">Vanstone</Name>
      </Item>
    </Enum>
  </Enums>
  
  <!--Define all parameters-->
  <Parameters>
    <Parameter id="loss_method" Group="mechanical" Type="enum" Unit="" Default="0">
      <Name Language="1033" Description="This defines the logic that will be applied to determine the Pressure Drop through this particular connector.">Loss Method</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <UseEnum>loss_method_enum</UseEnum>
      <Dependency>
        <Parameters>
          <Parameter>loss_coefficient</Parameter>
          <Parameter>pressure_drop</Parameter>
        </Parameters>

        <Enum>
          <Item id="0"/>
          <Item id="1">
            <Parameter>loss_coefficient</Parameter>
          </Item>
          <Item id="2">
            <Parameter>pressure_drop</Parameter>
          </Item>
        </Enum>
      </Dependency>
    </Parameter>
    <Parameter id="loss_coefficient" Group="mechanical" Type="double" Unit="" Default="0">
      <Name Language="1033" Description="This defines the coefficient to be multiplied against the Flow defined on the Connector. The resulting product is the Pressure drop for the connector.">Loss Coefficient</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <Range low="0"/>
    </Parameter>
    <Parameter id="pressure_drop" Group="mechanical" Type="double" Unit="Water_Pressure_Drop" Default="0">
      <Name Language="1033" Description="This is the actual Pressure Drop value reported to the Application from the Connector.">Pressure Drop</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <Range low="0"/>
    </Parameter>
    <Parameter id="flow_configuration" Group="mechanical_airflow" Type="enum" Unit="" Default="1">
      <Name Language="1033" Description="This determines how flow is defined on the Connector.">Flow Configuration</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <UseEnum>flow_configuration_enum</UseEnum>
      <Dependency>
        <Parameters>
          <Parameter>flow</Parameter>
          <Parameter>flow_factor</Parameter>
        </Parameters>

        <Enum>
          <Item id="0"/>
          <Item id="1">
            <Parameter>flow</Parameter>
          </Item>
          <Item id="2">
            <Parameter>flow_factor</Parameter>
          </Item>
        </Enum>
      </Dependency>
    </Parameter>
    <Parameter id="flow" Group="mechanical_airflow" Type="double" Unit="Water_Flow" Default="">
      <Name Language="1033" Description="This defines the flow value for the connector.">Flow</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <Range low="0"/>
    </Parameter>
    <Parameter id="flow_factor" Group="mechanical_airflow" Type="double" Unit="" Default="">
      <Name Language="1033" Description="When the Flow Configuration parameter is set to System, this is the multiplier to determine the connector flow based on the overall connected System flow.">Flow Factor</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
    </Parameter>
    <Parameter id="flow_direction" Group="mechanical_airflow" Type="enum" Unit="" Default="">
      <Name Language="1033" Description="Defines the Flow Direction relative to the Normal Arrow on the connector. Out is in the direction of the arrow, In is the opposite direction.">Flow Direction</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <UseEnum>flow_direction_enum</UseEnum>
    </Parameter>
    <Parameter id="shape" Group="dimensions" Type="enum" Unit="" Default="">
      <Name Language="1033" Description="Defines the shape of the connector.">Shape</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <UseEnum>shape_enum</UseEnum>
      <Dependency>
        <Parameters>
          <Parameter>height</Parameter>
          <Parameter>width</Parameter>
          <Parameter>radius</Parameter>
        </Parameters>
        <Enum>
          <Item id="0">
            <Parameter>height</Parameter>
            <Parameter>width</Parameter>
          </Item>
          <Item id="1">
            <Parameter>radius</Parameter>
          </Item>
          <Item id="2">
            <Parameter>height</Parameter>
            <Parameter>width</Parameter>
          </Item>
        </Enum>
      </Dependency>
    </Parameter>
    <Parameter id="height" Group="dimensions" Type="double" Unit="length" Default="">
      <Name Language="1033" Description="">Height</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <Range low="0+"/>
    </Parameter>
    <Parameter id="width" Group="dimensions" Type="double" Unit="length" Default="">
      <Name Language="1033" Description="">Width</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <Range low="0+"/>
    </Parameter>
    <Parameter id="radius" Group="dimensions" Type="double" Unit="length" Default="">
      <Name Language="1033" Description="">Radius</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <Range low="0+"/>
    </Parameter>
    <Parameter id="description" Group="identity_data" Type="string" Unit="" Default="">
      <Name Language="1033" Description="">Description</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
    </Parameter>
    <Parameter id="connection_type" Group="mechanical" Type="enum" Unit="" Default="">
      <Name Language="1033" Description="">Connection Type</Name>
      <SystemTypes>
        <SystemType>exhaust</SystemType>
        <SystemType>return</SystemType>
        <SystemType>supply</SystemType>
        <SystemType>undefined</SystemType>
        <SystemType>other</SystemType>
      </SystemTypes>
      <UseEnum>connection_type_enum</UseEnum>
    </Parameter>
  </Parameters>
</Connector>
