{
 "$schema": "../../lib/umlimator.schema.json",
 "schemaVersion": 2,
 "title": "Object diagram",
 "root": "snapshot",
 "nodes": [
  {
   "id": "sales",
   "type": "uml.Package",
   "label": "sales"
  },
  {
   "id": "catalog",
   "type": "uml.Package",
   "label": "catalog"
  },
  {
   "id": "customer",
   "type": "uml.Class",
   "label": "Customer",
   "members": [
    {
     "id": "customer.email",
     "type": "uml.Property",
     "label": "email",
     "props": {
      "visibility": "private",
      "valueType": "String"
     }
    },
    {
     "id": "customer.name",
     "type": "uml.Property",
     "label": "name",
     "props": {
      "visibility": "private",
      "valueType": "String"
     }
    }
   ]
  },
  {
   "id": "ada",
   "type": "uml.InstanceSpecification",
   "label": "ada",
   "parent": "sales",
   "props": {
    "classifier": "Customer"
   },
   "members": [
    {
     "id": "ada.email",
     "type": "uml.Slot",
     "label": "email",
     "props": {
      "value": "ada@example.org"
     }
    },
    {
     "id": "ada.name",
     "type": "uml.Slot",
     "label": "name"
    }
   ]
  },
  {
   "id": "order-1042",
   "type": "uml.InstanceSpecification",
   "label": "order1042",
   "parent": "sales",
   "props": {
    "classifier": "Order",
    "stereotypes": [
     "entity"
    ]
   },
   "members": [
    {
     "id": "order-1042.status",
     "type": "uml.Slot",
     "label": "status",
     "props": {
      "value": "placed"
     }
    },
    {
     "id": "order-1042.total",
     "type": "uml.Slot",
     "label": "total",
     "props": {
      "value": "34.00 EUR"
     }
    },
    {
     "id": "order-1042.gift",
     "type": "uml.Slot",
     "label": "giftNote",
     "props": {
      "value": "Happy birthday, Grace! Two old favourites for the long winter evenings, with love from Ada"
     }
    }
   ]
  },
  {
   "id": "line-1",
   "type": "uml.InstanceSpecification",
   "parent": "sales",
   "props": {
    "classifier": "OrderLine"
   },
   "members": [
    {
     "id": "line-1.quantity",
     "type": "uml.Slot",
     "label": "quantity",
     "props": {
      "value": "2"
     }
    }
   ]
  },
  {
   "id": "line-2",
   "type": "uml.InstanceSpecification",
   "parent": "sales",
   "props": {
    "classifier": "OrderLine"
   },
   "members": [
    {
     "id": "line-2.quantity",
     "type": "uml.Slot",
     "label": "quantity",
     "props": {
      "value": "1"
     }
    }
   ]
  },
  {
   "id": "card-1",
   "type": "uml.InstanceSpecification",
   "label": "card",
   "parent": "sales",
   "props": {
    "classifier": "CardPayment"
   },
   "members": [
    {
     "id": "card.amount",
     "type": "uml.Slot",
     "label": "amount",
     "props": {
      "value": "34.00 EUR"
     }
    },
    {
     "id": "card.last4",
     "type": "uml.Slot",
     "label": "last4",
     "props": {
      "value": "4242"
     }
    }
   ]
  },
  {
   "id": "middlemarch",
   "type": "uml.InstanceSpecification",
   "label": "middlemarch",
   "parent": "catalog",
   "props": {
    "classifier": "Book"
   },
   "members": [
    {
     "id": "middlemarch.title",
     "type": "uml.Slot",
     "label": "title",
     "props": {
      "value": "Middlemarch"
     }
    },
    {
     "id": "middlemarch.price",
     "type": "uml.Slot",
     "label": "price",
     "props": {
      "value": "12.50 EUR"
     }
    }
   ]
  },
  {
   "id": "frankenstein",
   "type": "uml.InstanceSpecification",
   "label": "frankenstein",
   "parent": "catalog",
   "props": {
    "classifier": "Book"
   },
   "members": [
    {
     "id": "frankenstein.title",
     "type": "uml.Slot",
     "label": "title",
     "props": {
      "value": "Frankenstein"
     }
    },
    {
     "id": "frankenstein.price",
     "type": "uml.Slot",
     "label": "price",
     "props": {
      "value": "9.00 EUR"
     }
    }
   ]
  },
  {
   "id": "till",
   "type": "uml.InstanceSpecification",
   "label": "webTill",
   "members": [
    {
     "id": "till.opened",
     "type": "uml.Slot",
     "label": "opened",
     "props": {
      "value": "09:00"
     }
    }
   ],
   "parent": "sales"
  },
  {
   "id": "note-lines",
   "type": "uml.Comment",
   "parent": "sales",
   "label": "Order lines are anonymous: only the quantity matters"
  }
 ],
 "edges": [
  {
   "id": "ada-places",
   "type": "uml.Link",
   "from": "ada",
   "to": "order-1042",
   "label": "places",
   "props": {
    "ends": {
     "from": {
      "role": "buyer"
     },
     "to": {
      "role": "orders"
     }
    }
   }
  },
  {
   "id": "ada-recipient",
   "type": "uml.Link",
   "from": "ada",
   "to": "order-1042",
   "label": "ships to",
   "props": {
    "ends": {
     "to": {
      "role": "deliveries"
     }
    }
   }
  },
  {
   "id": "ada-referred",
   "type": "uml.Link",
   "from": "ada",
   "to": "ada",
   "label": "referred"
  },
  {
   "id": "order-line-1",
   "type": "uml.Link",
   "from": "order-1042",
   "to": "line-1",
   "props": {
    "association": "OrderHasLines",
    "ends": {
     "to": {
      "role": "lines"
     }
    }
   }
  },
  {
   "id": "order-line-2",
   "type": "uml.Link",
   "from": "order-1042",
   "to": "line-2",
   "props": {
    "association": "OrderHasLines",
    "ends": {
     "to": {
      "role": "lines"
     }
    }
   }
  },
  {
   "id": "line-1-book",
   "type": "uml.Link",
   "from": "line-1",
   "to": "middlemarch",
   "props": {
    "ends": {
     "to": {
      "role": "book"
     }
    }
   }
  },
  {
   "id": "line-2-book",
   "type": "uml.Link",
   "from": "line-2",
   "to": "frankenstein",
   "props": {
    "ends": {
     "to": {
      "role": "book"
     }
    }
   }
  },
  {
   "id": "order-card",
   "type": "uml.Link",
   "from": "order-1042",
   "to": "card-1",
   "props": {
    "ends": {
     "to": {
      "role": "payments"
     }
    }
   }
  },
  {
   "id": "till-order",
   "type": "uml.Link",
   "from": "till",
   "to": "order-1042",
   "label": "took",
   "props": {
    "stereotypes": [
     "audit"
    ]
   }
  },
  {
   "id": "note-lines-link",
   "type": "uml.CommentLink",
   "from": "note-lines",
   "to": "line-1"
  }
 ],
 "views": [
  {
   "id": "snapshot",
   "diagram": "uml.object",
   "title": "Order 1042, just placed",
   "parent": null,
   "nodeIds": [
    "sales",
    "customer",
    "ada",
    "order-1042",
    "line-1",
    "line-2",
    "card-1",
    "middlemarch",
    "frankenstein",
    "till",
    "note-lines"
   ]
  },
  {
   "id": "snapshot-down",
   "diagram": "uml.object",
   "title": "The same order, laid out down",
   "parent": "snapshot",
   "direction": "down",
   "nodeIds": [
    "sales",
    "customer",
    "ada",
    "order-1042",
    "line-1",
    "line-2",
    "card-1",
    "middlemarch",
    "frankenstein",
    "till",
    "note-lines"
   ]
  }
 ]
}