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

package com.persagy.revit.models.entities


import com.alibaba.fastjson.annotation.JSONField
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import com.persagy.revit.models.jsonAnalyzer.Location
import com.persagy.revit.models.jsonAnalyzer.Parameter
import com.persagy.revit.models.jsonAnalyzer.Point
import io.swagger.v3.oas.annotations.media.Schema
import javax.persistence.Column
import javax.persistence.Id
import javax.persistence.Table
/**
 * 设备
 *
 * @author jxing
 */
@Schema(description = "设备")
@Table(name = "revit.equipment")
@JsonIgnoreProperties(ignoreUnknown = true)
class Equipment : BaseComponent(){

    /** 名称 */
   @Schema(description = "名称")
    @Column(name = "name")
    @JsonProperty("Name")
    var name: String? = null

    /** 补充信息 */
   @Schema(description = "补充信息")
    @Column(name = "tag")
    @JsonProperty("Tag")
    var tag: String? = null

    /** 本地编码 */
   @Schema(description = "本地编码")
    @Column(name = "local_id")
    var localId: String? = null

    /** 本地名称 */
   @Schema(description = "本地名称")
    @Column(name = "local_name")
    var localName: String? = null

    /** 4位部件类型编码 */
   @Schema(description = "4位部件类型编码")
    @Column(name = "family")
    @JSONField(name = "Family")
    @JsonProperty("Family")
    var family: String? = null

    /** 类型中文名称 */
   @Schema(description = "类型中文名称")
    @Column(name = "family_name")
    @JSONField(name = "FamilyName")
    @JsonProperty("FamilyName")
    var familyName: String? = null

    /** 族符号 */
   @Schema(description = "族符号")
    @Column(name = "family_symbol")
    @JSONField(name = "FamilySymbol")
    @JsonProperty("FamilySymbol")
    var familySymbol: String? = null

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

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

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

    /** 旋转角度 */
   @Schema(description = "旋转角度")
    @Column(name = "rotation")
    @JSONField(name = "Rotation")
    @JsonProperty("Rotation")
    var rotation: Double? = null

    /** 资产id */
   @Schema(description = "资产id")
    @Column(name = "property_id")
    @JsonProperty("PropertyId")
    @JSONField(name = "PropertyId")
    var propertyId: String? = null

    /** BIMID */
   @Schema(description = "BIMID")
    @Column(name = "bimid")
    @JSONField(name = "BimId")
    @JsonProperty("BimId")
    var bimId: String? = null


    /** 万达BIMTypeID */
   @Schema(description = "万达BIMTypeID")
    @Column(name = "bim_type_id")
    @JSONField(name = "BIMTypeID")
    @JsonProperty("BIMTypeID")
    var bimTypeID: String? = null


    /** 初始4位部件类型编码 */
   @Schema(description = "初始4位部件类型编码")
    @Column(name = "init_family")
    @JSONField(name = "InitFamily")
    @JsonProperty("InitFamily")
    var initFamily: String? = null

    /** 转换后的信息点 */
   @Schema(description = "转换后的信息点")
    @Column(name = "infos")
    var infos: Map<String,String>? = null
}