aboutsummaryrefslogtreecommitdiffstats
path: root/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo
diff options
context:
space:
mode:
Diffstat (limited to 'dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo')
-rw-r--r--dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/Scenarios.js110
-rw-r--r--dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/BLANK.json16
-rw-r--r--dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/DIMENSIONS.json16
-rw-r--r--dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/ECOMP.json62
-rw-r--r--dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/BLANK.json37
-rw-r--r--dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/DIMENSIONS.json91
-rw-r--r--dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/ECOMP.json514
7 files changed, 846 insertions, 0 deletions
diff --git a/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/Scenarios.js b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/Scenarios.js
new file mode 100644
index 0000000000..4130ec7ec3
--- /dev/null
+++ b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/Scenarios.js
@@ -0,0 +1,110 @@
+/*!
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+/**
+ * Example scenarios, for development, testing and demos.
+ */
+export default class Scenarios {
+
+ // ///////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Construct scenarios; read model and metamodel templates.
+ */
+ constructor() {
+ this.templates = {
+ model: {
+ ecomp: require('./model/ECOMP.json'),
+ blank: require('./model/BLANK.json'),
+ dimensions: require('./model/DIMENSIONS.json'),
+ },
+ metamodel: {
+ ecomp: require('./metamodel/ECOMP.json'),
+ blank: require('./metamodel/BLANK.json'),
+ },
+ };
+ }
+
+ // ///////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Get ECOMP scenario.
+ * @return ECOMP scenario JSON.
+ */
+ getECOMP() {
+ return JSON.parse(JSON.stringify(this.templates.model.ecomp));
+ }
+
+ // ///////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Get ECOMP scenario metamodel.
+ * @return scenario metamodel JSON.
+ */
+ getECOMPMetamodel() {
+ return JSON.parse(JSON.stringify(this.templates.metamodel.ecomp));
+ }
+
+ // ///////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Get blank scenario.
+ * @return blank scenario JSON.
+ */
+ getBlank() {
+ return JSON.parse(JSON.stringify(this.templates.model.blank));
+ }
+
+ // ///////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Get empty scenario metamodel.
+ * @return empty metamodel JSON.
+ */
+ getBlankMetamodel() {
+ return JSON.parse(JSON.stringify(this.templates.metamodel.blank));
+ }
+
+ // ///////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Get scenario.
+ * @return scenario JSON.
+ */
+ getDimensions() {
+ return JSON.parse(JSON.stringify(this.templates.model.dimensions));
+ }
+
+ // ///////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Get scenario metamodel.
+ * @return metamodel JSON.
+ */
+ getDimensionsMetamodel() {
+ return JSON.parse(JSON.stringify(this.templates.metamodel.blank));
+ }
+
+ // ///////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Get demo metamodels.
+ * @returns {*[]}
+ */
+ getMetamodels() {
+ return [this.getBlankMetamodel(), this.getDimensionsMetamodel(), this.getECOMPMetamodel()];
+ }
+}
diff --git a/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/BLANK.json b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/BLANK.json
new file mode 100644
index 0000000000..2853405883
--- /dev/null
+++ b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/BLANK.json
@@ -0,0 +1,16 @@
+{
+ "diagram": {
+ "metadata": {
+ "id": "BLANK",
+ "name": "Blank"
+ },
+ "lifelines": {
+ "lifelines": [],
+ "constraints": {
+ "create": true,
+ "delete": true,
+ "reorder": true
+ }
+ }
+ }
+}
diff --git a/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/DIMENSIONS.json b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/DIMENSIONS.json
new file mode 100644
index 0000000000..f02111d0f3
--- /dev/null
+++ b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/DIMENSIONS.json
@@ -0,0 +1,16 @@
+{
+ "diagram": {
+ "metadata": {
+ "id": "DIMENSIONS",
+ "name": "Dimensions"
+ },
+ "lifelines": {
+ "lifelines": [],
+ "constraints": {
+ "create": true,
+ "delete": true,
+ "reorder": true
+ }
+ }
+ }
+}
diff --git a/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/ECOMP.json b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/ECOMP.json
new file mode 100644
index 0000000000..939c1398b5
--- /dev/null
+++ b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/metamodel/ECOMP.json
@@ -0,0 +1,62 @@
+{
+ "diagram": {
+ "metadata": {
+ "id": "ECOMP",
+ "name": "ECOMP"
+
+ },
+ "lifelines": {
+ "lifelines": [{
+ "id": "1",
+ "name": "Customer"
+ }, {
+ "id": "2",
+ "name": "MSO"
+ }, {
+ "id": "3",
+ "name": "SDN"
+ }, {
+ "id": "4",
+ "name": "A&AI"
+ }, {
+ "id": "5",
+ "name": "IPE TOR"
+ }, {
+ "id": "6",
+ "name": "ORM"
+ }, {
+ "id": "7",
+ "name": "ORD"
+ }, {
+ "id": "8",
+ "name": "Heat"
+ }, {
+ "id": "9",
+ "name": "NovaAPI"
+ }, {
+ "id": "10",
+ "name": "Ntrn Contrl"
+ }, {
+ "id": "11",
+ "name": "RO"
+ }, {
+ "id": "12",
+ "name": "Nova Agent"
+ }, {
+ "id": "13",
+ "name": "VF Agent"
+ }, {
+ "id": "14",
+ "name": "Hypervisor"
+ }, {
+ "id": "15",
+ "name": "VF"
+ }],
+ "constraints": {
+ "create": true,
+ "delete": true,
+ "reorder": true
+ }
+ }
+ }
+}
diff --git a/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/BLANK.json b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/BLANK.json
new file mode 100644
index 0000000000..784a80e820
--- /dev/null
+++ b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/BLANK.json
@@ -0,0 +1,37 @@
+{
+ "diagram": {
+ "metadata": {
+ "id": "$",
+ "ref": "BLANK",
+ "name": "New Sequence"
+ },
+ "lifelines": [
+ {
+ "id": "Alice",
+ "name": "Alice"
+ },
+ {
+ "id": "Bob",
+ "name": "Bob"
+ }
+ ],
+ "steps": [
+ {
+ "message": {
+ "from": "Alice",
+ "to": "Bob",
+ "label": "Sup Bob",
+ "type": "request"
+ }
+ },
+ {
+ "message": {
+ "from": "Bob",
+ "to": "Alice",
+ "label": "Yo Alice",
+ "type": "response"
+ }
+ }
+ ]
+ }
+}
diff --git a/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/DIMENSIONS.json b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/DIMENSIONS.json
new file mode 100644
index 0000000000..642e34a785
--- /dev/null
+++ b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/DIMENSIONS.json
@@ -0,0 +1,91 @@
+{
+ "diagram": {
+ "metadata": {
+ "id": "DIMENSIONS1",
+ "name": "Dimensions Test",
+ "ref": "DIMENSIONS"
+ },
+ "lifelines": [
+ {
+ "id": "L01",
+ "name": "Lorum Ipsum"
+ },
+ {
+ "id": "L02",
+ "name": "Donec nisi urna, porttitor efficitur felis vel, efficitur consequat nunc"
+ },
+ {
+ "id": "L03",
+ "name": "Mauris dignissim SphymomanometerSphymomanometer enim non sapien tristique lacinia"
+ }
+ ],
+ "steps": [
+ {
+ "message": {
+ "id": "M01",
+ "from": "L01",
+ "to": "L02",
+ "name": "Morbi",
+ "type": "request",
+ "notes": [
+ "Proin non libero malesuada."
+ ],
+ "fragment": {
+ "operator": "alt",
+ "start": true,
+ "guard": "Curabitur sollicitudin nulla elit, et ultrices tortor faucibus quis"
+ },
+ "occurrences": {
+ "start": ["L01", "L02"],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M02",
+ "from": "L02",
+ "to": "L03",
+ "name": "Quisque pretium tellus sit amet congue dictum. Mauris ac rutrum arcu, et fringilla orci",
+ "type": "request",
+ "notes": [
+ "Nam quis felis hendrerit, lacinia ipsum vitae, faucibus elit. Morbi sit amet nunc eget massa vehicula rhoncus sit amet vel tellus. Aliquam accumsan eros elit, et sollicitudin lacus vehicula eu. Aenean rhoncus justo ut felis tincidunt, sit amet vulputate metus aliquet. Phasellus tellus est, consequat nec ex mollis, lacinia vestibulum justo. Nam quis felis hendrerit, lacinia ipsum vitae, faucibus elit. Morbi sit amet nunc eget massa vehicula rhoncus sit amet vel tellus. Aliquam accumsan eros elit, et sollicitudin lacus vehicula eu. Aenean rhoncus justo ut felis tincidunt, sit amet vulputate metus aliquet. Phasellus tellus est, consequat nec ex mollis, lacinia vestibulum justo."
+ ],
+ "occurrences": {
+ "start": [],
+ "stop": ["L02"]
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M03",
+ "from": "L01",
+ "to": "L03",
+ "name": "Nullam",
+ "type": "response",
+ "fragment": {
+ "stop": true
+ },
+ "occurrences": {
+ "start": [],
+ "stop": ["L01"]
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M04",
+ "from": "L01",
+ "to": "L03",
+ "name": "Etiam convallis augue est. ",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/ECOMP.json b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/ECOMP.json
new file mode 100644
index 0000000000..dd9bfc5eb0
--- /dev/null
+++ b/dox-sequence-diagram-ui/src/main/webapp/lib/ecomp/asdc/sequencer/model/demo/scenarios/model/ECOMP.json
@@ -0,0 +1,514 @@
+{
+ "diagram": {
+ "metadata": {
+ "id": "ECOMP1",
+ "name": "Detailed flow in Ecomp1",
+ "ref": "ECOMP"
+ },
+ "lifelines": [
+ {
+ "id": "L01",
+ "name": "Customer"
+ },
+ {
+ "id": "L02",
+ "name": "MSO"
+ },
+ {
+ "id": "L03",
+ "name": "SDN"
+ },
+ {
+ "id": "L04",
+ "name": "A&AI"
+ },
+ {
+ "id": "L05",
+ "name": "IPE TOR"
+ },
+ {
+ "id": "L06",
+ "name": "ORM"
+ },
+ {
+ "id": "L07",
+ "name": "ORD"
+ },
+ {
+ "id": "L08",
+ "name": "Heat"
+ },
+ {
+ "id": "L09",
+ "name": "NovaAPI"
+ },
+ {
+ "id": "L10",
+ "name": "Ntrn Contrl"
+ },
+ {
+ "id": "L11",
+ "name": "RO"
+ },
+ {
+ "id": "L12",
+ "name": "Nova Agent"
+ },
+ {
+ "id": "L13",
+ "name": "VF Agent"
+ },
+ {
+ "id": "L14",
+ "name": "Hypervisor"
+ },
+ {
+ "id": "L15",
+ "name": "VF"
+ }
+ ],
+ "steps": [
+ {
+ "message": {
+ "id": "M01",
+ "from": "L01",
+ "to": "L02",
+ "name": "Create",
+ "type": "request",
+ "notes": [
+ "This note is short."
+ ],
+ "occurrences": {
+ "start": ["L01", "L02"],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M02",
+ "from": "L02",
+ "to": "L04",
+ "name": "Check Tenant",
+ "type": "request",
+ "occurrences": {
+ "start": ["L02"],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M03",
+ "from": "L02",
+ "to": "L06",
+ "name": "Create Tenant",
+ "type": "request",
+ "fragment": {
+ "operator": "alt",
+ "start": true,
+ "guard": "Does not exist"
+ },
+ "occurrences": {
+ "start": ["L06"],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M04",
+ "from": "L06",
+ "to": "L07",
+ "name": "Distribute",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M05",
+ "from": "L06",
+ "to": "L02",
+ "name": "Async Response",
+ "type": "response",
+ "asynchronous": true,
+ "fragment": {
+ "stop": true
+ },
+ "occurrences": {
+ "start": [],
+ "stop": ["L02", "L06"]
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M06",
+ "from": "L07",
+ "to": "L08",
+ "name": "Push",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M07",
+ "from": "L08",
+ "to": "L02",
+ "name": "Tenant Complete",
+ "type": "response",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M08",
+ "from": "L02",
+ "to": "L03",
+ "name": "Service Topology",
+ "type": "request",
+ "occurrences": {
+ "start": ["L03"],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M09",
+ "from": "L03",
+ "to": "L05",
+ "name": "Pre-configs",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M10",
+ "from": "L03",
+ "to": "L04",
+ "name": "Retrieve and populate",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": ["L03"]
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M11",
+ "from": "L02",
+ "to": "L08",
+ "name": "VNF PreRequisite Heat Template",
+ "type": "request",
+ "notes": [
+ "I got up and made coffee and read my emails and answered them until I got frustrated and made a mental note to answer the others later and then looked out of the window for a while and then made more coffee."
+ ],
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M12",
+ "from": "L08",
+ "to": "L10",
+ "name": "Provider and OAM nw",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M13",
+ "from": "L02",
+ "to": "L08",
+ "name": "Get Stack Status",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M14",
+ "from": "L08",
+ "to": "L02",
+ "name": "Status complete",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M15",
+ "from": "L11",
+ "to": "L04",
+ "name": "Provider and OAM Inventory",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M16",
+ "from": "L02",
+ "to": "L08",
+ "name": "VNF Server Heat Template",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M17",
+ "from": "L08",
+ "to": "L10",
+ "name": "Show Port",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M18",
+ "from": "L11",
+ "to": "L02",
+ "name": "Async Response with Stack ID",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M19",
+ "from": "L10",
+ "to": "L08",
+ "name": "Response",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M20",
+ "from": "L08",
+ "to": "L09",
+ "name": "Nova VM",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M21",
+ "from": "L09",
+ "to": "L12",
+ "name": "Scheduler Picks Nova Agent",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M22",
+ "from": "L12",
+ "to": "L14",
+ "name": "Picks VF",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M23",
+ "from": "L12",
+ "to": "L10",
+ "name": "Retrieves Port Info",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M24",
+ "from": "L12",
+ "to": "L13",
+ "name": "Calls CF Agent",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M25",
+ "from": "L13",
+ "to": "L15",
+ "name": "Configure VF",
+ "type": "response",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M26",
+ "from": "L15",
+ "to": "L13",
+ "name": "Response",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M27",
+ "from": "L13",
+ "to": "L12",
+ "name": "Complete",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M28",
+ "from": "L12",
+ "to": "L08",
+ "name": "Response Complete",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M29",
+ "from": "L11",
+ "to": "L04",
+ "name": "VServer and Show Port Inventory",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M30",
+ "from": "L02",
+ "to": "L08",
+ "name": "Get Stack Status",
+ "type": "request",
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M31",
+ "from": "L08",
+ "to": "L02",
+ "name": "Stack Status Complete",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": []
+ }
+ }
+ },
+ {
+ "message": {
+ "id": "M32",
+ "from": "L02",
+ "to": "L01",
+ "name": "Done",
+ "type": "response",
+ "asynchronous": true,
+ "occurrences": {
+ "start": [],
+ "stop": ["L01", "L02"]
+ }
+ }
+ }
+ ]
+ }
+}