/*
 * ********************************************************************************************************************
 *
 *                      :*$@@%$*:                         ;:                ;;    ;;
 *                    :@@%!  :!@@%:                       %!             ;%%@@%$ =@@@@@@@%;     @%@@@%%%%@@@@@
 *                   :@%;       :$=                       %%$$$%$$         ;$$  ;$@=   !@$
 *                   =@!                                  %!              @ $=;%   !@@@%:      !$$$$$$$$$$$$$$=
 *                   =@*                                  %!              @ $= % %@=   =%@!      %=
 *              *$%%! @@=        ;=$%%%$*:                %!              @ $= % =%%%%%%@$      *%:         =%
 *            %@@!:    !@@@%=$@@@@%!  :*@@$:              %!              @ $= % $*     ;@      @*          :%*
 *          ;@@!          ;!!!;:         ;@%:      =======@%========*     @ $$ % $%*****$@     :@$=*********=@$
 *          $@*   ;@@@%=!:                *@*
 *          =@$    ;;;!=%@@@@=!           =@!
 *           %@$:      =@%: :*@@@*       %@=                    Copyright (c) 2016-2019.  北京上格云技术有限公司
 *            ;%@@$=$@@%*       *@@@$=%@@%;
 *               ::;::             ::;::                                              All rights reserved.
 *
 * ********************************************************************************************************************
 */


package com.persagy.revit.models.entities

import com.persagy.revit.models.jsonAnalyzer.Location
import com.persagy.revit.models.jsonAnalyzer.Parameter
import com.persagy.revit.models.jsonAnalyzer.Point
import com.alibaba.fastjson.annotation.JSONField
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import io.swagger.v3.oas.annotations.media.Schema
import javax.persistence.Column
import javax.persistence.Table

/**
 *风管
 *
 * @author jxing
 */
@Schema(description = "风管")
@Table(name = "revit.duct")
@JsonIgnoreProperties(ignoreUnknown = true)
class Duct : BaseComponent(){
    /** 名称 */
   @Schema(description = "名称")
    @Column(name = "name")
    @JSONField(name = "Name")
    @JsonProperty("Name")
    var name: String? = null

    /** 定位点 */
   @Schema(description = "定位点")
    @Column(name = "location")
    @JSONField(name = "Location")
    @JsonProperty("Location")
    var location: Location? = null

    /** 轮廓路径 */
   @Schema(description = "轮廓路径")
    @Column(name = "outline")
    @JSONField(name = "OutLine")
    @JsonProperty("OutLine")
    var outline: ArrayList<ArrayList<Point>>? = null

    /** 所连接的连接件id */
   @Schema(description = "所连接的连接件id")
    @Column(name = "connected_ids")
    @JSONField(name = "ConnectedIds")
    @JsonProperty("ConnectedIds")
    var connectedIds: ArrayList<String>? = null

    /** 管道系统类型名称 */
   @Schema(description = "管道系统类型名称")
    @Column(name = "mep_system_type")
    @JSONField(name = "MepSystemTypeName")
    @JsonProperty("MepSystemTypeName")
    var mepSystemType: String? = null

    /** 形状 Circle|Rectangle|Ellipse */
   @Schema(description = "形状 Circle|Rectangle|Ellipse")
    @Column(name = "shape")
    @JSONField(name = "Shape")
    @JsonProperty("Shape")
    var shape: String? = null

    /** 直径；当形状为Circle时有效 */
   @Schema(description = "直径；当形状为Circle时有效")
    @Column(name = "diameter")
    @JSONField(name = "Diameter")
    @JsonProperty("Diameter")
    var diameter: Double? = null

    /** 宽度 当形状为Rectangle或者Ellipse */
   @Schema(description = "宽度 当形状为Rectangle或者Ellipse")
    @Column(name = "width")
    @JSONField(name = "Width")
    @JsonProperty("Width")
    var width: Double? = null

    /** 高度 当形状为Rectangle或者Ellipse */
   @Schema(description = "高度 当形状为Rectangle或者Ellipse")
    @Column(name = "height")
    @JSONField(name = "Height")
    @JsonProperty("Height")
    var height: Double? = null

    /** 参数列表 */
   @Schema(description = "参数列表")
    @Column(name = "parameters")
    @JSONField(name = "Parameters")
    @JsonProperty("Parameters")
    var parameters: ArrayList<Parameter>? = null
}
