2 * STANDARD_RIFT_IO_COPYRIGHT
5 * Created by onvelocity on 11/23/15.
10 import DescriptorModel from '../DescriptorModel'
13 * This class creates the identity of a VirtualNetworkFunctionConnectionPoint on a VNFD. Visually
14 * this class represents an svg:Path between the parent VLD and VirtualNetworkFunctionConnectionPoint.
16 * VNFD.VirtualNetworkFunctionConnectionPoint ====path==== VLD
18 * The VNFD is referenced by nsd.constituent-vnfd.member-vnf-index.
19 * The VirtualNetworkFunctionConnectionPoint is referenced by vnfd.connection-point.name.
21 export default class VnfdConnectionPointRef extends DescriptorModel {
24 return 'vnfd-connection-point-ref';
27 static get className() {
28 return 'VnfdConnectionPointRef';
31 constructor(model, parent) {
33 this.type = 'vnfd-connection-point-ref';
34 this.uiState['qualified-type'] = 'nsd.vld.vnfd-connection-point-ref';
35 this.className = 'VnfdConnectionPointRef';
39 return this.model['member-vnf-index-ref'] + '/' + this.model['vnfd-connection-point-ref'];
47 return this.model['vnfd-id-ref'];
51 return this.model['vnfd-id-ref'] = id;
55 return this.model['member-vnf-index-ref'];
58 set vnfdIndex(index) {
59 return this.model['member-vnf-index-ref'] = index;
62 get vnfdConnectionPointName() {
63 return this.model['vnfd-connection-point-ref'];
66 set vnfdConnectionPointName(name) {
67 return this.model['vnfd-connection-point-ref'] = name;
71 return this.uiState.cpNumber;
75 this.uiState.cpNumber = n;
80 return this.parent.removeVnfdConnectionPointRefKey(this.key);