tangxu
2024-03-25 65906e7cfa055cf630f8e9e19cc3c349fd5f131d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
namespace IStation.Model
{
    /// <summary>
    /// 
    /// </summary>
    public partial class SignalType
    {
 
 
        /// <summary>
        /// 获取格式参数
        /// </summary>
        public object GetFormatParas()
        {
            object obj = null;
            switch (this.FormatType)
            {
                case eFormatType.Numeric: obj = GetNumericFormatParas(); break;
                case eFormatType.Enum: obj = GetEnumFormatParas(); break;
                case eFormatType.Array: obj = GetArrayFormatParas(); break;
                case eFormatType.Integration: obj = GetIntegrationFormatParas(); break;
                case eFormatType.Text: obj = GetTextFormatParas(); break;
                case eFormatType.Curve: obj = GetCurveFormatParas(); break;
                default: break;
            }
            return obj;
        }
 
        /// <summary>
        /// 获取数值格式参数
        /// </summary>
        public NumericFormatParas GetNumericFormatParas()
        {
            return NumericFormatParas.ToModel(this.FormatParas);
        }
 
        /// <summary>
        /// 获取枚举格式参数
        /// </summary>
        public EnumFormatParas GetEnumFormatParas()
        {
            return EnumFormatParas.ToModel(this.FormatParas);
        }
 
        /// <summary>
        /// 获取集合格式参数
        /// </summary>
        public ArrayFormatParas GetArrayFormatParas()
        {
            return ArrayFormatParas.ToModel(this.FormatParas);
        }
 
        /// <summary>
        /// 获取集成格式参数
        /// </summary>
        public IntegrationFormatParas GetIntegrationFormatParas()
        {
            return IntegrationFormatParas.ToModel(this.FormatParas);
        }
 
        /// <summary>
        /// 获取文本格式参数
        /// </summary>
        public TextFormatParas GetTextFormatParas()
        {
            return TextFormatParas.ToModel(this.FormatParas);
        }
 
        /// <summary>
        /// 获取图谱格式参数
        /// </summary>
        public CurveFormatParas GetCurveFormatParas()
        {
            return CurveFormatParas.ToModel(this.FormatParas);
        }
 
 
 
    }
}