node.js The node can be defined as the connection point of "ROADM, Attenuator, Transceiver, Amplifier, and Raman Amplifier" and defines the node manipulations.
- Source:
Methods
(inner) addNodeHighlight(nodeID)
Set warning icons to imcompleted node by node ID. Update node size, image by node ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | Node ID. | 
- Source:
(inner) AddNodeMode(nodemode)
Check node Mode 1-roadm, 2-amp, 3-fused, 4-transceiver, 6- raman amp
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodemode | Number | Mode of the component. | 
- Source:
(inner) addNodes(data, callback)
Node creation by node mode. Node will be placed based on co-ordidate points x,y. Node style and configuration data loaded from configurationdata, styledata json.
Parameters:
| Name | Type | Description | 
|---|---|---|
| data | object | The data of the component. | 
| callback | The callback that handles the response. | 
- Source:
(inner) amplifierEdit(nodeID, callback)
Populate Amplifier component details by node ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the Amplifier component. | 
| callback | The callback that handles the response. | 
- Source:
(inner) applyRoadmTemplate(nodeID, roadm_type)
Apply copied template to specified ROADM node. Check node rules and update check-errors summary.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the destination node. | 
| roadm_type | string | Coponent type. | 
- Source:
(inner) applyTemplate(nodes, callback)
Apply copied template to specified node. Apply node rules.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodes | object | Selected destination nodes for apply template. | 
| callback | The callback that handles the response. | 
- Source:
(inner) applyTransceiverTemplate(nodeID, node_type, trans_type)
Apply copied template to specified Transceiver node. Check node rules and update check-errors summary.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the destination node. | 
| node_type | string | Node type. | 
| trans_type | string | Transceiver type. | 
- Source:
(inner) attenuatorEdit(nodeID, callback)
Populate Attenuator component details by node ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the Attenuator component. | 
| callback | The callback that handles the response. | 
- Source:
(inner) clearAmplifier()
Clear input/teporary data and other settings.
- Source:
(inner) clearAttenuator()
Clear input/teporary data and other settings.
- Source:
(inner) clearNodeTemplate()
Reset the copied template data.
- Source:
(inner) clearRamanAmp()
Clear input/teporary data and other settings.
- Source:
(inner) clearRoadm()
Clear input/teporary data and other settings.
- Source:
(inner) clearTransceiver()
Clear input/teporary data and other settings.
- Source:
(inner) copyNode(nodeID, callback)
Bind pasteNode method. Copy node parameters by selected node ID
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | Component ID. | 
| callback | The callback that handles the response. | 
- Source:
(inner) copyNodeTemplate(nodeID, callback)
Copy node template by selected node ID. Validate the node template by type, category
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of Copied node template. | 
| callback | The callback that handles the response. | 
- Source:
(inner) displayNodesHover(params)
Displays node name, type parameter when hover the mouse near the node.
Parameters:
| Name | Type | Description | 
|---|---|---|
| params | object | Node details. | 
- Source:
(inner) nodeName(node_type, amp_category)
Get next level of node label name by node type/amplifer category.
Parameters:
| Name | Type | Description | 
|---|---|---|
| node_type | string | Node type. | 
| amp_category | string | Amplifier category. | 
- Source:
(inner) pasteNode(nodeId)
Create new node by copied node parameters. Node will be placed based on co-ordidates.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeId | string | Copied node ID. | 
- Source:
(inner) ramanAmpEdit(nodeID, callback)
Populate Raman Amplifier component details by node ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the Raman Amplifier component. | 
| callback | The callback that handles the response. | 
- Source:
(inner) realUpdate_Amplifier(id, rtype)
Check Amplifier component rules and update check-errors summary.
Parameters:
| Name | Type | Description | 
|---|---|---|
| id | string | The ID of Amplifier component. | 
| rtype | string | The type of Amplifier component. | 
- Source:
(inner) realUpdate_RamanAmp(id, rtype)
Check Raman Amplifier component rules and update check-errors summary.
Parameters:
| Name | Type | Description | 
|---|---|---|
| id | string | The ID of Raman Amplifier component. | 
| rtype | string | The type of Raman Amplifier component. | 
- Source:
(inner) realUpdate_Roadm(id, rtype)
Check ROADM component rules and update check-errors summary.
Parameters:
| Name | Type | Description | 
|---|---|---|
| id | string | The ID of ROADM component. | 
| rtype | string | The type of ROADM component. | 
- Source:
(inner) realUpdate_Transceiver(id, rtype)
Check Transceiver component rules and update check-errors summary.
Parameters:
| Name | Type | Description | 
|---|---|---|
| id | string | The ID of Transceiver component. | 
| rtype | string | The type of Transceiver component. | 
- Source:
(inner) removeNodes(nodeID, isMultiple)
Remove node by node ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | Component ID. | 
| isMultiple | boolean | Remove multiple node. | 
- Source:
(inner) roadmEdit(nodeID, callback)
Populate ROADM component details by node ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the ROADM component. | 
| callback | The callback that handles the response. | 
- Source:
(inner) transceiverEdit(nodeID, callback)
Populate Transceiver component details by node ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the Transceiver component. | 
| callback | The callback that handles the response. | 
- Source:
(inner) updateAmplifier(nodeID)
Update Amplifier. Update Amplifier label, type by Amplifier ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the Amplifier component | 
- Source:
(inner) updateAttenuator(nodeID)
Update Attenuator. Update Attenuator label, type by Attenuator ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the Attenuator component | 
- Source:
(inner) updateRamanAmp(nodeID)
Update Raman Amplifier. Update Raman Amplifier label, type by Raman Amplifier ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the Raman Amplifier component | 
- Source:
(inner) updateRoadm(nodeID)
Update ROADM. Update ROADM label, type by ROADM ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the ROADM component | 
- Source:
(inner) updateTransceiver(nodeID)
Update Transceiver. Update Transceiver label, type by Transceiver ID.
Parameters:
| Name | Type | Description | 
|---|---|---|
| nodeID | string | The ID of the Transceiver component | 
- Source: