Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame^] | 1 | |
| 2 | /* |
| 3 | * Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
Matteo Scandolo | 6bc31bf | 2016-08-29 10:17:31 -0700 | [diff] [blame] | 19 | (function () { |
| 20 | 'use strict'; |
| 21 | |
| 22 | angular.module('xos.mcord-slicing') |
| 23 | .service('SliceGraph', function(_, NodePositioner){ |
| 24 | const g = new graphlib.Graph(); |
| 25 | |
| 26 | /** |
| 27 | * @ngdoc method |
| 28 | * @name xos.mcord-slicing.SliceGraph#buildGraph |
| 29 | * @methodOf xos.mcord-slicing.SliceGraph |
| 30 | * @description |
| 31 | * buildGraph |
| 32 | * @param {object} data An object in the for of {nodes: [], links: []} describing the graph |
| 33 | * @returns {null} |
| 34 | **/ |
| 35 | this.buildGraph = (data) => { |
| 36 | _.forEach(data.nodes, n => g.setNode(n.id, n)); |
| 37 | _.forEach(data.links, n => g.setEdge(n.source, n.target, n)); |
| 38 | }; |
| 39 | |
| 40 | this.getLinks = () => { |
| 41 | return g.edges().map(e => { |
| 42 | return { |
| 43 | source: g.node(e.v), |
| 44 | target: g.node(e.w), |
| 45 | data: g.edge(e) |
| 46 | } |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | this.getGraph = () => g; |
| 51 | |
| 52 | // find the successor of a node |
| 53 | this.getNodeSuccessors = (node) => { |
| 54 | return _.map(g.successors(node.id), n => { |
| 55 | return g.node(n); |
| 56 | }) |
| 57 | }; |
| 58 | |
| 59 | this.getNodePredecessors = (node) => { |
| 60 | return _.map(g.predecessors(node.id), n => { |
| 61 | return g.node(n); |
| 62 | }); |
| 63 | }; |
| 64 | |
| 65 | // get data plane successors of a node |
| 66 | this.getNodeDataPlaneSuccessors = (node) => { |
| 67 | return _.filter(this.getNodeSuccessors(node), n => { |
| 68 | return n.plane === 'data'; |
| 69 | }); |
| 70 | }; |
| 71 | |
| 72 | // find the end of the graph toward upstream |
| 73 | this.getUpstreamSinks = (el) => { |
| 74 | const sinks = _.reduce(g.sinks(), (sinks, node, i) => { |
| 75 | let n = g.node(node); |
| 76 | if(n.type === 'upstream'){ |
| 77 | sinks.push(n); |
| 78 | } |
| 79 | return sinks; |
| 80 | }, []); |
| 81 | |
| 82 | return _.map(sinks, (s, i) => { |
| 83 | s.position = { |
| 84 | top: 0, |
| 85 | bottom: el.clientHeight, |
| 86 | total: sinks.length, |
| 87 | index: i + 1 |
| 88 | }; |
| 89 | return s; |
| 90 | }) |
| 91 | }; |
| 92 | |
| 93 | this.positionGraph = (el) => { |
| 94 | // get root node |
| 95 | let nodes = this.getUpstreamSinks(el); |
| 96 | |
| 97 | // find children, recursively |
| 98 | let children = []; |
| 99 | _.forEach(nodes, (n, i) => { |
| 100 | children = children.concat(this.findPredecessor(n)); |
| 101 | }); |
| 102 | nodes = nodes.concat(children); |
| 103 | |
| 104 | // calculate the position for all nodes |
| 105 | nodes = _.map(nodes, r => { |
| 106 | return NodePositioner.getDataPlaneNodePos(r, el); |
| 107 | }); |
| 108 | |
| 109 | return nodes; |
| 110 | }; |
| 111 | |
| 112 | // this iterate on all the nodes, and add position information |
| 113 | this.findPredecessor = (node) => { |
| 114 | let preds = g.predecessors(node.id); |
| 115 | |
| 116 | // saving predecessor information |
| 117 | preds = preds.map((p, i) => { |
| 118 | p = g.node(p); |
| 119 | const parentAvailableSpace = (node.position.bottom - node.position.top) / node.position.total; |
| 120 | const parentY = NodePositioner.getVpos(node); |
| 121 | p.position = { |
| 122 | top: parentY - (parentAvailableSpace / 2), |
| 123 | bottom: (parentY + (parentAvailableSpace / 2)), |
| 124 | total: preds.length, |
| 125 | index: i + 1 |
| 126 | }; |
| 127 | return p; |
| 128 | }); |
| 129 | |
| 130 | //recurse |
| 131 | const predsChild = _.reduce(preds, (list, p) => { |
| 132 | return list.concat(this.findPredecessor(p)); |
| 133 | }, []); |
| 134 | |
| 135 | return preds.concat(predsChild); |
| 136 | }; |
| 137 | |
| 138 | this.getGraphLinks = (nodes) => { |
| 139 | const links = []; |
| 140 | _.forEach(nodes, n => { |
| 141 | const edges = g.inEdges(n.id); |
| 142 | _.forEach(edges, e => { |
| 143 | links.push({ |
| 144 | source: g.node(e.v), |
| 145 | target: g.node(e.w), |
| 146 | data: g.edge(e) |
| 147 | }); |
| 148 | }); |
| 149 | }); |
| 150 | return links; |
| 151 | }; |
| 152 | |
| 153 | this.getDataPlaneForSlice = (ranRu, sliceId) => { |
| 154 | // hardcoded, likely to be improved |
| 155 | const ranCu = g.node(g.successors(ranRu.id)[0]); |
| 156 | const sgw = g.node(g.successors(ranCu.id)[0]); |
| 157 | const pgw = g.node(g.successors(sgw.id)[0]); |
| 158 | |
| 159 | // augmenting nodes with sliceId |
| 160 | ranRu.sliceId = sliceId; |
| 161 | ranCu.sliceId = sliceId; |
| 162 | sgw.sliceId = sliceId; |
| 163 | pgw.sliceId = sliceId; |
| 164 | return [ranRu, ranCu, sgw, pgw]; |
| 165 | }; |
| 166 | |
| 167 | this.getControlPlaneForSlice = (dataPlane, sliceId) => { |
| 168 | return _.reduce(dataPlane, (cp_nodes, dp_node) => { |
| 169 | // NOTE: looks that all the time the cplane version of the node is successors number 1, we may need to check |
| 170 | let cp_node = g.node(g.successors(dp_node.id)[1]); |
| 171 | |
| 172 | // position relative to their data-plane node |
| 173 | cp_node = NodePositioner.getControlPlaneNodePos(cp_node, dp_node); |
| 174 | cp_node.sliceId = sliceId; |
| 175 | // hardcoded |
| 176 | // if control plane node is a sgw, there is an MME attached |
| 177 | if(cp_node.type === 'sgw'){ |
| 178 | let mme = g.node(g.successors(cp_node.id)[1]); |
| 179 | // position relative to their data-plane node |
| 180 | mme = NodePositioner.getControlPlaneNodePos(mme, cp_node); |
| 181 | mme.sliceId = sliceId; |
| 182 | cp_nodes.push(mme); |
| 183 | } |
| 184 | |
| 185 | return cp_nodes.concat(cp_node); |
| 186 | }, []); |
| 187 | }; |
| 188 | |
| 189 | this.activeSlices = []; |
| 190 | // this.usedSlicesId = []; |
| 191 | this.getSliceDetail= (node) => { |
| 192 | if(node.sliceId && this.activeSlices.indexOf(node.sliceId) > -1){ |
| 193 | // the slice is already active, return an empty set |
| 194 | return [[], []]; |
| 195 | } |
| 196 | |
| 197 | // let sliceId; |
| 198 | // if (node.sliceId){ |
| 199 | // sliceId = node.sliceId; |
| 200 | // } |
| 201 | // else{ |
| 202 | const sliceId = _.min(this.activeSlices) ? _.min(this.activeSlices) + 1 : 1; |
| 203 | // } |
| 204 | this.activeSlices.push(sliceId); |
| 205 | // this.usedSlicesId.push(sliceId); |
| 206 | |
| 207 | // getting the beginning of the slice |
| 208 | const ranRu = (function getRanRu(n) { |
| 209 | if(n.type === 'ran-ru'){ |
| 210 | return n; |
| 211 | } |
| 212 | // we assume that in the slice node have only one predecessor |
| 213 | const pred = g.predecessors(n.id); |
| 214 | return getRanRu(g.node(pred[0])); |
| 215 | })(node); |
| 216 | |
| 217 | // get data plane nodes for this slice (need them to get the corresponding control plane) |
| 218 | const dp_nodes = this.getDataPlaneForSlice(ranRu, sliceId); |
| 219 | // get control plane nodes for this slice |
| 220 | const cp_nodes = this.getControlPlaneForSlice(dp_nodes, sliceId); |
| 221 | |
| 222 | const links = this.getGraphLinks(cp_nodes); |
| 223 | |
| 224 | // add a close button |
| 225 | let closeButton = { |
| 226 | name: 'Close', |
| 227 | id: `close-button-${sliceId}`, |
| 228 | type: 'button', |
| 229 | sliceId: sliceId |
| 230 | }; |
| 231 | closeButton = NodePositioner.getControlPlaneNodePos(closeButton, cp_nodes[3]); |
| 232 | cp_nodes.push(closeButton); |
| 233 | |
| 234 | return [cp_nodes, links]; |
| 235 | }; |
| 236 | |
| 237 | this.removeActiveSlice = sliceId => { |
| 238 | // nodes are remove from the d3 nodes identified by id |
| 239 | this.activeSlices.splice(this.activeSlices.indexOf(sliceId), 1); |
| 240 | }; |
| 241 | |
| 242 | }) |
| 243 | .service('NodePositioner', function(_, sliceElOrder){ |
| 244 | |
| 245 | let el; |
| 246 | |
| 247 | this.storeEl = (_el) => { |
| 248 | el = _el; |
| 249 | }; |
| 250 | |
| 251 | this.getHpos = (node, el) => { |
| 252 | let elPos = sliceElOrder.indexOf(node.type) + 1; |
| 253 | |
| 254 | // hardcoded |
| 255 | if(node.type === 'mme'){ |
| 256 | elPos = sliceElOrder.indexOf('sgw') + 1 |
| 257 | } |
| 258 | if(node.type === 'button'){ |
| 259 | elPos = sliceElOrder.indexOf('pgw') + 1 |
| 260 | } |
| 261 | let x = (el.clientWidth / (sliceElOrder.length + 1)) * elPos; |
| 262 | return x; |
| 263 | }; |
| 264 | |
| 265 | this.getVpos = (node) => { |
| 266 | // calculate the available space to distribute items |
| 267 | const availableSpace = node.position.bottom - node.position.top; |
| 268 | |
| 269 | // calculate the distance between each item |
| 270 | const step = availableSpace / (node.position.total + 1); |
| 271 | |
| 272 | // vertical position |
| 273 | const y = (step * node.position.index) + node.position.top; |
| 274 | return y; |
| 275 | }; |
| 276 | |
| 277 | // for nodes that are part of the data plane |
| 278 | this.getDataPlaneNodePos = (node) => { |
| 279 | const x = this.getHpos(node, el); |
| 280 | const y = this.getVpos(node); |
| 281 | node.x = x; |
| 282 | node.y = y; |
| 283 | node.transform = `translate(${x}, ${y})`; |
| 284 | node.fixed = true; |
| 285 | return node; |
| 286 | }; |
| 287 | |
| 288 | // control element nodes are positioned relatively to their corresponding data plane node |
| 289 | this.getControlPlaneNodePos = (cp_node, dp_node) => { |
| 290 | const x = this.getHpos(cp_node, el); |
| 291 | const y = dp_node.y - 75; |
| 292 | cp_node.x = x; |
| 293 | cp_node.y = y; |
| 294 | cp_node.transform = `translate(${x}, ${y})`; |
| 295 | cp_node.fixed = true; |
| 296 | return cp_node; |
| 297 | }; |
| 298 | |
| 299 | }) |
| 300 | .value('sliceElOrder', [ |
| 301 | 'ue', |
| 302 | 'profile', |
| 303 | 'ran-ru', |
| 304 | 'ran-cu', |
| 305 | 'sgw', |
| 306 | 'pgw', |
| 307 | 'upstream' |
Matteo Scandolo | 4d121c2 | 2016-10-31 13:20:31 +0100 | [diff] [blame] | 308 | ]) |
| 309 | .constant('mCordSlicingIcons', { |
| 310 | mobile: `M26.1,0c0.5,0.2,1.1,0.4,1.6,0.7C28.7,1.4,29,2.4,29,3.5c0,0.2,0,0.4,0,0.6c0,14,0,28.1,0,42.1c0,1-0.2,1.8-0.9,2.6 |
| 311 | c-0.4,0.5-0.9,0.8-1.5,1c-0.2,0.1-0.3,0.1-0.5,0.2c-7.7,0-15.5,0-23.2,0c-0.5-0.2-1.1-0.4-1.5-0.7c-1-0.7-1.4-1.7-1.4-2.9 |
| 312 | c0-3.8,0-7.6,0-11.4C0,24.5,0,14.1,0,3.8c0-1,0.2-1.8,0.9-2.6c0.4-0.5,0.9-0.8,1.5-1C2.6,0.1,2.7,0.1,2.9,0C10.6,0,18.4,0,26.1,0z |
| 313 | M26.7,43.7c0-12.8,0-25.6,0-38.3c-8.1,0-16.2,0-24.3,0c0,12.8,0,25.6,0,38.3C10.5,43.7,18.6,43.7,26.7,43.7z M16.2,46.6 |
| 314 | c0-0.9-0.8-1.7-1.7-1.7c-0.9,0-1.7,0.8-1.7,1.7c0,0.9,0.8,1.7,1.7,1.7C15.5,48.3,16.2,47.5,16.2,46.6z M14.5,3.3c0.8,0,1.5,0,2.3,0 |
| 315 | c0.4,0,0.8,0,1.2,0c0.3,0,0.4-0.1,0.5-0.4c0-0.3-0.2-0.4-0.4-0.4c-0.1,0-0.2,0-0.2,0c-2.2,0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0.6,6.8-3.6,13.1-10.2,15.1C15.2,40,11.6,39.7,8.2,38C8.1,38,8,37.9,7.9,37.9z |
| 403 | M21.8,27.9c-3.1,0-6.1,0-9.2,0c0-3.3,0-6.6,0-10c0.9,0,1.9,0,2.8,0c0,2.4,0,4.7,0,7.1c2.1,0,4.2,0,6.4,0 |
| 404 | C21.8,26,21.8,26.9,21.8,27.9z |
| 405 | M3.5,34.4c0.9-0.6,1.7-1.2,2.6-1.8c0.5,0.5,1.1,1,1.6,1.5c-0.5,0.9-1,1.8-1.6,2.7C5.1,36.1,4.3,35.3,3.5,34.4z |
| 406 | M0.8,29.7c1.1-0.3,2.1-0.5,3.1-0.8c0.3,0.7,0.6,1.3,1,2c-0.8,0.6-1.7,1.2-2.6,1.9C1.7,31.7,1.2,30.7,0.8,29.7z |
| 407 | M3.2,24.7c0.1,0.7,0.1,1.4,0.2,2.1c-1,0.3-2,0.5-3.1,0.8c-0.1-1-0.2-1.9-0.2-2.9C1.1,24.7,2.2,24.7,3.2,24.7z` |
| 408 | }); |
Matteo Scandolo | 6bc31bf | 2016-08-29 10:17:31 -0700 | [diff] [blame] | 409 | })(); |