Free cookie consent management tool by TermsFeed Policy Generator

source: tags/3.3.3/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/IO/NML/ConnectionType.cs @ 5447

Last change on this file since 5447 was 2769, checked in by mkommend, 14 years ago

added unused files for netron (ticket #867)

File size: 3.8 KB
Line 
1
2    using System;
3    using System.Xml;
4    using System.Xml.Serialization;
5    using System.IO;
6   
7   
8namespace Netron.GraphLib.IO.NML {   
9   
10  /// <summary>
11  /// The XML wrappper of an edge or connection
12  /// </summary>
13    [XmlType(IncludeInSchema=true, TypeName="edge.type")]
14    [XmlRoot(ElementName="Connection", IsNullable=false, DataType="")]
15    public class ConnectionType {
16
17    #region Fields
18   
19    /// <summary>
20    /// the data collection
21    /// </summary>
22        private DataCollection mData = new DataCollection();
23    /// <summary>
24    /// the source
25    /// </summary>
26        private string mSource;
27    /// <summary>
28    /// the mUID
29    /// </summary>
30        private string mUID;
31    /// <summary>
32    /// the source-connector
33    /// </summary>
34        private string mSourcePort;
35    /// <summary>
36    /// the target-connector
37    /// </summary>
38        private string mTargetPort;   
39    /// <summary>
40    /// the target
41    /// </summary>
42        private string mTarget;
43    /// <summary>
44    /// the graph
45    /// </summary>
46        private GraphType mGraph;
47   
48    /// <summary>
49    /// the unique key to the shape to be instantiated
50    /// </summary>
51    private string mInstanceKey = string.Empty;
52    #endregion
53
54    #region Properties
55
56    /// <summary>
57    /// Gets or sets which key to use to instantiate the connection
58    /// </summary>
59    [XmlElement(ElementName="InstanceKey")]
60    public string InstanceKey
61    {
62      get{return mInstanceKey;}
63      set{mInstanceKey = value;}
64    }
65 
66        /// <summary>
67        /// Gets or sets the data collection
68        /// </summary>
69        [XmlElement(ElementName="property", Type=typeof(DataType))]
70        public virtual DataCollection Data {
71            get {
72                return this.mData;
73            }
74            set {
75                this.mData = value;
76            }
77        }
78    /// <summary>
79    /// Gets or sets the graph the connection belongs to
80    /// </summary>
81        [XmlElement(ElementName="graph")]
82        public virtual GraphType Graph {
83            get {
84                return this.mGraph;
85            }
86            set {
87                this.mGraph = value;
88            }
89        }
90    /// <summary>
91    /// Gets or sets the mUID
92    /// </summary>
93        [XmlElement(ElementName="UID")]
94        public virtual string ID {
95            get {
96                return this.mUID;
97            }
98            set {
99                this.mUID = value;
100            }
101        }       
102   
103    /// <summary>
104    /// Gets or sets the source
105    /// </summary>
106        [XmlElement(ElementName="source")]
107        public virtual string Source {
108            get {
109                return this.mSource;
110            }
111            set {
112                this.mSource = value;
113            }
114        }
115    /// <summary>
116    /// Gets or sets the target
117    /// </summary>
118        [XmlElement(ElementName="target")]
119        public virtual string Target {
120            get {
121                return this.mTarget;
122            }
123            set {
124                this.mTarget = value;
125            }
126        }
127    /// <summary>
128    /// Gets or sets the source-connector
129    /// </summary>
130        [XmlElement(ElementName="sourceport")]
131        public virtual string Sourceport {
132            get {
133                return this.mSourcePort;
134            }
135            set {
136                this.mSourcePort = value;
137            }
138        }
139        /// <summary>
140        /// Gets or sets the target-connector
141        /// </summary>
142        [XmlElement(ElementName="targetport")]
143        public virtual string Targetport {
144            get {
145                return this.mTargetPort;
146            }
147            set {
148                this.mTargetPort = value;
149            }
150        }
151    #endregion 
152   
153    }
154}
Note: See TracBrowser for help on using the repository browser.