/*-------------------------------------------------------------------------
 * 功能描述：Connector
 * 作者：xulisong
 * 创建时间： 2019/6/12 11:04:03
 * 版本号：v1.0
 *  -------------------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JBIM.Common;
using JBIM.Definition;

namespace JBIM.Component
{
    /// <summary>
    /// Connector信息
    /// </summary>
    [TypeDefiniton(TypeDefinition.Connector)]
    public class Connector:ComponentObject
    {
        public Connector()
        {
            ConnectedIds = new List<BimId>();
        }
        /// <summary>
        /// Connector所属专业域
        /// </summary>
        public string Domain { get; set; }
        /// <summary>
        /// 定位点
        /// </summary>
        public XYZ Origin { get; set; }
        /// <summary>
        /// 信息描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 是否连接
        /// </summary>
        public bool IsConnected { get; set; }
        /// <summary>
        /// Connector所属构件
        /// </summary>
        public BimId Owner { get; set; }
        /// <summary>
        /// Connector连接的connectorId
        /// </summary>
        public List<BimId> ConnectedIds { get;private set; }
        ///// <summary>
        ///// connector关联的系统实例
        ///// </summary>
        //public BimId MepSystem { get; set; }
        ///// <summary>
        ///// 关联系统类型名称
        ///// </summary>
        public string MepSystemTypeName { get; set; }
    }
}
