Free cookie consent management tool by TermsFeed Policy Generator

source: branches/SimulationCore/HeuristicLab.SimulationCore.Dsl/Dsl/GeneratedCode/Connectors.cs @ 10525

Last change on this file since 10525 was 10525, checked in by abeham, 10 years ago

#1610: added visual model

File size: 9.8 KB
Line 
1//------------------------------------------------------------------------------
2// <auto-generated>
3//     This code was generated by a tool.
4//
5//     Changes to this file may cause incorrect behavior and will be lost if
6//     the code is regenerated.
7// </auto-generated>
8//------------------------------------------------------------------------------
9
10using DslModeling = global::Microsoft.VisualStudio.Modeling;
11using DslDesign = global::Microsoft.VisualStudio.Modeling.Design;
12using DslDiagrams = global::Microsoft.VisualStudio.Modeling.Diagrams;
13
14namespace HeuristicLab.SimulationCore
15{
16  /// <summary>
17  /// DomainClass Trigger
18  /// Description for HeuristicLab.SimulationCore.Trigger
19  /// </summary>
20  [DslDesign::DisplayNameResource("HeuristicLab.SimulationCore.Trigger.DisplayName", typeof(global::HeuristicLab.SimulationCore.HLSimDomainModel), "HeuristicLab.SimulationCore.GeneratedCode.DomainModelResx")]
21  [DslDesign::DescriptionResource("HeuristicLab.SimulationCore.Trigger.Description", typeof(global::HeuristicLab.SimulationCore.HLSimDomainModel), "HeuristicLab.SimulationCore.GeneratedCode.DomainModelResx")]
22  [DslModeling::DomainModelOwner(typeof(global::HeuristicLab.SimulationCore.HLSimDomainModel))]
23  [global::System.CLSCompliant(true)]
24  [DslModeling::DomainObjectId("ff67e59a-021e-472d-8fdc-0298ee26fe8e")]
25  public partial class Trigger : DslDiagrams::BinaryLinkShape
26  {
27    #region DiagramElement boilerplate
28    private static DslDiagrams::StyleSet classStyleSet;
29    private static global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields;
30    private static global::System.Collections.Generic.IList<DslDiagrams::Decorator> decorators;
31   
32    /// <summary>
33    /// Per-class style set for this shape.
34    /// </summary>
35    protected override DslDiagrams::StyleSet ClassStyleSet
36    {
37      get
38      {
39        if (classStyleSet == null)
40        {
41          classStyleSet = CreateClassStyleSet();
42        }
43        return classStyleSet;
44      }
45    }
46   
47    /// <summary>
48    /// Per-class ShapeFields for this shape.
49    /// </summary>
50    public override global::System.Collections.Generic.IList<DslDiagrams::ShapeField> ShapeFields
51    {
52      get
53      {
54        if (shapeFields == null)
55        {
56          shapeFields = CreateShapeFields();
57        }
58        return shapeFields;
59      }
60    }
61   
62    /// <summary>
63    /// Event fired when decorator initialization is complete for this shape type.
64    /// </summary>
65    public static event global::System.EventHandler DecoratorsInitialized;
66   
67    /// <summary>
68    /// List containing decorators used by this type.
69    /// </summary>
70    public override global::System.Collections.Generic.IList<DslDiagrams::Decorator> Decorators
71    {
72      get
73      {
74        if(decorators == null)
75        {
76          decorators = CreateDecorators();
77         
78          // fire this event to allow the diagram to initialize decorator mappings for this shape type.
79          if(DecoratorsInitialized != null)
80          {
81            DecoratorsInitialized(this, global::System.EventArgs.Empty);
82          }
83        }
84       
85        return decorators;
86      }
87    }
88   
89    /// <summary>
90    /// Finds a decorator associated with Trigger.
91    /// </summary>
92    public static DslDiagrams::Decorator FindTriggerDecorator(string decoratorName)
93    {
94      if(decorators == null) return null;
95      return DslDiagrams::ShapeElement.FindDecorator(decorators, decoratorName);
96    }
97   
98    #endregion
99   
100    #region Connector styles
101    /// <summary>
102    /// Initializes resources associated with this connector instance.
103    /// </summary>
104    protected override void InitializeInstanceResources()
105    {
106      base.InitializeInstanceResources();
107      this.SetDecorators(null, new DslDiagrams::SizeD(0.1,0.1), DslDiagrams::LinkDecorator.DecoratorEmptyArrow, new DslDiagrams::SizeD(0.1,0.1), false);
108    }
109   
110    #endregion
111   
112    #region Constructors, domain class Id
113 
114    /// <summary>
115    /// Trigger domain class Id.
116    /// </summary>
117    public static readonly new global::System.Guid DomainClassId = new global::System.Guid(0xff67e59a, 0x021e, 0x472d, 0x8f, 0xdc, 0x02, 0x98, 0xee, 0x26, 0xfe, 0x8e);
118    /// <summary>
119    /// Constructor
120    /// </summary>
121    /// <param name="store">Store where new element is to be created.</param>
122    /// <param name="propertyAssignments">List of domain property id/value pairs to set once the element is created.</param>
123    public Trigger(DslModeling::Store store, params DslModeling::PropertyAssignment[] propertyAssignments)
124      : this(store != null ? store.DefaultPartitionForClass(DomainClassId) : null, propertyAssignments)
125    {
126    }
127   
128    /// <summary>
129    /// Constructor
130    /// </summary>
131    /// <param name="partition">Partition where new element is to be created.</param>
132    /// <param name="propertyAssignments">List of domain property id/value pairs to set once the element is created.</param>
133    public Trigger(DslModeling::Partition partition, params DslModeling::PropertyAssignment[] propertyAssignments)
134      : base(partition, propertyAssignments)
135    {
136    }
137    #endregion
138  }
139}
140namespace HeuristicLab.SimulationCore
141{
142  /// <summary>
143  /// DomainClass Listener
144  /// Description for HeuristicLab.SimulationCore.Listener
145  /// </summary>
146  [DslDesign::DisplayNameResource("HeuristicLab.SimulationCore.Listener.DisplayName", typeof(global::HeuristicLab.SimulationCore.HLSimDomainModel), "HeuristicLab.SimulationCore.GeneratedCode.DomainModelResx")]
147  [DslDesign::DescriptionResource("HeuristicLab.SimulationCore.Listener.Description", typeof(global::HeuristicLab.SimulationCore.HLSimDomainModel), "HeuristicLab.SimulationCore.GeneratedCode.DomainModelResx")]
148  [DslModeling::DomainModelOwner(typeof(global::HeuristicLab.SimulationCore.HLSimDomainModel))]
149  [global::System.CLSCompliant(true)]
150  [DslModeling::DomainObjectId("84ebcd29-fe73-4fa2-8e01-ce82534fb35c")]
151  public partial class Listener : DslDiagrams::BinaryLinkShape
152  {
153    #region DiagramElement boilerplate
154    private static DslDiagrams::StyleSet classStyleSet;
155    private static global::System.Collections.Generic.IList<DslDiagrams::ShapeField> shapeFields;
156    private static global::System.Collections.Generic.IList<DslDiagrams::Decorator> decorators;
157   
158    /// <summary>
159    /// Per-class style set for this shape.
160    /// </summary>
161    protected override DslDiagrams::StyleSet ClassStyleSet
162    {
163      get
164      {
165        if (classStyleSet == null)
166        {
167          classStyleSet = CreateClassStyleSet();
168        }
169        return classStyleSet;
170      }
171    }
172   
173    /// <summary>
174    /// Per-class ShapeFields for this shape.
175    /// </summary>
176    public override global::System.Collections.Generic.IList<DslDiagrams::ShapeField> ShapeFields
177    {
178      get
179      {
180        if (shapeFields == null)
181        {
182          shapeFields = CreateShapeFields();
183        }
184        return shapeFields;
185      }
186    }
187   
188    /// <summary>
189    /// Event fired when decorator initialization is complete for this shape type.
190    /// </summary>
191    public static event global::System.EventHandler DecoratorsInitialized;
192   
193    /// <summary>
194    /// List containing decorators used by this type.
195    /// </summary>
196    public override global::System.Collections.Generic.IList<DslDiagrams::Decorator> Decorators
197    {
198      get
199      {
200        if(decorators == null)
201        {
202          decorators = CreateDecorators();
203         
204          // fire this event to allow the diagram to initialize decorator mappings for this shape type.
205          if(DecoratorsInitialized != null)
206          {
207            DecoratorsInitialized(this, global::System.EventArgs.Empty);
208          }
209        }
210       
211        return decorators;
212      }
213    }
214   
215    /// <summary>
216    /// Finds a decorator associated with Listener.
217    /// </summary>
218    public static DslDiagrams::Decorator FindListenerDecorator(string decoratorName)
219    {
220      if(decorators == null) return null;
221      return DslDiagrams::ShapeElement.FindDecorator(decorators, decoratorName);
222    }
223   
224    #endregion
225   
226    #region Connector styles
227    /// <summary>
228    /// Initializes style set resources for this shape type
229    /// </summary>
230    /// <param name="classStyleSet">The style set for this shape class</param>
231    protected override void InitializeResources(DslDiagrams::StyleSet classStyleSet)
232    {
233      base.InitializeResources(classStyleSet);
234     
235      // Line pen settings for this connector.
236      DslDiagrams::PenSettings linePen = new DslDiagrams::PenSettings();
237      linePen.DashStyle = global::System.Drawing.Drawing2D.DashStyle.Dot;
238      classStyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, linePen);
239    }
240   
241    /// <summary>
242    /// Initializes resources associated with this connector instance.
243    /// </summary>
244    protected override void InitializeInstanceResources()
245    {
246      base.InitializeInstanceResources();
247      this.SetDecorators(null, new DslDiagrams::SizeD(0.1,0.1), DslDiagrams::LinkDecorator.DecoratorEmptyArrow, new DslDiagrams::SizeD(0.1,0.1), false);
248    }
249   
250    #endregion
251   
252    #region Constructors, domain class Id
253 
254    /// <summary>
255    /// Listener domain class Id.
256    /// </summary>
257    public static readonly new global::System.Guid DomainClassId = new global::System.Guid(0x84ebcd29, 0xfe73, 0x4fa2, 0x8e, 0x01, 0xce, 0x82, 0x53, 0x4f, 0xb3, 0x5c);
258    /// <summary>
259    /// Constructor
260    /// </summary>
261    /// <param name="store">Store where new element is to be created.</param>
262    /// <param name="propertyAssignments">List of domain property id/value pairs to set once the element is created.</param>
263    public Listener(DslModeling::Store store, params DslModeling::PropertyAssignment[] propertyAssignments)
264      : this(store != null ? store.DefaultPartitionForClass(DomainClassId) : null, propertyAssignments)
265    {
266    }
267   
268    /// <summary>
269    /// Constructor
270    /// </summary>
271    /// <param name="partition">Partition where new element is to be created.</param>
272    /// <param name="propertyAssignments">List of domain property id/value pairs to set once the element is created.</param>
273    public Listener(DslModeling::Partition partition, params DslModeling::PropertyAssignment[] propertyAssignments)
274      : base(partition, propertyAssignments)
275    {
276    }
277    #endregion
278  }
279}
Note: See TracBrowser for help on using the repository browser.