diff --git a/BlazorApp/BlazorApp/Components/InventoryItem.razor.cs b/BlazorApp/BlazorApp/Components/InventoryItem.razor.cs index b13fcaa..9f74d37 100644 --- a/BlazorApp/BlazorApp/Components/InventoryItem.razor.cs +++ b/BlazorApp/BlazorApp/Components/InventoryItem.razor.cs @@ -81,8 +81,9 @@ namespace BlazorApp.Components this.Item = Parent.CurrentDragItem; Parent.CurrentDragItem = tmp; Parent.CurrentDragIndex = this.Index; + Parent.InventoryItems[this.Index] = new SavableItem(this.Item, NbItem); + } - Parent.InventoryItems[this.Index] = new SavableItem(this.Item, NbItem); Parent.Actions.Add(new InventoryAction { Action = "On Drop", Item = this.Item, Index = this.Index }); } diff --git a/Documentation/Capture d’écran 2022-12-20 à 19.40.20.png b/Documentation/Capture d’écran 2022-12-20 à 19.40.20.png new file mode 100644 index 0000000..b50f682 Binary files /dev/null and b/Documentation/Capture d’écran 2022-12-20 à 19.40.20.png differ diff --git a/Documentation/OnDragEnd.mdj b/Documentation/OnDragEnd.mdj new file mode 100644 index 0000000..b3fa655 --- /dev/null +++ b/Documentation/OnDragEnd.mdj @@ -0,0 +1,768 @@ +{ + "_type": "Project", + "_id": "AAAAAAFF+h6SjaM2Hec=", + "name": "Untitled", + "ownedElements": [ + { + "_type": "UMLModel", + "_id": "AAAAAAFF+qBWK6M3Z8Y=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Model", + "ownedElements": [ + { + "_type": "UMLClassDiagram", + "_id": "AAAAAAFF+qBtyKM79qY=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Main", + "defaultDiagram": true + } + ] + }, + { + "_type": "UMLCollaboration", + "_id": "AAAAAAGFMLsvwDKERW8=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Collaboration1", + "ownedElements": [ + { + "_type": "UMLInteraction", + "_id": "AAAAAAGFMLsvwjKFoA4=", + "_parent": { + "$ref": "AAAAAAGFMLsvwDKERW8=" + }, + "name": "Interaction1", + "ownedElements": [ + { + "_type": "UMLSequenceDiagram", + "_id": "AAAAAAGFMLsvwzKGQXE=", + "_parent": { + "$ref": "AAAAAAGFMLsvwjKFoA4=" + }, + "name": "OnDragEnd", + "ownedViews": [ + { + "_type": "UMLFrameView", + "_id": "AAAAAAGFMLsvxDKHIEg=", + "_parent": { + "$ref": "AAAAAAGFMLsvwzKGQXE=" + }, + "model": { + "$ref": "AAAAAAGFMLsvwzKGQXE=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMLsvxDKIJlQ=", + "_parent": { + "$ref": "AAAAAAGFMLsvxDKHIEg=" + }, + "font": "Arial;13;0", + "left": 32.72998046875, + "top": 13, + "width": 69.64990234375, + "height": 13, + "text": "OnDragEnd" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMLsvxTKJnXo=", + "_parent": { + "$ref": "AAAAAAGFMLsvxDKHIEg=" + }, + "font": "Arial;13;1", + "left": 13, + "top": 13, + "width": 14.72998046875, + "height": 13, + "text": "sd" + } + ], + "font": "Arial;13;0", + "left": 8, + "top": 8, + "width": 833, + "height": 729, + "nameLabel": { + "$ref": "AAAAAAGFMLsvxDKIJlQ=" + }, + "frameTypeLabel": { + "$ref": "AAAAAAGFMLsvxTKJnXo=" + } + }, + { + "_type": "UMLSeqLifelineView", + "_id": "AAAAAAGFMLu0IDKXkeY=", + "_parent": { + "$ref": "AAAAAAGFMLsvwzKGQXE=" + }, + "model": { + "$ref": "AAAAAAGFMLu0IDKWZDk=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGFMLu0ITKYO5U=", + "_parent": { + "$ref": "AAAAAAGFMLu0IDKXkeY=" + }, + "model": { + "$ref": "AAAAAAGFMLu0IDKWZDk=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMLu0ITKZGK0=", + "_parent": { + "$ref": "AAAAAAGFMLu0ITKYO5U=" + }, + "visible": false, + "font": "Arial;13;0", + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMLu0ITKacLU=", + "_parent": { + "$ref": "AAAAAAGFMLu0ITKYO5U=" + }, + "font": "Arial;13;1", + "left": 141, + "top": 47, + "width": 62.736328125, + "height": 13, + "text": "User" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMLu0ITKbG1U=", + "_parent": { + "$ref": "AAAAAAGFMLu0ITKYO5U=" + }, + "visible": false, + "font": "Arial;13;0", + "width": 106.20263671875, + "height": 13, + "text": "(from Interaction1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMLu0ITKcxD8=", + "_parent": { + "$ref": "AAAAAAGFMLu0ITKYO5U=" + }, + "visible": false, + "font": "Arial;13;0", + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 136, + "top": 40, + "width": 72.736328125, + "height": 40, + "stereotypeLabel": { + "$ref": "AAAAAAGFMLu0ITKZGK0=" + }, + "nameLabel": { + "$ref": "AAAAAAGFMLu0ITKacLU=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGFMLu0ITKbG1U=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMLu0ITKcxD8=" + } + }, + { + "_type": "UMLLinePartView", + "_id": "AAAAAAGFMLu0IjKddvg=", + "_parent": { + "$ref": "AAAAAAGFMLu0IDKXkeY=" + }, + "model": { + "$ref": "AAAAAAGFMLu0IDKWZDk=" + }, + "font": "Arial;13;0", + "left": 172, + "top": 80, + "width": 1, + "height": 327 + } + ], + "font": "Arial;13;0", + "left": 136, + "top": 40, + "width": 72.736328125, + "height": 367, + "nameCompartment": { + "$ref": "AAAAAAGFMLu0ITKYO5U=" + }, + "linePart": { + "$ref": "AAAAAAGFMLu0IjKddvg=" + } + }, + { + "_type": "UMLSeqLifelineView", + "_id": "AAAAAAGFMLvsHTK3xVQ=", + "_parent": { + "$ref": "AAAAAAGFMLsvwzKGQXE=" + }, + "model": { + "$ref": "AAAAAAGFMLvsHDK2zao=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGFMLvsHTK4c5w=", + "_parent": { + "$ref": "AAAAAAGFMLvsHTK3xVQ=" + }, + "model": { + "$ref": "AAAAAAGFMLvsHDK2zao=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMLvsIDK5NoY=", + "_parent": { + "$ref": "AAAAAAGFMLvsHTK4c5w=" + }, + "visible": false, + "font": "Arial;13;0", + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMLvsIDK6ntw=", + "_parent": { + "$ref": "AAAAAAGFMLvsHTK4c5w=" + }, + "font": "Arial;13;1", + "left": 525, + "top": 47, + "width": 105.341796875, + "height": 13, + "text": "InventoryComp" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMLvsIDK7NUo=", + "_parent": { + "$ref": "AAAAAAGFMLvsHTK4c5w=" + }, + "visible": false, + "font": "Arial;13;0", + "width": 106.20263671875, + "height": 13, + "text": "(from Interaction1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMLvsIDK8z6E=", + "_parent": { + "$ref": "AAAAAAGFMLvsHTK4c5w=" + }, + "visible": false, + "font": "Arial;13;0", + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 520, + "top": 40, + "width": 115.341796875, + "height": 40, + "stereotypeLabel": { + "$ref": "AAAAAAGFMLvsIDK5NoY=" + }, + "nameLabel": { + "$ref": "AAAAAAGFMLvsIDK6ntw=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGFMLvsIDK7NUo=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMLvsIDK8z6E=" + } + }, + { + "_type": "UMLLinePartView", + "_id": "AAAAAAGFMLvsIDK9pe8=", + "_parent": { + "$ref": "AAAAAAGFMLvsHTK3xVQ=" + }, + "model": { + "$ref": "AAAAAAGFMLvsHDK2zao=" + }, + "font": "Arial;13;0", + "left": 578, + "top": 80, + "width": 1, + "height": 327 + } + ], + "font": "Arial;13;0", + "left": 520, + "top": 40, + "width": 115.341796875, + "height": 367, + "nameCompartment": { + "$ref": "AAAAAAGFMLvsHTK4c5w=" + }, + "linePart": { + "$ref": "AAAAAAGFMLvsIDK9pe8=" + } + }, + { + "_type": "UMLCombinedFragmentView", + "_id": "AAAAAAGFML179jLXNpE=", + "_parent": { + "$ref": "AAAAAAGFMLsvwzKGQXE=" + }, + "model": { + "$ref": "AAAAAAGFML179TLVqOE=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFML179jLYb7o=", + "_parent": { + "$ref": "AAAAAAGFML179jLXNpE=" + }, + "font": "Arial;13;0", + "left": 96.72998046875, + "top": 109, + "width": 7.5, + "height": 13, + "text": "if" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFML179jLZx4Y=", + "_parent": { + "$ref": "AAAAAAGFML179jLXNpE=" + }, + "font": "Arial;13;1", + "left": 77, + "top": 109, + "width": 14.72998046875, + "height": 13, + "text": "alt" + }, + { + "_type": "UMLInteractionOperandCompartmentView", + "_id": "AAAAAAGFML179zLaZfk=", + "_parent": { + "$ref": "AAAAAAGFML179jLXNpE=" + }, + "model": { + "$ref": "AAAAAAGFML179TLVqOE=" + }, + "subViews": [ + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFML18GDLmFqo=", + "_parent": { + "$ref": "AAAAAAGFML179zLaZfk=" + }, + "model": { + "$ref": "AAAAAAGFML179jLWbBU=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFML18GDLnZa4=", + "_parent": { + "$ref": "AAAAAAGFML18GDLmFqo=" + }, + "font": "Arial;13;0", + "left": 92, + "top": 142, + "width": 293.69970703125, + "height": 13, + "text": "[Item not from datagrid or currentDragNbItem != -1]" + } + ], + "font": "Arial;13;0", + "left": 72, + "top": 127, + "width": 761, + "height": 154, + "guardLabel": { + "$ref": "AAAAAAGFML18GDLnZa4=" + } + } + ], + "font": "Arial;13;0", + "left": 72, + "top": 127, + "width": 761, + "height": 154 + } + ], + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 761, + "height": 249, + "nameLabel": { + "$ref": "AAAAAAGFML179jLYb7o=" + }, + "frameTypeLabel": { + "$ref": "AAAAAAGFML179jLZx4Y=" + }, + "operandCompartment": { + "$ref": "AAAAAAGFML179zLaZfk=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMMBu7DL4cQI=", + "_parent": { + "$ref": "AAAAAAGFMLsvwzKGQXE=" + }, + "model": { + "$ref": "AAAAAAGFMMBu6jL35KA=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMMBu7DL5+9U=", + "_parent": { + "$ref": "AAAAAAGFMMBu7DL4cQI=" + }, + "model": { + "$ref": "AAAAAAGFMMBu6jL35KA=" + }, + "font": "Arial;13;0", + "left": 606, + "top": 134, + "width": 202, + "height": 26, + "alpha": 1.5607956611081313, + "distance": 100.00499987500625, + "hostEdge": { + "$ref": "AAAAAAGFMMBu7DL4cQI=" + }, + "edgePosition": 1, + "text": "1 : Dragged item = dropped on item same for nbItems", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMMBu7DL6qDg=", + "_parent": { + "$ref": "AAAAAAGFMMBu7DL4cQI=" + }, + "model": { + "$ref": "AAAAAAGFMMBu6jL35KA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 632, + "top": 139, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMMBu7DL4cQI=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMMBu7DL7q04=", + "_parent": { + "$ref": "AAAAAAGFMMBu7DL4cQI=" + }, + "model": { + "$ref": "AAAAAAGFMMBu6jL35KA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 598, + "top": 140, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMMBu7DL4cQI=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMMBu7DL8D1E=", + "_parent": { + "$ref": "AAAAAAGFMMBu7DL4cQI=" + }, + "model": { + "$ref": "AAAAAAGFMMBu6jL35KA=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 156, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMLvsIDK9pe8=" + }, + "tail": { + "$ref": "AAAAAAGFMLvsIDK9pe8=" + }, + "points": "578:136;608:136;608:156;584:156", + "nameLabel": { + "$ref": "AAAAAAGFMMBu7DL5+9U=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMMBu7DL6qDg=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMMBu7DL7q04=" + }, + "activation": { + "$ref": "AAAAAAGFMMBu7DL8D1E=" + } + }, + { + "_type": "UMLNoteView", + "_id": "AAAAAAGFMMNZIDMVUFM=", + "_parent": { + "$ref": "AAAAAAGFMLsvwzKGQXE=" + }, + "font": "Arial;13;0", + "left": 440, + "top": 408, + "width": 185, + "height": 81, + "text": "This method swap the item that was dragged with the one that was dropped on" + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMNWjZTW9EB4=", + "_parent": { + "$ref": "AAAAAAGFMLsvwzKGQXE=" + }, + "model": { + "$ref": "AAAAAAGFMNWjZDW8v3c=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMNWjZjW+PiM=", + "_parent": { + "$ref": "AAAAAAGFMNWjZTW9EB4=" + }, + "model": { + "$ref": "AAAAAAGFMNWjZDW8v3c=" + }, + "font": "Arial;13;0", + "left": 302, + "top": 368, + "width": 151.7470703125, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMNWjZTW9EB4=" + }, + "edgePosition": 1, + "text": "2 : Show the modifications" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMNWjZjW/iP0=", + "_parent": { + "$ref": "AAAAAAGFMNWjZTW9EB4=" + }, + "model": { + "$ref": "AAAAAAGFMNWjZDW8v3c=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 377, + "top": 383, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMNWjZTW9EB4=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMNWjZjXA2GU=", + "_parent": { + "$ref": "AAAAAAGFMNWjZTW9EB4=" + }, + "model": { + "$ref": "AAAAAAGFMNWjZDW8v3c=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 378, + "top": 348, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMNWjZTW9EB4=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMNWjZjXBlXk=", + "_parent": { + "$ref": "AAAAAAGFMNWjZTW9EB4=" + }, + "model": { + "$ref": "AAAAAAGFMNWjZDW8v3c=" + }, + "font": "Arial;13;0", + "left": 165, + "top": 364, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMLu0IjKddvg=" + }, + "tail": { + "$ref": "AAAAAAGFMLvsIDK9pe8=" + }, + "points": "578:364;178:364", + "nameLabel": { + "$ref": "AAAAAAGFMNWjZjW+PiM=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMNWjZjW/iP0=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMNWjZjXA2GU=" + }, + "activation": { + "$ref": "AAAAAAGFMNWjZjXBlXk=" + } + } + ] + } + ], + "messages": [ + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMMBu6jL35KA=", + "_parent": { + "$ref": "AAAAAAGFMLsvwjKFoA4=" + }, + "name": "dropped on item same for nbItems", + "source": { + "$ref": "AAAAAAGFMLvsHDK2zao=" + }, + "target": { + "$ref": "AAAAAAGFMLvsHDK2zao=" + }, + "assignmentTarget": "Dragged item" + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMNWjZDW8v3c=", + "_parent": { + "$ref": "AAAAAAGFMLsvwjKFoA4=" + }, + "name": "Show the modifications", + "source": { + "$ref": "AAAAAAGFMLvsHDK2zao=" + }, + "target": { + "$ref": "AAAAAAGFMLu0IDKWZDk=" + } + } + ], + "participants": [ + { + "_type": "UMLLifeline", + "_id": "AAAAAAGFMLu0IDKWZDk=", + "_parent": { + "$ref": "AAAAAAGFMLsvwjKFoA4=" + }, + "name": "User", + "represent": { + "$ref": "AAAAAAGFMLu0HzKVOzc=" + }, + "isMultiInstance": false + }, + { + "_type": "UMLLifeline", + "_id": "AAAAAAGFMLvsHDK2zao=", + "_parent": { + "$ref": "AAAAAAGFMLsvwjKFoA4=" + }, + "name": "InventoryComp", + "represent": { + "$ref": "AAAAAAGFMLvsHDK1znk=" + }, + "isMultiInstance": false + } + ], + "fragments": [ + { + "_type": "UMLCombinedFragment", + "_id": "AAAAAAGFML179TLVqOE=", + "_parent": { + "$ref": "AAAAAAGFMLsvwjKFoA4=" + }, + "name": "if", + "interactionOperator": "alt", + "operands": [ + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFML179jLWbBU=", + "_parent": { + "$ref": "AAAAAAGFML179TLVqOE=" + }, + "name": "Operand1", + "guard": "Item not from datagrid or currentDragNbItem != -1" + } + ] + } + ] + } + ], + "attributes": [ + { + "_type": "UMLAttribute", + "_id": "AAAAAAGFMLu0HzKVOzc=", + "_parent": { + "$ref": "AAAAAAGFMLsvwDKERW8=" + }, + "name": "Role1", + "type": "" + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGFMLvsHDK1znk=", + "_parent": { + "$ref": "AAAAAAGFMLsvwDKERW8=" + }, + "name": "Role2", + "type": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/Documentation/OnDragStart.mdj b/Documentation/OnDragStart.mdj new file mode 100644 index 0000000..73b596a --- /dev/null +++ b/Documentation/OnDragStart.mdj @@ -0,0 +1,1340 @@ +{ + "_type": "Project", + "_id": "AAAAAAFF+h6SjaM2Hec=", + "name": "Untitled", + "ownedElements": [ + { + "_type": "UMLModel", + "_id": "AAAAAAFF+qBWK6M3Z8Y=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Model", + "ownedElements": [ + { + "_type": "UMLClassDiagram", + "_id": "AAAAAAFF+qBtyKM79qY=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Main", + "defaultDiagram": true + } + ] + }, + { + "_type": "UMLCollaboration", + "_id": "AAAAAAGFMIpfVUIT4UE=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Collaboration1", + "ownedElements": [ + { + "_type": "UMLInteraction", + "_id": "AAAAAAGFMIpfV0IUW7I=", + "_parent": { + "$ref": "AAAAAAGFMIpfVUIT4UE=" + }, + "name": "Interaction1", + "ownedElements": [ + { + "_type": "UMLSequenceDiagram", + "_id": "AAAAAAGFMIpfWUIVNZ8=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "OnDragStart", + "ownedViews": [ + { + "_type": "UMLFrameView", + "_id": "AAAAAAGFMIpfWUIW62E=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMIpfWkIXSac=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIW62E=" + }, + "font": "Arial;13;0", + "left": 32.72998046875, + "top": 13, + "width": 73.97265625, + "height": 13, + "text": "OnDragStart" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMIpfWkIYtAU=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIW62E=" + }, + "font": "Arial;13;1", + "left": 13, + "top": 13, + "width": 14.72998046875, + "height": 13, + "text": "sd" + } + ], + "font": "Arial;13;0", + "left": 8, + "top": 8, + "width": 737, + "height": 592, + "nameLabel": { + "$ref": "AAAAAAGFMIpfWkIXSac=" + }, + "frameTypeLabel": { + "$ref": "AAAAAAGFMIpfWkIYtAU=" + } + }, + { + "_type": "UMLSeqLifelineView", + "_id": "AAAAAAGFMIpyNkIkxa4=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMIpyNkIjW48=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGFMIpyNkIlDhY=", + "_parent": { + "$ref": "AAAAAAGFMIpyNkIkxa4=" + }, + "model": { + "$ref": "AAAAAAGFMIpyNkIjW48=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMIpyNkImhoo=", + "_parent": { + "$ref": "AAAAAAGFMIpyNkIlDhY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMIpyNkInG3Q=", + "_parent": { + "$ref": "AAAAAAGFMIpyNkIlDhY=" + }, + "font": "Arial;13;1", + "left": 165, + "top": 47, + "width": 62.736328125, + "height": 13, + "text": "User" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMIpyNkIoZBs=", + "_parent": { + "$ref": "AAAAAAGFMIpyNkIlDhY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "width": 106.20263671875, + "height": 13, + "text": "(from Interaction1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMIpyN0IpRZE=", + "_parent": { + "$ref": "AAAAAAGFMIpyNkIlDhY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 160, + "top": 40, + "width": 72.736328125, + "height": 40, + "stereotypeLabel": { + "$ref": "AAAAAAGFMIpyNkImhoo=" + }, + "nameLabel": { + "$ref": "AAAAAAGFMIpyNkInG3Q=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGFMIpyNkIoZBs=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMIpyN0IpRZE=" + } + }, + { + "_type": "UMLLinePartView", + "_id": "AAAAAAGFMIpyN0Iqs4A=", + "_parent": { + "$ref": "AAAAAAGFMIpyNkIkxa4=" + }, + "model": { + "$ref": "AAAAAAGFMIpyNkIjW48=" + }, + "font": "Arial;13;0", + "left": 196, + "top": 80, + "width": 1, + "height": 489 + } + ], + "font": "Arial;13;0", + "left": 160, + "top": 40, + "width": 72.736328125, + "height": 529, + "nameCompartment": { + "$ref": "AAAAAAGFMIpyNkIlDhY=" + }, + "linePart": { + "$ref": "AAAAAAGFMIpyN0Iqs4A=" + } + }, + { + "_type": "UMLSeqLifelineView", + "_id": "AAAAAAGFMIuBTUJHyAc=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGFMIuBTUJIdDA=", + "_parent": { + "$ref": "AAAAAAGFMIuBTUJHyAc=" + }, + "model": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMIuBTkJJaX8=", + "_parent": { + "$ref": "AAAAAAGFMIuBTUJIdDA=" + }, + "visible": false, + "font": "Arial;13;0", + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMIuBTkJKZNU=", + "_parent": { + "$ref": "AAAAAAGFMIuBTUJIdDA=" + }, + "font": "Arial;13;1", + "left": 405, + "top": 47, + "width": 105.341796875, + "height": 13, + "text": "InventoryComp" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMIuBTkJLRO4=", + "_parent": { + "$ref": "AAAAAAGFMIuBTUJIdDA=" + }, + "visible": false, + "font": "Arial;13;0", + "width": 106.20263671875, + "height": 13, + "text": "(from Interaction1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMIuBTkJM/QU=", + "_parent": { + "$ref": "AAAAAAGFMIuBTUJIdDA=" + }, + "visible": false, + "font": "Arial;13;0", + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 400, + "top": 40, + "width": 115.341796875, + "height": 40, + "stereotypeLabel": { + "$ref": "AAAAAAGFMIuBTkJJaX8=" + }, + "nameLabel": { + "$ref": "AAAAAAGFMIuBTkJKZNU=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGFMIuBTkJLRO4=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMIuBTkJM/QU=" + } + }, + { + "_type": "UMLLinePartView", + "_id": "AAAAAAGFMIuBTkJNPcM=", + "_parent": { + "$ref": "AAAAAAGFMIuBTUJHyAc=" + }, + "model": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + }, + "font": "Arial;13;0", + "left": 458, + "top": 80, + "width": 1, + "height": 489 + } + ], + "font": "Arial;13;0", + "left": 400, + "top": 40, + "width": 115.341796875, + "height": 529, + "nameCompartment": { + "$ref": "AAAAAAGFMIuBTUJIdDA=" + }, + "linePart": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMIvZh0JntI4=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMIvZhEJmC/I=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMIvZiEJormM=", + "_parent": { + "$ref": "AAAAAAGFMIvZh0JntI4=" + }, + "model": { + "$ref": "AAAAAAGFMIvZhEJmC/I=" + }, + "font": "Arial;13;0", + "left": 275, + "top": 110, + "width": 92.4853515625, + "height": 13, + "alpha": -4.532536360592353, + "distance": 11.180339887498949, + "hostEdge": { + "$ref": "AAAAAAGFMIvZh0JntI4=" + }, + "edgePosition": 1, + "text": "1 : Drag an item" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMIvZiEJp/3A=", + "_parent": { + "$ref": "AAAAAAGFMIvZh0JntI4=" + }, + "model": { + "$ref": "AAAAAAGFMIvZhEJmC/I=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 323, + "top": 97, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMIvZh0JntI4=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMIvZiEJqr/s=", + "_parent": { + "$ref": "AAAAAAGFMIvZh0JntI4=" + }, + "model": { + "$ref": "AAAAAAGFMIvZhEJmC/I=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 323, + "top": 132, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMIvZh0JntI4=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMIvZiEJrc6o=", + "_parent": { + "$ref": "AAAAAAGFMIvZh0JntI4=" + }, + "model": { + "$ref": "AAAAAAGFMIvZhEJmC/I=" + }, + "font": "Arial;13;0", + "left": 451, + "top": 128, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "tail": { + "$ref": "AAAAAAGFMIpyN0Iqs4A=" + }, + "points": "196:128;451:128", + "nameLabel": { + "$ref": "AAAAAAGFMIvZiEJormM=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMIvZiEJp/3A=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMIvZiEJqr/s=" + }, + "activation": { + "$ref": "AAAAAAGFMIvZiEJrc6o=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMIwMYEJ9a30=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMIwMXkJ8FHY=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMIwMYUJ+zrM=", + "_parent": { + "$ref": "AAAAAAGFMIwMYEJ9a30=" + }, + "model": { + "$ref": "AAAAAAGFMIwMXkJ8FHY=" + }, + "font": "Arial;13;0", + "left": 495, + "top": 149, + "width": 233, + "height": 13, + "alpha": 1.562320954110059, + "distance": 118.00423721205946, + "hostEdge": { + "$ref": "AAAAAAGFMIwMYEJ9a30=" + }, + "edgePosition": 1, + "text": "2 : Store the dragged item in a variable", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMIwMYUJ/TGE=", + "_parent": { + "$ref": "AAAAAAGFMIwMYEJ9a30=" + }, + "model": { + "$ref": "AAAAAAGFMIwMXkJ8FHY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 518, + "top": 147, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMIwMYEJ9a30=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMIwMYUKAX5Y=", + "_parent": { + "$ref": "AAAAAAGFMIwMYEJ9a30=" + }, + "model": { + "$ref": "AAAAAAGFMIwMXkJ8FHY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 484, + "top": 148, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMIwMYEJ9a30=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMIwMYUKBM1o=", + "_parent": { + "$ref": "AAAAAAGFMIwMYEJ9a30=" + }, + "model": { + "$ref": "AAAAAAGFMIwMXkJ8FHY=" + }, + "font": "Arial;13;0", + "left": 451, + "top": 164, + "width": 14, + "height": 77 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "tail": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "points": "464:144;494:144;494:164;464:164", + "nameLabel": { + "$ref": "AAAAAAGFMIwMYUJ+zrM=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMIwMYUJ/TGE=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMIwMYUKAX5Y=" + }, + "activation": { + "$ref": "AAAAAAGFMIwMYUKBM1o=" + } + }, + { + "_type": "UMLCombinedFragmentView", + "_id": "AAAAAAGFMJCtAkLHmw4=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMJCtAULF6VM=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMJCtA0LI3pQ=", + "_parent": { + "$ref": "AAAAAAGFMJCtAkLHmw4=" + }, + "font": "Arial;13;0", + "left": 40.72998046875, + "top": 165, + "width": 7.5, + "height": 13, + "text": "if" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMJCtA0LJSA0=", + "_parent": { + "$ref": "AAAAAAGFMJCtAkLHmw4=" + }, + "font": "Arial;13;1", + "left": 21, + "top": 165, + "width": 14.72998046875, + "height": 13, + "text": "alt" + }, + { + "_type": "UMLInteractionOperandCompartmentView", + "_id": "AAAAAAGFMJCtA0LKjSI=", + "_parent": { + "$ref": "AAAAAAGFMJCtAkLHmw4=" + }, + "model": { + "$ref": "AAAAAAGFMJCtAULF6VM=" + }, + "subViews": [ + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFMJCtPULWTTk=", + "_parent": { + "$ref": "AAAAAAGFMJCtA0LKjSI=" + }, + "model": { + "$ref": "AAAAAAGFMJCtAkLGAWw=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMJCtPkLXWwo=", + "_parent": { + "$ref": "AAAAAAGFMJCtPULWTTk=" + }, + "font": "Arial;13;0", + "left": 36, + "top": 198, + "width": 178.45166015625, + "height": 13, + "text": "[The item is from the inventory]" + } + ], + "font": "Arial;13;0", + "left": 16, + "top": 183, + "width": 801, + "height": 234, + "guardLabel": { + "$ref": "AAAAAAGFMJCtPkLXWwo=" + } + }, + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFMJDhR0LhmYc=", + "_parent": { + "$ref": "AAAAAAGFMJCtA0LKjSI=" + }, + "model": { + "$ref": "AAAAAAGFMJDhFELebvE=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMJDhR0Li7ac=", + "_parent": { + "$ref": "AAAAAAGFMJDhR0LhmYc=" + }, + "font": "Arial;13;0", + "left": 36, + "top": 432, + "width": 175.5634765625, + "height": 13, + "text": "[The item is from the dataGrid]" + } + ], + "font": "Arial;13;0", + "left": 16, + "top": 417, + "width": 801, + "height": 57, + "guardLabel": { + "$ref": "AAAAAAGFMJDhR0Li7ac=" + } + } + ], + "font": "Arial;13;0", + "left": 16, + "top": 183, + "width": 801, + "height": 291 + } + ], + "font": "Arial;13;0", + "left": 16, + "top": 160, + "width": 801, + "height": 369, + "nameLabel": { + "$ref": "AAAAAAGFMJCtA0LI3pQ=" + }, + "frameTypeLabel": { + "$ref": "AAAAAAGFMJCtA0LJSA0=" + }, + "operandCompartment": { + "$ref": "AAAAAAGFMJCtA0LKjSI=" + } + }, + { + "_type": "UMLCombinedFragmentView", + "_id": "AAAAAAGFMJYCmUM7OuA=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMJYClkM5WaY=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMJYCmkM86BA=", + "_parent": { + "$ref": "AAAAAAGFMJYCmUM7OuA=" + }, + "font": "Arial;13;0", + "left": 120.72998046875, + "top": 221, + "width": 7.5, + "height": 13, + "text": "if" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMJYCmkM94kY=", + "_parent": { + "$ref": "AAAAAAGFMJYCmUM7OuA=" + }, + "font": "Arial;13;1", + "left": 101, + "top": 221, + "width": 14.72998046875, + "height": 13, + "text": "alt" + }, + { + "_type": "UMLInteractionOperandCompartmentView", + "_id": "AAAAAAGFMJYCmkM+mv4=", + "_parent": { + "$ref": "AAAAAAGFMJYCmUM7OuA=" + }, + "model": { + "$ref": "AAAAAAGFMJYClkM5WaY=" + }, + "subViews": [ + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFMJYC4UNKC3o=", + "_parent": { + "$ref": "AAAAAAGFMJYCmkM+mv4=" + }, + "model": { + "$ref": "AAAAAAGFMJYCmEM6spc=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMJYC4UNLqg4=", + "_parent": { + "$ref": "AAAAAAGFMJYC4UNKC3o=" + }, + "font": "Arial;13;0", + "left": 116, + "top": 254, + "width": 57.79541015625, + "height": 13, + "text": "[Left click]" + } + ], + "font": "Arial;13;0", + "left": 96, + "top": 239, + "width": 633, + "height": 43, + "guardLabel": { + "$ref": "AAAAAAGFMJYC4UNLqg4=" + } + }, + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFMJdt/UNkhbA=", + "_parent": { + "$ref": "AAAAAAGFMJYCmkM+mv4=" + }, + "model": { + "$ref": "AAAAAAGFMJdtxUNh1gc=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMJdt/UNlXSc=", + "_parent": { + "$ref": "AAAAAAGFMJdt/UNkhbA=" + }, + "font": "Arial;13;0", + "left": 116, + "top": 297, + "width": 66.4599609375, + "height": 13, + "text": "[Right click]" + } + ], + "font": "Arial;13;0", + "left": 96, + "top": 282, + "width": 633, + "height": 48, + "guardLabel": { + "$ref": "AAAAAAGFMJdt/UNlXSc=" + } + } + ], + "font": "Arial;13;0", + "left": 96, + "top": 239, + "width": 633, + "height": 91 + } + ], + "font": "Arial;13;0", + "left": 96, + "top": 216, + "width": 633, + "height": 145, + "nameLabel": { + "$ref": "AAAAAAGFMJYCmkM86BA=" + }, + "frameTypeLabel": { + "$ref": "AAAAAAGFMJYCmkM94kY=" + }, + "operandCompartment": { + "$ref": "AAAAAAGFMJYCmkM+mv4=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMJtRjkPjWao=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMJtRjUPioYE=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJtRj0PkXhY=", + "_parent": { + "$ref": "AAAAAAGFMJtRjkPjWao=" + }, + "model": { + "$ref": "AAAAAAGFMJtRjUPioYE=" + }, + "font": "Arial;13;0", + "left": 495, + "top": 224, + "width": 229, + "height": 39, + "alpha": 1.4933642464878982, + "distance": 116.3486140871476, + "hostEdge": { + "$ref": "AAAAAAGFMJtRjkPjWao=" + }, + "edgePosition": 1, + "text": "3 : Set the item in the inventory to null and the number of items to -1(so that the inventory space is empty)", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJtRj0PlTEA=", + "_parent": { + "$ref": "AAAAAAGFMJtRjkPjWao=" + }, + "model": { + "$ref": "AAAAAAGFMJtRjUPioYE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 518, + "top": 227, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMJtRjkPjWao=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJtRj0PmmO8=", + "_parent": { + "$ref": "AAAAAAGFMJtRjkPjWao=" + }, + "model": { + "$ref": "AAAAAAGFMJtRjUPioYE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 484, + "top": 228, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMJtRjkPjWao=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMJtRj0PnKaw=", + "_parent": { + "$ref": "AAAAAAGFMJtRjkPjWao=" + }, + "model": { + "$ref": "AAAAAAGFMJtRjUPioYE=" + }, + "font": "Arial;13;0", + "left": 451, + "top": 244, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "tail": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "points": "464:224;494:224;494:244;464:244", + "nameLabel": { + "$ref": "AAAAAAGFMJtRj0PkXhY=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMJtRj0PlTEA=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMJtRj0PmmO8=" + }, + "activation": { + "$ref": "AAAAAAGFMJtRj0PnKaw=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMJwfR0Qiiqk=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMJwfRUQhABM=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJwfR0QjKHA=", + "_parent": { + "$ref": "AAAAAAGFMJwfR0Qiiqk=" + }, + "model": { + "$ref": "AAAAAAGFMJwfRUQhABM=" + }, + "font": "Arial;13;0", + "left": 492, + "top": 296, + "width": 220, + "height": 39, + "alpha": 1.4926936558387767, + "distance": 115.35163631262454, + "hostEdge": { + "$ref": "AAAAAAGFMJwfR0Qiiqk=" + }, + "edgePosition": 1, + "text": "4 : Divide the nb of item by in the current index and put the same number of item to the dragged item", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJwfSEQkA/A=", + "_parent": { + "$ref": "AAAAAAGFMJwfR0Qiiqk=" + }, + "model": { + "$ref": "AAAAAAGFMJwfRUQhABM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 512, + "top": 299, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMJwfR0Qiiqk=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJwfSEQls9M=", + "_parent": { + "$ref": "AAAAAAGFMJwfR0Qiiqk=" + }, + "model": { + "$ref": "AAAAAAGFMJwfRUQhABM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 478, + "top": 300, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMJwfR0Qiiqk=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMJwfSEQmcVU=", + "_parent": { + "$ref": "AAAAAAGFMJwfR0Qiiqk=" + }, + "model": { + "$ref": "AAAAAAGFMJwfRUQhABM=" + }, + "font": "Arial;13;0", + "left": 451, + "top": 316, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "tail": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "points": "458:296;488:296;488:316;464:316", + "nameLabel": { + "$ref": "AAAAAAGFMJwfR0QjKHA=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMJwfSEQkA/A=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMJwfSEQls9M=" + }, + "activation": { + "$ref": "AAAAAAGFMJwfSEQmcVU=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMJmKA0OoZzA=", + "_parent": { + "$ref": "AAAAAAGFMIpfWUIVNZ8=" + }, + "model": { + "$ref": "AAAAAAGFMJmKAkOnJD4=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJmKA0OpX4Y=", + "_parent": { + "$ref": "AAAAAAGFMJmKA0OoZzA=" + }, + "model": { + "$ref": "AAAAAAGFMJmKAkOnJD4=" + }, + "font": "Arial;13;0", + "left": 496, + "top": 455, + "width": 227, + "height": 52, + "alpha": 1.4484585029072574, + "distance": 122.9186723000212, + "hostEdge": { + "$ref": "AAAAAAGFMJmKA0OoZzA=" + }, + "edgePosition": 1, + "text": "5 : Set the number dragged number of items to 1 and the current drag index to -1 to signify that the item is from the datagrid", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJmKA0OqPxQ=", + "_parent": { + "$ref": "AAAAAAGFMJmKA0OoZzA=" + }, + "model": { + "$ref": "AAAAAAGFMJmKAkOnJD4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 512, + "top": 459, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMJmKA0OoZzA=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMJmKA0OrFyI=", + "_parent": { + "$ref": "AAAAAAGFMJmKA0OoZzA=" + }, + "model": { + "$ref": "AAAAAAGFMJmKAkOnJD4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 478, + "top": 460, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMJmKA0OoZzA=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMJmKA0OsmaE=", + "_parent": { + "$ref": "AAAAAAGFMJmKA0OoZzA=" + }, + "model": { + "$ref": "AAAAAAGFMJmKAkOnJD4=" + }, + "font": "Arial;13;0", + "left": 451, + "top": 476, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "tail": { + "$ref": "AAAAAAGFMIuBTkJNPcM=" + }, + "points": "458:456;488:456;488:476;464:476", + "nameLabel": { + "$ref": "AAAAAAGFMJmKA0OpX4Y=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMJmKA0OqPxQ=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMJmKA0OrFyI=" + }, + "activation": { + "$ref": "AAAAAAGFMJmKA0OsmaE=" + } + } + ] + } + ], + "messages": [ + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMIvZhEJmC/I=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "Drag an item", + "source": { + "$ref": "AAAAAAGFMIpyNkIjW48=" + }, + "target": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + } + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMIwMXkJ8FHY=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "Store the dragged item in a variable", + "source": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + }, + "target": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + } + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMJtRjUPioYE=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "Set the item in the inventory to null and the number of items to -1", + "source": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + }, + "target": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + }, + "arguments": "so that the inventory space is empty" + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMJwfRUQhABM=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "Divide the nb of item by in the current index and put the same number of item to the dragged item", + "source": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + }, + "target": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + } + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMJmKAkOnJD4=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "Set the number dragged number of items to 1 and the current drag index to -1 to signify that the item is from the datagrid", + "source": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + }, + "target": { + "$ref": "AAAAAAGFMIuBTUJGDIY=" + } + } + ], + "participants": [ + { + "_type": "UMLLifeline", + "_id": "AAAAAAGFMIpyNkIjW48=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "User", + "represent": { + "$ref": "AAAAAAGFMIpyNUIi85U=" + }, + "isMultiInstance": false + }, + { + "_type": "UMLLifeline", + "_id": "AAAAAAGFMIuBTUJGDIY=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "InventoryComp", + "represent": { + "$ref": "AAAAAAGFMIuBS0JFP/s=" + }, + "isMultiInstance": false + } + ], + "fragments": [ + { + "_type": "UMLCombinedFragment", + "_id": "AAAAAAGFMJCtAULF6VM=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "if", + "interactionOperator": "alt", + "operands": [ + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFMJCtAkLGAWw=", + "_parent": { + "$ref": "AAAAAAGFMJCtAULF6VM=" + }, + "name": "Operand1", + "guard": "The item is from the inventory" + }, + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFMJDhFELebvE=", + "_parent": { + "$ref": "AAAAAAGFMJCtAULF6VM=" + }, + "name": "InteractionOperand1", + "guard": "The item is from the dataGrid" + } + ] + }, + { + "_type": "UMLCombinedFragment", + "_id": "AAAAAAGFMJYClkM5WaY=", + "_parent": { + "$ref": "AAAAAAGFMIpfV0IUW7I=" + }, + "name": "if", + "interactionOperator": "alt", + "operands": [ + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFMJYCmEM6spc=", + "_parent": { + "$ref": "AAAAAAGFMJYClkM5WaY=" + }, + "name": "Operand1", + "guard": "Left click" + }, + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFMJdtxUNh1gc=", + "_parent": { + "$ref": "AAAAAAGFMJYClkM5WaY=" + }, + "name": "InteractionOperand1", + "guard": "Right click" + } + ] + } + ] + } + ], + "attributes": [ + { + "_type": "UMLAttribute", + "_id": "AAAAAAGFMIpyNUIi85U=", + "_parent": { + "$ref": "AAAAAAGFMIpfVUIT4UE=" + }, + "name": "Role1" + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGFMIuBS0JFP/s=", + "_parent": { + "$ref": "AAAAAAGFMIpfVUIT4UE=" + }, + "name": "Role2" + } + ] + } + ] +} \ No newline at end of file diff --git a/Documentation/OnDrop.mdj b/Documentation/OnDrop.mdj new file mode 100644 index 0000000..ecaa5c7 --- /dev/null +++ b/Documentation/OnDrop.mdj @@ -0,0 +1,1747 @@ +{ + "_type": "Project", + "_id": "AAAAAAFF+h6SjaM2Hec=", + "name": "Untitled", + "ownedElements": [ + { + "_type": "UMLModel", + "_id": "AAAAAAFF+qBWK6M3Z8Y=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Model", + "ownedElements": [ + { + "_type": "UMLClassDiagram", + "_id": "AAAAAAFF+qBtyKM79qY=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Main", + "defaultDiagram": true + } + ] + }, + { + "_type": "UMLCollaboration", + "_id": "AAAAAAGFMKA6nl5n8yI=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Collaboration1", + "ownedElements": [ + { + "_type": "UMLInteraction", + "_id": "AAAAAAGFMKA6oV5olIk=", + "_parent": { + "$ref": "AAAAAAGFMKA6nl5n8yI=" + }, + "name": "Interaction1", + "ownedElements": [ + { + "_type": "UMLSequenceDiagram", + "_id": "AAAAAAGFMKA6ol5psQo=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "OnDrop", + "ownedViews": [ + { + "_type": "UMLFrameView", + "_id": "AAAAAAGFMKA6o15qUCw=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKA6o15rp4A=", + "_parent": { + "$ref": "AAAAAAGFMKA6o15qUCw=" + }, + "font": "Arial;13;0", + "left": 32.72998046875, + "top": 13, + "width": 46.51904296875, + "height": 13, + "text": "OnDrop" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKA6pF5sCv0=", + "_parent": { + "$ref": "AAAAAAGFMKA6o15qUCw=" + }, + "font": "Arial;13;1", + "left": 13, + "top": 13, + "width": 14.72998046875, + "height": 13, + "text": "sd" + } + ], + "font": "Arial;13;0", + "left": 8, + "top": 8, + "width": 825, + "height": 729, + "nameLabel": { + "$ref": "AAAAAAGFMKA6o15rp4A=" + }, + "frameTypeLabel": { + "$ref": "AAAAAAGFMKA6pF5sCv0=" + } + }, + { + "_type": "UMLSeqLifelineView", + "_id": "AAAAAAGFMKCOWF55XM0=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMKCOWF54DMc=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGFMKCOWF56l5s=", + "_parent": { + "$ref": "AAAAAAGFMKCOWF55XM0=" + }, + "model": { + "$ref": "AAAAAAGFMKCOWF54DMc=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKCOWF57tw8=", + "_parent": { + "$ref": "AAAAAAGFMKCOWF56l5s=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 160, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKCOWF582p0=", + "_parent": { + "$ref": "AAAAAAGFMKCOWF56l5s=" + }, + "font": "Arial;13;1", + "left": 205, + "top": 47, + "width": 62.736328125, + "height": 13, + "text": "User" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKCOWF59k2Q=", + "_parent": { + "$ref": "AAAAAAGFMKCOWF56l5s=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 160, + "width": 106.20263671875, + "height": 13, + "text": "(from Interaction1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKCOWl5+syQ=", + "_parent": { + "$ref": "AAAAAAGFMKCOWF56l5s=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 160, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 200, + "top": 40, + "width": 72.736328125, + "height": 40, + "stereotypeLabel": { + "$ref": "AAAAAAGFMKCOWF57tw8=" + }, + "nameLabel": { + "$ref": "AAAAAAGFMKCOWF582p0=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGFMKCOWF59k2Q=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMKCOWl5+syQ=" + } + }, + { + "_type": "UMLLinePartView", + "_id": "AAAAAAGFMKCOWl5/PAk=", + "_parent": { + "$ref": "AAAAAAGFMKCOWF55XM0=" + }, + "model": { + "$ref": "AAAAAAGFMKCOWF54DMc=" + }, + "font": "Arial;13;0", + "left": 236, + "top": 80, + "width": 1, + "height": 657 + } + ], + "font": "Arial;13;0", + "left": 200, + "top": 40, + "width": 72.736328125, + "height": 697, + "nameCompartment": { + "$ref": "AAAAAAGFMKCOWF56l5s=" + }, + "linePart": { + "$ref": "AAAAAAGFMKCOWl5/PAk=" + } + }, + { + "_type": "UMLSeqLifelineView", + "_id": "AAAAAAGFMKFJRF6aKro=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAGFMKFJRF6bwQ4=", + "_parent": { + "$ref": "AAAAAAGFMKFJRF6aKro=" + }, + "model": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKFJRV6citk=", + "_parent": { + "$ref": "AAAAAAGFMKFJRF6bwQ4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 400, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKFJRl6dT0c=", + "_parent": { + "$ref": "AAAAAAGFMKFJRF6bwQ4=" + }, + "font": "Arial;13;1", + "left": 525, + "top": 47, + "width": 105.341796875, + "height": 13, + "text": "InventoryComp" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKFJRl6eC2s=", + "_parent": { + "$ref": "AAAAAAGFMKFJRF6bwQ4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 400, + "width": 106.20263671875, + "height": 13, + "text": "(from Interaction1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKFJRl6fX9E=", + "_parent": { + "$ref": "AAAAAAGFMKFJRF6bwQ4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 400, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 520, + "top": 40, + "width": 115.341796875, + "height": 40, + "stereotypeLabel": { + "$ref": "AAAAAAGFMKFJRV6citk=" + }, + "nameLabel": { + "$ref": "AAAAAAGFMKFJRl6dT0c=" + }, + "namespaceLabel": { + "$ref": "AAAAAAGFMKFJRl6eC2s=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMKFJRl6fX9E=" + } + }, + { + "_type": "UMLLinePartView", + "_id": "AAAAAAGFMKFJRl6ghB8=", + "_parent": { + "$ref": "AAAAAAGFMKFJRF6aKro=" + }, + "model": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "font": "Arial;13;0", + "left": 578, + "top": 80, + "width": 1, + "height": 655 + } + ], + "font": "Arial;13;0", + "left": 520, + "top": 40, + "width": 115.341796875, + "height": 695, + "nameCompartment": { + "$ref": "AAAAAAGFMKFJRF6bwQ4=" + }, + "linePart": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + } + }, + { + "_type": "UMLCombinedFragmentView", + "_id": "AAAAAAGFMKPsvV8IJyY=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMKPsul8GJxI=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKPsvl8JACw=", + "_parent": { + "$ref": "AAAAAAGFMKPsvV8IJyY=" + }, + "font": "Arial;13;0", + "left": 32.72998046875, + "top": 133, + "width": 7.5, + "height": 13, + "text": "if" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKPsvl8KULA=", + "_parent": { + "$ref": "AAAAAAGFMKPsvV8IJyY=" + }, + "font": "Arial;13;1", + "left": 13, + "top": 133, + "width": 14.72998046875, + "height": 13, + "text": "alt" + }, + { + "_type": "UMLInteractionOperandCompartmentView", + "_id": "AAAAAAGFMKPsvl8LmXI=", + "_parent": { + "$ref": "AAAAAAGFMKPsvV8IJyY=" + }, + "model": { + "$ref": "AAAAAAGFMKPsul8GJxI=" + }, + "subViews": [ + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFMKPs+18XaCs=", + "_parent": { + "$ref": "AAAAAAGFMKPsvl8LmXI=" + }, + "model": { + "$ref": "AAAAAAGFMKPsvV8HfYI=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKPs+18YScw=", + "_parent": { + "$ref": "AAAAAAGFMKPs+18XaCs=" + }, + "font": "Arial;13;0", + "left": 28, + "top": 166, + "width": 195.12060546875, + "height": 13, + "text": "[Dragged item==Item dropped on]" + } + ], + "font": "Arial;13;0", + "left": 8, + "top": 151, + "width": 817, + "height": 218, + "guardLabel": { + "$ref": "AAAAAAGFMKPs+18YScw=" + } + }, + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFMKz5kGACNBc=", + "_parent": { + "$ref": "AAAAAAGFMKPsvl8LmXI=" + }, + "model": { + "$ref": "AAAAAAGFMKz5Wl//Uv4=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKz5kGAD0vg=", + "_parent": { + "$ref": "AAAAAAGFMKz5kGACNBc=" + }, + "font": "Arial;13;0", + "left": 28, + "top": 384, + "width": 197.640625, + "height": 13, + "text": "[Dragged item != item dropped on]" + } + ], + "font": "Arial;13;0", + "left": 8, + "top": 369, + "width": 817, + "height": 168, + "guardLabel": { + "$ref": "AAAAAAGFMKz5kGAD0vg=" + } + } + ], + "font": "Arial;13;0", + "left": 8, + "top": 151, + "width": 817, + "height": 386 + } + ], + "font": "Arial;13;0", + "left": 8, + "top": 128, + "width": 817, + "height": 409, + "nameLabel": { + "$ref": "AAAAAAGFMKPsvl8JACw=" + }, + "frameTypeLabel": { + "$ref": "AAAAAAGFMKPsvl8KULA=" + }, + "operandCompartment": { + "$ref": "AAAAAAGFMKPsvl8LmXI=" + } + }, + { + "_type": "UMLCombinedFragmentView", + "_id": "AAAAAAGFMKalBl9/kCQ=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMKalBV99zG8=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKalB1+AC3g=", + "_parent": { + "$ref": "AAAAAAGFMKalBl9/kCQ=" + }, + "font": "Arial;13;0", + "left": 112.72998046875, + "top": 197, + "width": 7.5, + "height": 13, + "text": "if" + }, + { + "_type": "LabelView", + "_id": "AAAAAAGFMKalB1+BDw8=", + "_parent": { + "$ref": "AAAAAAGFMKalBl9/kCQ=" + }, + "font": "Arial;13;1", + "left": 93, + "top": 197, + "width": 14.72998046875, + "height": 13, + "text": "alt" + }, + { + "_type": "UMLInteractionOperandCompartmentView", + "_id": "AAAAAAGFMKalB1+Cxn4=", + "_parent": { + "$ref": "AAAAAAGFMKalBl9/kCQ=" + }, + "model": { + "$ref": "AAAAAAGFMKalBV99zG8=" + }, + "subViews": [ + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFMKalL1+OGm8=", + "_parent": { + "$ref": "AAAAAAGFMKalB1+Cxn4=" + }, + "model": { + "$ref": "AAAAAAGFMKalBl9+NaE=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKalL1+Ph0w=", + "_parent": { + "$ref": "AAAAAAGFMKalL1+OGm8=" + }, + "font": "Arial;13;0", + "left": 108, + "top": 230, + "width": 102.22900390625, + "height": 13, + "text": "[sum > stackSize]" + } + ], + "font": "Arial;13;0", + "left": 88, + "top": 215, + "width": 721, + "height": 58, + "guardLabel": { + "$ref": "AAAAAAGFMKalL1+Ph0w=" + } + }, + { + "_type": "UMLInteractionOperandView", + "_id": "AAAAAAGFMKkKxF+91vQ=", + "_parent": { + "$ref": "AAAAAAGFMKalB1+Cxn4=" + }, + "model": { + "$ref": "AAAAAAGFMKkKll+6C9I=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAGFMKkKxF++aYQ=", + "_parent": { + "$ref": "AAAAAAGFMKkKxF+91vQ=" + }, + "font": "Arial;13;0", + "left": 108, + "top": 288, + "width": 102.22900390625, + "height": 13, + "text": "[sum < stackSize]" + } + ], + "font": "Arial;13;0", + "left": 88, + "top": 273, + "width": 721, + "height": 43, + "guardLabel": { + "$ref": "AAAAAAGFMKkKxF++aYQ=" + } + } + ], + "font": "Arial;13;0", + "left": 88, + "top": 215, + "width": 721, + "height": 101 + } + ], + "font": "Arial;13;0", + "left": 88, + "top": 192, + "width": 721, + "height": 145, + "nameLabel": { + "$ref": "AAAAAAGFMKalB1+AC3g=" + }, + "frameTypeLabel": { + "$ref": "AAAAAAGFMKalB1+BDw8=" + }, + "operandCompartment": { + "$ref": "AAAAAAGFMKalB1+Cxn4=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMKK2OF7xseY=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMKK2Nl7wBu0=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKK2OV7yqIs=", + "_parent": { + "$ref": "AAAAAAGFMKK2OF7xseY=" + }, + "model": { + "$ref": "AAAAAAGFMKK2Nl7wBu0=" + }, + "font": "Arial;13;0", + "left": 330, + "top": 96, + "width": 147.41796875, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMKK2OF7xseY=" + }, + "edgePosition": 1, + "text": "1 : Drop the dragged item" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKK2OV7zjRU=", + "_parent": { + "$ref": "AAAAAAGFMKK2OF7xseY=" + }, + "model": { + "$ref": "AAAAAAGFMKK2Nl7wBu0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 403, + "top": 81, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMKK2OF7xseY=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKK2OV70I1o=", + "_parent": { + "$ref": "AAAAAAGFMKK2OF7xseY=" + }, + "model": { + "$ref": "AAAAAAGFMKK2Nl7wBu0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 403, + "top": 116, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMKK2OF7xseY=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMKK2OV715vk=", + "_parent": { + "$ref": "AAAAAAGFMKK2OF7xseY=" + }, + "model": { + "$ref": "AAAAAAGFMKK2Nl7wBu0=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 112, + "width": 14, + "height": 81 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "tail": { + "$ref": "AAAAAAGFMKCOWl5/PAk=" + }, + "points": "236:112;571:112", + "nameLabel": { + "$ref": "AAAAAAGFMKK2OV7yqIs=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMKK2OV7zjRU=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMKK2OV70I1o=" + }, + "activation": { + "$ref": "AAAAAAGFMKK2OV715vk=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMKdP6F+bp9o=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMKdP5l+aG5I=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKdP6F+cU7A=", + "_parent": { + "$ref": "AAAAAAGFMKdP6F+bp9o=" + }, + "model": { + "$ref": "AAAAAAGFMKdP5l+aG5I=" + }, + "font": "Arial;13;0", + "left": 608, + "top": 208, + "width": 186.57568359375, + "height": 39, + "alpha": 1.5601574313509607, + "distance": 94.00531899844816, + "hostEdge": { + "$ref": "AAAAAAGFMKdP6F+bp9o=" + }, + "edgePosition": 1, + "text": "2 : dropped on item's nbItem is now stackSize and the dragged item number of items is the rest", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKdP6V+dgYk=", + "_parent": { + "$ref": "AAAAAAGFMKdP6F+bp9o=" + }, + "model": { + "$ref": "AAAAAAGFMKdP5l+aG5I=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 632, + "top": 219, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMKdP6F+bp9o=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKdP6V+edxw=", + "_parent": { + "$ref": "AAAAAAGFMKdP6F+bp9o=" + }, + "model": { + "$ref": "AAAAAAGFMKdP5l+aG5I=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 598, + "top": 220, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMKdP6F+bp9o=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMKdP6V+fbW4=", + "_parent": { + "$ref": "AAAAAAGFMKdP6F+bp9o=" + }, + "model": { + "$ref": "AAAAAAGFMKdP5l+aG5I=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 236, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "tail": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "points": "578:216;608:216;608:236;584:236", + "nameLabel": { + "$ref": "AAAAAAGFMKdP6F+cU7A=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMKdP6V+dgYk=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMKdP6V+edxw=" + }, + "activation": { + "$ref": "AAAAAAGFMKdP6V+fbW4=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMKlKLV/FSZg=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMKlKLF/E2sc=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKlKLV/Gc80=", + "_parent": { + "$ref": "AAAAAAGFMKlKLV/FSZg=" + }, + "model": { + "$ref": "AAAAAAGFMKlKLF/E2sc=" + }, + "font": "Arial;13;0", + "left": 609, + "top": 279, + "width": 187, + "height": 52, + "alpha": 1.4972440440207047, + "distance": 95.25754563287887, + "hostEdge": { + "$ref": "AAAAAAGFMKlKLV/FSZg=" + }, + "edgePosition": 1, + "text": "3 : dropped on item's nbItem is the sum and currentDragNbItem=-1 to signify that sum < stackSize", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKlKLV/Hzr0=", + "_parent": { + "$ref": "AAAAAAGFMKlKLV/FSZg=" + }, + "model": { + "$ref": "AAAAAAGFMKlKLF/E2sc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 632, + "top": 291, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMKlKLV/FSZg=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMKlKLV/IV70=", + "_parent": { + "$ref": "AAAAAAGFMKlKLV/FSZg=" + }, + "model": { + "$ref": "AAAAAAGFMKlKLF/E2sc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 598, + "top": 292, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMKlKLV/FSZg=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMKlKLl/JULg=", + "_parent": { + "$ref": "AAAAAAGFMKlKLV/FSZg=" + }, + "model": { + "$ref": "AAAAAAGFMKlKLF/E2sc=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 308, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "tail": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "points": "578:288;608:288;608:308;584:308", + "nameLabel": { + "$ref": "AAAAAAGFMKlKLV/Gc80=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMKlKLV/Hzr0=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMKlKLV/IV70=" + }, + "activation": { + "$ref": "AAAAAAGFMKlKLl/JULg=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMK53cmASQQI=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMK53cGAR7Yk=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMK53c2ATrEM=", + "_parent": { + "$ref": "AAAAAAGFMK53cmASQQI=" + }, + "model": { + "$ref": "AAAAAAGFMK53cGAR7Yk=" + }, + "font": "Arial;13;0", + "left": 606, + "top": 373, + "width": 202, + "height": 52, + "alpha": 1.5208369360604845, + "distance": 100.12492197250393, + "hostEdge": { + "$ref": "AAAAAAGFMK53cmASQQI=" + }, + "edgePosition": 1, + "text": "4 : Put the droppedOn item's nb of items in a variabledropped on item index, item and nbItems in variables", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMK53c2AUczg=", + "_parent": { + "$ref": "AAAAAAGFMK53cmASQQI=" + }, + "model": { + "$ref": "AAAAAAGFMK53cGAR7Yk=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 632, + "top": 387, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMK53cmASQQI=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMK53c2AVvgU=", + "_parent": { + "$ref": "AAAAAAGFMK53cmASQQI=" + }, + "model": { + "$ref": "AAAAAAGFMK53cGAR7Yk=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 598, + "top": 388, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMK53cmASQQI=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMK53c2AWVB0=", + "_parent": { + "$ref": "AAAAAAGFMK53cmASQQI=" + }, + "model": { + "$ref": "AAAAAAGFMK53cGAR7Yk=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 404, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "tail": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "points": "578:384;608:384;608:404;584:404", + "nameLabel": { + "$ref": "AAAAAAGFMK53c2ATrEM=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMK53c2AUczg=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMK53c2AVvgU=" + }, + "activation": { + "$ref": "AAAAAAGFMK53c2AWVB0=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMLkq5WEM8oI=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMLkq5GELPZ8=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLkq5mENf6c=", + "_parent": { + "$ref": "AAAAAAGFMLkq5WEM8oI=" + }, + "model": { + "$ref": "AAAAAAGFMLkq5GELPZ8=" + }, + "font": "Arial;13;0", + "left": 591, + "top": 431, + "width": 245.349609375, + "height": 26, + "alpha": 1.551929642552585, + "distance": 106.01886624558857, + "hostEdge": { + "$ref": "AAAAAAGFMLkq5WEM8oI=" + }, + "edgePosition": 1, + "text": "5 : droppedOn nbItems = dragged nbItems", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLkq5mEOsh4=", + "_parent": { + "$ref": "AAAAAAGFMLkq5WEM8oI=" + }, + "model": { + "$ref": "AAAAAAGFMLkq5GELPZ8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 632, + "top": 435, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMLkq5WEM8oI=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLkq5mEP6aM=", + "_parent": { + "$ref": "AAAAAAGFMLkq5WEM8oI=" + }, + "model": { + "$ref": "AAAAAAGFMLkq5GELPZ8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 598, + "top": 436, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMLkq5WEM8oI=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMLkq5mEQQIE=", + "_parent": { + "$ref": "AAAAAAGFMLkq5WEM8oI=" + }, + "model": { + "$ref": "AAAAAAGFMLkq5GELPZ8=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 452, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "tail": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "points": "578:432;608:432;608:452;584:452", + "nameLabel": { + "$ref": "AAAAAAGFMLkq5mENf6c=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMLkq5mEOsh4=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMLkq5mEP6aM=" + }, + "activation": { + "$ref": "AAAAAAGFMLkq5mEQQIE=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMLHZmGB2wXE=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMLHZl2B1P4M=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLHZmWB3fNw=", + "_parent": { + "$ref": "AAAAAAGFMLHZmGB2wXE=" + }, + "model": { + "$ref": "AAAAAAGFMLHZl2B1P4M=" + }, + "font": "Arial;13;0", + "left": 603, + "top": 559, + "width": 209, + "height": 26, + "alpha": 1.5507979948209463, + "distance": 100.0199980003999, + "hostEdge": { + "$ref": "AAAAAAGFMLHZmGB2wXE=" + }, + "edgePosition": 1, + "text": "6 : Put in variables the item and nbItems of the dropped on item", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLHZmWB4R8Y=", + "_parent": { + "$ref": "AAAAAAGFMLHZmGB2wXE=" + }, + "model": { + "$ref": "AAAAAAGFMLHZl2B1P4M=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 632, + "top": 563, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMLHZmGB2wXE=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLHZmWB5yjw=", + "_parent": { + "$ref": "AAAAAAGFMLHZmGB2wXE=" + }, + "model": { + "$ref": "AAAAAAGFMLHZl2B1P4M=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 598, + "top": 564, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMLHZmGB2wXE=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMLHZmWB64Ak=", + "_parent": { + "$ref": "AAAAAAGFMLHZmGB2wXE=" + }, + "model": { + "$ref": "AAAAAAGFMLHZl2B1P4M=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 580, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "tail": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "points": "578:560;608:560;608:580;584:580", + "nameLabel": { + "$ref": "AAAAAAGFMLHZmWB3fNw=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMLHZmWB4R8Y=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMLHZmWB5yjw=" + }, + "activation": { + "$ref": "AAAAAAGFMLHZmWB64Ak=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMLNwN2CWX1E=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMLNwNGCVOAs=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLNwOGCXVFQ=", + "_parent": { + "$ref": "AAAAAAGFMLNwN2CWX1E=" + }, + "model": { + "$ref": "AAAAAAGFMLNwNGCVOAs=" + }, + "font": "Arial;13;0", + "left": 615, + "top": 598, + "width": 187, + "height": 52, + "alpha": 1.511459126952617, + "distance": 101.17806086301516, + "hostEdge": { + "$ref": "AAAAAAGFMLNwN2CWX1E=" + }, + "edgePosition": 1, + "text": "7 : droppedOn item = dragged item, same for the nbItems(so the dragged item take the place of the droppedOnItem)", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLNwOGCYOg4=", + "_parent": { + "$ref": "AAAAAAGFMLNwN2CWX1E=" + }, + "model": { + "$ref": "AAAAAAGFMLNwNGCVOAs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 632, + "top": 611, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMLNwN2CWX1E=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLNwOGCZF0M=", + "_parent": { + "$ref": "AAAAAAGFMLNwN2CWX1E=" + }, + "model": { + "$ref": "AAAAAAGFMLNwNGCVOAs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 598, + "top": 612, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMLNwN2CWX1E=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMLNwOGCaDLI=", + "_parent": { + "$ref": "AAAAAAGFMLNwN2CWX1E=" + }, + "model": { + "$ref": "AAAAAAGFMLNwNGCVOAs=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 628, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "tail": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "points": "578:608;608:608;608:628;584:628", + "nameLabel": { + "$ref": "AAAAAAGFMLNwOGCXVFQ=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMLNwOGCYOg4=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMLNwOGCZF0M=" + }, + "activation": { + "$ref": "AAAAAAGFMLNwOGCaDLI=" + } + }, + { + "_type": "UMLSeqMessageView", + "_id": "AAAAAAGFMLTwAWC3Gw0=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "model": { + "$ref": "AAAAAAGFMLTv/2C2OXg=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLTwAmC4h2Q=", + "_parent": { + "$ref": "AAAAAAGFMLTwAWC3Gw0=" + }, + "model": { + "$ref": "AAAAAAGFMLTv/2C2OXg=" + }, + "font": "Arial;13;0", + "left": 615, + "top": 671, + "width": 195, + "height": 26, + "alpha": 1.551750012626281, + "distance": 105.01904589168576, + "hostEdge": { + "$ref": "AAAAAAGFMLTwAWC3Gw0=" + }, + "edgePosition": 1, + "text": "8 : Put the variables in the currentDrag variables", + "wordWrap": true + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLTwAmC5hFs=", + "_parent": { + "$ref": "AAAAAAGFMLTwAWC3Gw0=" + }, + "model": { + "$ref": "AAAAAAGFMLTv/2C2OXg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 632, + "top": 675, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAGFMLTwAWC3Gw0=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAGFMLTwAmC6D4U=", + "_parent": { + "$ref": "AAAAAAGFMLTwAWC3Gw0=" + }, + "model": { + "$ref": "AAAAAAGFMLTv/2C2OXg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 598, + "top": 676, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 10, + "hostEdge": { + "$ref": "AAAAAAGFMLTwAWC3Gw0=" + }, + "edgePosition": 1 + }, + { + "_type": "UMLActivationView", + "_id": "AAAAAAGFMLTwAmC7LPM=", + "_parent": { + "$ref": "AAAAAAGFMLTwAWC3Gw0=" + }, + "model": { + "$ref": "AAAAAAGFMLTv/2C2OXg=" + }, + "font": "Arial;13;0", + "left": 571, + "top": 692, + "width": 14, + "height": 29 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "tail": { + "$ref": "AAAAAAGFMKFJRl6ghB8=" + }, + "points": "578:672;608:672;608:692;584:692", + "nameLabel": { + "$ref": "AAAAAAGFMLTwAmC4h2Q=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAGFMLTwAmC5hFs=" + }, + "propertyLabel": { + "$ref": "AAAAAAGFMLTwAmC6D4U=" + }, + "activation": { + "$ref": "AAAAAAGFMLTwAmC7LPM=" + } + }, + { + "_type": "UMLNoteView", + "_id": "AAAAAAGFMMczonATffc=", + "_parent": { + "$ref": "AAAAAAGFMKA6ol5psQo=" + }, + "font": "Arial;13;0", + "left": 328, + "top": 776, + "width": 193, + "height": 65, + "text": "This method replace the dropped on Item with the item that was dragged" + } + ] + } + ], + "messages": [ + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMKK2Nl7wBu0=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "Drop the dragged item", + "source": { + "$ref": "AAAAAAGFMKCOWF54DMc=" + }, + "target": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + } + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMKdP5l+aG5I=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "dropped on item's nbItem is now stackSize and the dragged item number of items is the rest", + "source": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "target": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + } + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMKlKLF/E2sc=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "dropped on item's nbItem is the sum and currentDragNbItem=-1 to signify that sum < stackSize", + "source": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "target": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + } + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMK53cGAR7Yk=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "Put the droppedOn item's nb of items in a variabledropped on item index, item and nbItems in variables", + "source": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "target": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + } + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMLkq5GELPZ8=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "dragged nbItems", + "source": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "target": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "assignmentTarget": "droppedOn nbItems" + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMLHZl2B1P4M=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "Put in variables the item and nbItems of the dropped on item", + "source": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "target": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + } + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMLNwNGCVOAs=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "dragged item, same for the nbItems", + "source": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "target": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "arguments": "so the dragged item take the place of the droppedOnItem", + "assignmentTarget": "droppedOn item" + }, + { + "_type": "UMLMessage", + "_id": "AAAAAAGFMLTv/2C2OXg=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "Put the variables in the currentDrag variables", + "source": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + }, + "target": { + "$ref": "AAAAAAGFMKFJRF6ZSlE=" + } + } + ], + "participants": [ + { + "_type": "UMLLifeline", + "_id": "AAAAAAGFMKCOWF54DMc=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "User", + "represent": { + "$ref": "AAAAAAGFMKCOV153z9k=" + }, + "isMultiInstance": false + }, + { + "_type": "UMLLifeline", + "_id": "AAAAAAGFMKFJRF6ZSlE=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "InventoryComp", + "represent": { + "$ref": "AAAAAAGFMKFJQ16YkNE=" + }, + "isMultiInstance": false + } + ], + "fragments": [ + { + "_type": "UMLCombinedFragment", + "_id": "AAAAAAGFMKPsul8GJxI=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "if", + "interactionOperator": "alt", + "operands": [ + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFMKPsvV8HfYI=", + "_parent": { + "$ref": "AAAAAAGFMKPsul8GJxI=" + }, + "name": "Operand1", + "guard": "Dragged item==Item dropped on" + }, + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFMKz5Wl//Uv4=", + "_parent": { + "$ref": "AAAAAAGFMKPsul8GJxI=" + }, + "name": "InteractionOperand1", + "guard": "Dragged item != item dropped on" + } + ] + }, + { + "_type": "UMLCombinedFragment", + "_id": "AAAAAAGFMKalBV99zG8=", + "_parent": { + "$ref": "AAAAAAGFMKA6oV5olIk=" + }, + "name": "if", + "interactionOperator": "alt", + "operands": [ + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFMKalBl9+NaE=", + "_parent": { + "$ref": "AAAAAAGFMKalBV99zG8=" + }, + "name": "Operand1", + "guard": "sum > stackSize" + }, + { + "_type": "UMLInteractionOperand", + "_id": "AAAAAAGFMKkKll+6C9I=", + "_parent": { + "$ref": "AAAAAAGFMKalBV99zG8=" + }, + "name": "InteractionOperand1", + "guard": "sum < stackSize" + } + ] + } + ] + } + ], + "attributes": [ + { + "_type": "UMLAttribute", + "_id": "AAAAAAGFMKCOV153z9k=", + "_parent": { + "$ref": "AAAAAAGFMKA6nl5n8yI=" + }, + "name": "Role1", + "type": "" + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGFMKFJQ16YkNE=", + "_parent": { + "$ref": "AAAAAAGFMKA6nl5n8yI=" + }, + "name": "Role2", + "type": "" + }, + { + "_type": "UMLAttribute", + "_id": "AAAAAAGFMKFl2F64mbE=", + "_parent": { + "$ref": "AAAAAAGFMKA6nl5n8yI=" + }, + "name": "Role3", + "type": "" + } + ] + } + ] +} \ No newline at end of file