8e74566eb32d80aa85254982c7dd74f42f8d5608
[osm/riftware.git] /
1 /*
2  * STANDARD_RIFT_IO_COPYRIGHT
3  */
4 /**
5  * Created by onvelocity on 11/23/15.
6  */
7
8 'use strict';
9
10 import DescriptorModel from '../DescriptorModel'
11 import DescriptorModelFactory from '../DescriptorModelFactory'
12
13 export default class VirtualNetworkFunctionReadOnlyWrapper extends DescriptorModel {
14
15         constructor(model, parent) {
16                 super(model, parent);
17         }
18
19         get vld() {
20                 if (!this.model['internal−vld']) {
21                         this.model['internal−vld'] = [];
22                 }
23                 return this.model['internal−vld'].map(d => DescriptorModelFactory.newInternalVirtualLink(d, this.parent));
24         }
25
26         get connectionPoint() {
27                 if (!this.model['connection-point']) {
28                         this.model['connection-point'] = [];
29                 }
30                 return this.model['connection-point'].map(d => DescriptorModelFactory.newConstituentVnfdConnectionPoint(d, this.parent));
31         }
32
33         get connectors() {
34                 return this.connectionPoint;
35         }
36
37 }