Free cookie consent management tool by TermsFeed Policy Generator

source: branches/SimulationCore/HeuristicLab.SimulationCore.Dsl/Dsl/DslDefinition.dsl @ 13398

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

#1610: added visual model

File size: 20.1 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Dsl xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="e76b5f9b-81a1-45f0-ac20-8a25077fff36" Description="Description for HeuristicLab.SimulationCore.HLSim" Name="HLSim" DisplayName="HLSim" Namespace="HeuristicLab.SimulationCore" ProductName="HeuristicLab" CompanyName="HEAL" PackageGuid="fab8f4d5-e0e8-4756-917b-6979bfd5ce3a" PackageNamespace="HeuristicLab.SimulationCore" xmlns="http://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel">
3  <Classes>
4    <DomainClass Id="bf3fdcd7-a552-4140-a502-130d51fa2a89" Description="The root in which all other elements are embedded. Appears as a diagram." Name="SimulationModel" DisplayName="Simulation Model" Namespace="HeuristicLab.SimulationCore">
5      <Properties>
6        <DomainProperty Id="495a3211-d774-4434-8bd1-7b340049f9e9" Description="Description for HeuristicLab.SimulationCore.SimulationModel.Model Type" Name="ModelType" DisplayName="Model Type">
7          <Type>
8            <ExternalTypeMoniker Name="/System/String" />
9          </Type>
10        </DomainProperty>
11      </Properties>
12      <ElementMergeDirectives>
13        <ElementMergeDirective>
14          <Index>
15            <DomainClassMoniker Name="Activity" />
16          </Index>
17          <LinkCreationPaths>
18            <DomainPath>SimulationModelHasActivities.Activities</DomainPath>
19          </LinkCreationPaths>
20        </ElementMergeDirective>
21        <ElementMergeDirective>
22          <Index>
23            <DomainClassMoniker Name="Action" />
24          </Index>
25          <LinkCreationPaths>
26            <DomainPath>SimulationModelHasActions.Actions</DomainPath>
27          </LinkCreationPaths>
28        </ElementMergeDirective>
29      </ElementMergeDirectives>
30    </DomainClass>
31    <DomainClass Id="168d4729-6156-4a96-87c5-6f8e7dbe5a0f" Description="Description for HeuristicLab.SimulationCore.Activity" Name="Activity" DisplayName="Activity" Namespace="HeuristicLab.SimulationCore">
32      <Properties>
33        <DomainProperty Id="5d66e342-eb3f-43c5-a12d-e752689e360f" Description="Description for HeuristicLab.SimulationCore.Activity.Name" Name="Name" DisplayName="Name" IsElementName="true">
34          <Type>
35            <ExternalTypeMoniker Name="/System/String" />
36          </Type>
37        </DomainProperty>
38      </Properties>
39    </DomainClass>
40    <DomainClass Id="d7ac7ca2-929b-4f0c-b690-e05a92bf28ed" Description="Description for HeuristicLab.SimulationCore.Action" Name="Action" DisplayName="Action" Namespace="HeuristicLab.SimulationCore">
41      <Properties>
42        <DomainProperty Id="3b4b0b0d-cb17-48f2-b0e1-45c23fd2c379" Description="Description for HeuristicLab.SimulationCore.Action.Name" Name="Name" DisplayName="Name" IsElementName="true">
43          <Type>
44            <ExternalTypeMoniker Name="/System/String" />
45          </Type>
46        </DomainProperty>
47      </Properties>
48    </DomainClass>
49  </Classes>
50  <Relationships>
51    <DomainRelationship Id="4a4161d0-95d3-4727-8959-372bd8ba3fc7" Description="Description for HeuristicLab.SimulationCore.SimulationModelHasActivities" Name="SimulationModelHasActivities" DisplayName="Simulation Model Has Activities" Namespace="HeuristicLab.SimulationCore" IsEmbedding="true">
52      <Source>
53        <DomainRole Id="1026f01d-c2bd-47e0-a7f9-01c0551c0e8d" Description="Description for HeuristicLab.SimulationCore.SimulationModelHasActivities.SimulationModel" Name="SimulationModel" DisplayName="Simulation Model" PropertyName="Activities" PropagatesCopy="PropagatesCopyToLinkAndOppositeRolePlayer" PropertyDisplayName="Activities">
54          <RolePlayer>
55            <DomainClassMoniker Name="SimulationModel" />
56          </RolePlayer>
57        </DomainRole>
58      </Source>
59      <Target>
60        <DomainRole Id="cd685a0e-906c-49b2-bc7b-0bdcc439b69e" Description="Description for HeuristicLab.SimulationCore.SimulationModelHasActivities.Activity" Name="Activity" DisplayName="Activity" PropertyName="SimulationModel" Multiplicity="One" PropagatesDelete="true" PropertyDisplayName="Simulation Model">
61          <RolePlayer>
62            <DomainClassMoniker Name="Activity" />
63          </RolePlayer>
64        </DomainRole>
65      </Target>
66    </DomainRelationship>
67    <DomainRelationship Id="4f6020f0-423c-4469-af3f-09ac8db8d19a" Description="Description for HeuristicLab.SimulationCore.SimulationModelHasActions" Name="SimulationModelHasActions" DisplayName="Simulation Model Has Actions" Namespace="HeuristicLab.SimulationCore" IsEmbedding="true">
68      <Source>
69        <DomainRole Id="5f2e5817-063b-4f23-a996-d490ac05ec40" Description="Description for HeuristicLab.SimulationCore.SimulationModelHasActions.SimulationModel" Name="SimulationModel" DisplayName="Simulation Model" PropertyName="Actions" PropagatesCopy="PropagatesCopyToLinkAndOppositeRolePlayer" PropertyDisplayName="Actions">
70          <RolePlayer>
71            <DomainClassMoniker Name="SimulationModel" />
72          </RolePlayer>
73        </DomainRole>
74      </Source>
75      <Target>
76        <DomainRole Id="a7f0817d-4f04-49ef-9592-e2f78432cc4f" Description="Description for HeuristicLab.SimulationCore.SimulationModelHasActions.Action" Name="Action" DisplayName="Action" PropertyName="SimulationModel" Multiplicity="One" PropagatesDelete="true" PropertyDisplayName="Simulation Model">
77          <RolePlayer>
78            <DomainClassMoniker Name="Action" />
79          </RolePlayer>
80        </DomainRole>
81      </Target>
82    </DomainRelationship>
83    <DomainRelationship Id="717952d5-7c93-4315-8e41-453cffe17811" Description="Description for HeuristicLab.SimulationCore.ActivityReferencesTriggers" Name="ActivityReferencesTriggers" DisplayName="Activity References Triggers" Namespace="HeuristicLab.SimulationCore">
84      <Source>
85        <DomainRole Id="7796065f-0003-4aec-bf7a-6d22b99f7c4b" Description="Description for HeuristicLab.SimulationCore.ActivityReferencesTriggers.Activity" Name="Activity" DisplayName="Activity" PropertyName="Triggers" PropertyDisplayName="Triggers">
86          <RolePlayer>
87            <DomainClassMoniker Name="Activity" />
88          </RolePlayer>
89        </DomainRole>
90      </Source>
91      <Target>
92        <DomainRole Id="93b557c0-5b55-4e27-aa06-6edfbe508585" Description="Description for HeuristicLab.SimulationCore.ActivityReferencesTriggers.Action" Name="Action" DisplayName="Action" PropertyName="Activities" PropertyDisplayName="Activities">
93          <RolePlayer>
94            <DomainClassMoniker Name="Action" />
95          </RolePlayer>
96        </DomainRole>
97      </Target>
98    </DomainRelationship>
99    <DomainRelationship Id="448eff77-5a72-420f-befa-d599574bb485" Description="Description for HeuristicLab.SimulationCore.ActionReferencesListeners" Name="ActionReferencesListeners" DisplayName="Action References Listeners" Namespace="HeuristicLab.SimulationCore">
100      <Source>
101        <DomainRole Id="0e8492e9-920e-4d6c-b398-53844a0b8294" Description="Description for HeuristicLab.SimulationCore.ActionReferencesListeners.Action" Name="Action" DisplayName="Action" PropertyName="Listeners" PropertyDisplayName="Listeners">
102          <RolePlayer>
103            <DomainClassMoniker Name="Action" />
104          </RolePlayer>
105        </DomainRole>
106      </Source>
107      <Target>
108        <DomainRole Id="ab4b8a78-aa3e-4315-8bfd-e41126a5bc7a" Description="Description for HeuristicLab.SimulationCore.ActionReferencesListeners.Activity" Name="Activity" DisplayName="Activity" PropertyName="Actions" PropertyDisplayName="Actions">
109          <RolePlayer>
110            <DomainClassMoniker Name="Activity" />
111          </RolePlayer>
112        </DomainRole>
113      </Target>
114    </DomainRelationship>
115  </Relationships>
116  <Types>
117    <ExternalType Name="DateTime" Namespace="System" />
118    <ExternalType Name="String" Namespace="System" />
119    <ExternalType Name="Int16" Namespace="System" />
120    <ExternalType Name="Int32" Namespace="System" />
121    <ExternalType Name="Int64" Namespace="System" />
122    <ExternalType Name="UInt16" Namespace="System" />
123    <ExternalType Name="UInt32" Namespace="System" />
124    <ExternalType Name="UInt64" Namespace="System" />
125    <ExternalType Name="SByte" Namespace="System" />
126    <ExternalType Name="Byte" Namespace="System" />
127    <ExternalType Name="Double" Namespace="System" />
128    <ExternalType Name="Single" Namespace="System" />
129    <ExternalType Name="Guid" Namespace="System" />
130    <ExternalType Name="Boolean" Namespace="System" />
131    <ExternalType Name="Char" Namespace="System" />
132  </Types>
133  <Shapes>
134    <GeometryShape Id="9aa624f1-2625-4cc3-b759-7070505f1a8b" Description="Description for HeuristicLab.SimulationCore.ActivityShape" Name="ActivityShape" DisplayName="Activity Shape" Namespace="HeuristicLab.SimulationCore" FixedTooltipText="Activity Shape" FillColor="DarkKhaki" InitialWidth="1.62" InitialHeight="1" Geometry="RoundedRectangle">
135      <ShapeHasDecorators Position="InnerTopLeft" HorizontalOffset="0" VerticalOffset="0">
136        <TextDecorator Name="NameDecorator" DisplayName="Name Decorator" DefaultText="NameDecorator" />
137      </ShapeHasDecorators>
138    </GeometryShape>
139    <GeometryShape Id="25205757-e7e3-4310-b3c8-e4b85c91b152" Description="Description for HeuristicLab.SimulationCore.ActionShape" Name="ActionShape" DisplayName="Action Shape" Namespace="HeuristicLab.SimulationCore" FixedTooltipText="Action Shape" FillColor="IndianRed" InitialWidth="0.75" InitialHeight="0.75" Geometry="Circle">
140      <ShapeHasDecorators Position="InnerTopLeft" HorizontalOffset="0" VerticalOffset="0">
141        <TextDecorator Name="NameDecorator" DisplayName="Name Decorator" DefaultText="NameDecorator" />
142      </ShapeHasDecorators>
143    </GeometryShape>
144  </Shapes>
145  <Connectors>
146    <Connector Id="ff67e59a-021e-472d-8fdc-0298ee26fe8e" Description="Description for HeuristicLab.SimulationCore.Trigger" Name="Trigger" DisplayName="Trigger" Namespace="HeuristicLab.SimulationCore" FixedTooltipText="Trigger" TargetEndStyle="EmptyArrow" />
147    <Connector Id="84ebcd29-fe73-4fa2-8e01-ce82534fb35c" Description="Description for HeuristicLab.SimulationCore.Listener" Name="Listener" DisplayName="Listener" Namespace="HeuristicLab.SimulationCore" FixedTooltipText="Listener" DashStyle="Dot" TargetEndStyle="EmptyArrow" />
148  </Connectors>
149  <XmlSerializationBehavior Name="HLSimSerializationBehavior" Namespace="HeuristicLab.SimulationCore">
150    <ClassData>
151      <XmlClassData TypeName="SimulationModel" MonikerAttributeName="" SerializeId="true" MonikerElementName="simulationModelMoniker" ElementName="simulationModel" MonikerTypeName="SimulationModelMoniker">
152        <DomainClassMoniker Name="SimulationModel" />
153        <ElementData>
154          <XmlRelationshipData UseFullForm="true" RoleElementName="activities">
155            <DomainRelationshipMoniker Name="SimulationModelHasActivities" />
156          </XmlRelationshipData>
157          <XmlRelationshipData UseFullForm="true" RoleElementName="actions">
158            <DomainRelationshipMoniker Name="SimulationModelHasActions" />
159          </XmlRelationshipData>
160          <XmlPropertyData XmlName="modelType">
161            <DomainPropertyMoniker Name="SimulationModel/ModelType" />
162          </XmlPropertyData>
163        </ElementData>
164      </XmlClassData>
165      <XmlClassData TypeName="HLSimDiagram" MonikerAttributeName="" SerializeId="true" MonikerElementName="hLSimDiagramMoniker" ElementName="hLSimDiagram" MonikerTypeName="HLSimDiagramMoniker">
166        <DiagramMoniker Name="HLSimDiagram" />
167      </XmlClassData>
168      <XmlClassData TypeName="Activity" MonikerAttributeName="" SerializeId="true" MonikerElementName="activityMoniker" ElementName="activity" MonikerTypeName="ActivityMoniker">
169        <DomainClassMoniker Name="Activity" />
170        <ElementData>
171          <XmlPropertyData XmlName="name">
172            <DomainPropertyMoniker Name="Activity/Name" />
173          </XmlPropertyData>
174          <XmlRelationshipData UseFullForm="true" RoleElementName="triggers">
175            <DomainRelationshipMoniker Name="ActivityReferencesTriggers" />
176          </XmlRelationshipData>
177        </ElementData>
178      </XmlClassData>
179      <XmlClassData TypeName="Action" MonikerAttributeName="" SerializeId="true" MonikerElementName="actionMoniker" ElementName="action" MonikerTypeName="ActionMoniker">
180        <DomainClassMoniker Name="Action" />
181        <ElementData>
182          <XmlPropertyData XmlName="name">
183            <DomainPropertyMoniker Name="Action/Name" />
184          </XmlPropertyData>
185          <XmlRelationshipData UseFullForm="true" RoleElementName="listeners">
186            <DomainRelationshipMoniker Name="ActionReferencesListeners" />
187          </XmlRelationshipData>
188        </ElementData>
189      </XmlClassData>
190      <XmlClassData TypeName="SimulationModelHasActivities" MonikerAttributeName="" SerializeId="true" MonikerElementName="simulationModelHasActivitiesMoniker" ElementName="simulationModelHasActivities" MonikerTypeName="SimulationModelHasActivitiesMoniker">
191        <DomainRelationshipMoniker Name="SimulationModelHasActivities" />
192      </XmlClassData>
193      <XmlClassData TypeName="SimulationModelHasActions" MonikerAttributeName="" SerializeId="true" MonikerElementName="simulationModelHasActionsMoniker" ElementName="simulationModelHasActions" MonikerTypeName="SimulationModelHasActionsMoniker">
194        <DomainRelationshipMoniker Name="SimulationModelHasActions" />
195      </XmlClassData>
196      <XmlClassData TypeName="ActivityReferencesTriggers" MonikerAttributeName="" SerializeId="true" MonikerElementName="activityReferencesTriggersMoniker" ElementName="activityReferencesTriggers" MonikerTypeName="ActivityReferencesTriggersMoniker">
197        <DomainRelationshipMoniker Name="ActivityReferencesTriggers" />
198      </XmlClassData>
199      <XmlClassData TypeName="ActionReferencesListeners" MonikerAttributeName="" SerializeId="true" MonikerElementName="actionReferencesListenersMoniker" ElementName="actionReferencesListeners" MonikerTypeName="ActionReferencesListenersMoniker">
200        <DomainRelationshipMoniker Name="ActionReferencesListeners" />
201      </XmlClassData>
202      <XmlClassData TypeName="ActivityShape" MonikerAttributeName="" SerializeId="true" MonikerElementName="activityShapeMoniker" ElementName="activityShape" MonikerTypeName="ActivityShapeMoniker">
203        <GeometryShapeMoniker Name="ActivityShape" />
204      </XmlClassData>
205      <XmlClassData TypeName="ActionShape" MonikerAttributeName="" SerializeId="true" MonikerElementName="actionShapeMoniker" ElementName="actionShape" MonikerTypeName="ActionShapeMoniker">
206        <GeometryShapeMoniker Name="ActionShape" />
207      </XmlClassData>
208      <XmlClassData TypeName="Trigger" MonikerAttributeName="" SerializeId="true" MonikerElementName="triggerMoniker" ElementName="trigger" MonikerTypeName="TriggerMoniker">
209        <ConnectorMoniker Name="Trigger" />
210      </XmlClassData>
211      <XmlClassData TypeName="Listener" MonikerAttributeName="" SerializeId="true" MonikerElementName="listenerMoniker" ElementName="listener" MonikerTypeName="ListenerMoniker">
212        <ConnectorMoniker Name="Listener" />
213      </XmlClassData>
214    </ClassData>
215  </XmlSerializationBehavior>
216  <ExplorerBehavior Name="HLSimExplorer" />
217  <ConnectionBuilders>
218    <ConnectionBuilder Name="ActivityReferencesTriggersBuilder">
219      <LinkConnectDirective>
220        <DomainRelationshipMoniker Name="ActivityReferencesTriggers" />
221        <SourceDirectives>
222          <RolePlayerConnectDirective>
223            <AcceptingClass>
224              <DomainClassMoniker Name="Activity" />
225            </AcceptingClass>
226          </RolePlayerConnectDirective>
227        </SourceDirectives>
228        <TargetDirectives>
229          <RolePlayerConnectDirective>
230            <AcceptingClass>
231              <DomainClassMoniker Name="Action" />
232            </AcceptingClass>
233          </RolePlayerConnectDirective>
234        </TargetDirectives>
235      </LinkConnectDirective>
236    </ConnectionBuilder>
237    <ConnectionBuilder Name="ActionReferencesListenersBuilder">
238      <LinkConnectDirective>
239        <DomainRelationshipMoniker Name="ActionReferencesListeners" />
240        <SourceDirectives>
241          <RolePlayerConnectDirective>
242            <AcceptingClass>
243              <DomainClassMoniker Name="Action" />
244            </AcceptingClass>
245          </RolePlayerConnectDirective>
246        </SourceDirectives>
247        <TargetDirectives>
248          <RolePlayerConnectDirective>
249            <AcceptingClass>
250              <DomainClassMoniker Name="Activity" />
251            </AcceptingClass>
252          </RolePlayerConnectDirective>
253        </TargetDirectives>
254      </LinkConnectDirective>
255    </ConnectionBuilder>
256  </ConnectionBuilders>
257  <Diagram Id="cf1c9f0b-eb8e-4d36-9fcc-6cd2455f9cba" Description="Description for HeuristicLab.SimulationCore.HLSimDiagram" Name="HLSimDiagram" DisplayName="Minimal Language Diagram" Namespace="HeuristicLab.SimulationCore">
258    <Class>
259      <DomainClassMoniker Name="SimulationModel" />
260    </Class>
261    <ShapeMaps>
262      <ShapeMap>
263        <DomainClassMoniker Name="Activity" />
264        <ParentElementPath>
265          <DomainPath>SimulationModelHasActivities.SimulationModel/!SimulationModel</DomainPath>
266        </ParentElementPath>
267        <DecoratorMap>
268          <TextDecoratorMoniker Name="ActivityShape/NameDecorator" />
269          <PropertyDisplayed>
270            <PropertyPath>
271              <DomainPropertyMoniker Name="Activity/Name" />
272            </PropertyPath>
273          </PropertyDisplayed>
274        </DecoratorMap>
275        <GeometryShapeMoniker Name="ActivityShape" />
276      </ShapeMap>
277      <ShapeMap>
278        <DomainClassMoniker Name="Action" />
279        <ParentElementPath>
280          <DomainPath>SimulationModelHasActions.SimulationModel/!SimulationModel</DomainPath>
281        </ParentElementPath>
282        <DecoratorMap>
283          <TextDecoratorMoniker Name="ActionShape/NameDecorator" />
284          <PropertyDisplayed>
285            <PropertyPath>
286              <DomainPropertyMoniker Name="Action/Name" />
287            </PropertyPath>
288          </PropertyDisplayed>
289        </DecoratorMap>
290        <GeometryShapeMoniker Name="ActionShape" />
291      </ShapeMap>
292    </ShapeMaps>
293    <ConnectorMaps>
294      <ConnectorMap>
295        <ConnectorMoniker Name="Trigger" />
296        <DomainRelationshipMoniker Name="ActivityReferencesTriggers" />
297      </ConnectorMap>
298      <ConnectorMap>
299        <ConnectorMoniker Name="Listener" />
300        <DomainRelationshipMoniker Name="ActionReferencesListeners" />
301      </ConnectorMap>
302    </ConnectorMaps>
303  </Diagram>
304  <Designer CopyPasteGeneration="CopyPasteOnly" FileExtension="hlsim" EditorGuid="c6d92072-93cd-4652-9e26-052db3ad40ce">
305    <RootClass>
306      <DomainClassMoniker Name="SimulationModel" />
307    </RootClass>
308    <XmlSerializationDefinition CustomPostLoad="false">
309      <XmlSerializationBehaviorMoniker Name="HLSimSerializationBehavior" />
310    </XmlSerializationDefinition>
311    <ToolboxTab TabText="HLSim">
312      <ElementTool Name="Activity" ToolboxIcon="Resources\ExampleShapeToolBitmap.bmp" Caption="Activity" Tooltip="Activity" HelpKeyword="Activity">
313        <DomainClassMoniker Name="Activity" />
314      </ElementTool>
315      <ElementTool Name="Action" ToolboxIcon="Resources\ExampleShapeToolBitmap.bmp" Caption="Action" Tooltip="Action" HelpKeyword="Action">
316        <DomainClassMoniker Name="Action" />
317      </ElementTool>
318      <ConnectionTool Name="Trigger" ToolboxIcon="Resources\ExampleConnectorToolBitmap.bmp" Caption="Trigger" Tooltip="Trigger" HelpKeyword="Trigger">
319        <ConnectionBuilderMoniker Name="HLSim/ActivityReferencesTriggersBuilder" />
320      </ConnectionTool>
321      <ConnectionTool Name="Listener" ToolboxIcon="Resources\ExampleConnectorToolBitmap.bmp" Caption="Listener" Tooltip="Listener" HelpKeyword="Listener">
322        <ConnectionBuilderMoniker Name="HLSim/ActionReferencesListenersBuilder" />
323      </ConnectionTool>
324    </ToolboxTab>
325    <Validation UsesMenu="false" UsesOpen="false" UsesSave="false" UsesLoad="false" />
326    <DiagramMoniker Name="HLSimDiagram" />
327  </Designer>
328  <Explorer ExplorerGuid="8ed281ac-3dd2-4c07-a131-eb7845494b19" Title="HLSim Explorer">
329    <ExplorerBehaviorMoniker Name="HLSim/HLSimExplorer" />
330  </Explorer>
331</Dsl>
Note: See TracBrowser for help on using the repository browser.