hytos / DTI_PID / SPPIDConverter / BaseModel / Symbol.cs @ a0c69b1c
이력 | 보기 | 이력해설 | 다운로드 (3.23 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace Converter.BaseModel |
8 |
{ |
9 |
public class Symbol |
10 |
{ |
11 |
private string _UID; |
12 |
private string _DBUID; |
13 |
private string _NAME; |
14 |
private List<Association> _ASSOCIATIONS = new List<Association>(); |
15 |
private string _TYPE; |
16 |
private string _OWNER; |
17 |
private string _ORIGINALPOINT; |
18 |
private List<Connector> _CONNECTOR = new List<Connector>(); |
19 |
private string _CONNECTIONPOINT; |
20 |
private string _LOCATION; |
21 |
private string _SIZE; |
22 |
private double _ANGLE; |
23 |
private string _PARENT; |
24 |
private string _CHILD; |
25 |
private string _HASINSTRUMENTLABEL; |
26 |
private string _AREA; |
27 |
private int _FLIP; |
28 |
private List<Property> _PROPERTIES = new List<Property>(); |
29 |
private List<Attribute> _ATTRIBUTES = new List<Attribute>(); |
30 |
private int _CURRENTPOINTMODEINDEX; |
31 |
private List<ChildSymbol> _ChildSymbols = new List<ChildSymbol>(); |
32 |
private SPPIDSymbolInfo _SPPID; |
33 |
|
34 |
public string UID { get => _UID; set => _UID = value; } |
35 |
public string NAME { get => _NAME; set => _NAME = value; } |
36 |
public List<Association> ASSOCIATIONS { get => _ASSOCIATIONS; set => _ASSOCIATIONS = value; } |
37 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
38 |
public string OWNER { get => _OWNER; set => _OWNER = value; } |
39 |
public string ORIGINALPOINT { get => _ORIGINALPOINT; set => _ORIGINALPOINT = value; } |
40 |
public List<Connector> CONNECTORS { get => _CONNECTOR; set => _CONNECTOR = value; } |
41 |
public string CONNECTIONPOINT { get => _CONNECTIONPOINT; set => _CONNECTIONPOINT = value; } |
42 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
43 |
public string SIZE { get => _SIZE; set => _SIZE = value; } |
44 |
public double ANGLE |
45 |
{ |
46 |
get |
47 |
{ |
48 |
return _ANGLE; |
49 |
} |
50 |
set |
51 |
{ |
52 |
if (value == 1.57) |
53 |
value = 90 * Math.PI / 180; |
54 |
else if (value == 3.14) |
55 |
value = Math.PI; |
56 |
else if (value == 4.71) |
57 |
value = 270 * Math.PI / 180; |
58 |
|
59 |
_ANGLE = value; |
60 |
} |
61 |
} |
62 |
public string PARENT { get => _PARENT; set => _PARENT = value; } |
63 |
public string CHILD { get => _CHILD; set => _CHILD = value; } |
64 |
public string HASINSTRUMENTLABEL { get => _HASINSTRUMENTLABEL; set => _HASINSTRUMENTLABEL = value; } |
65 |
public string AREA { get => _AREA; set => _AREA = value; } |
66 |
public int FLIP { get => _FLIP; set => _FLIP = value; } |
67 |
public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; } |
68 |
public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; } |
69 |
public int CURRENTPOINTMODEINDEX { get => _CURRENTPOINTMODEINDEX; set => _CURRENTPOINTMODEINDEX = value; } |
70 |
public List<ChildSymbol> ChildSymbols { get => _ChildSymbols; set => _ChildSymbols = value; } |
71 |
public string DBUID { get => _DBUID; set => _DBUID = value; } |
72 |
public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; } |
73 |
} |
74 |
} |