@ospin/fct-graph
Advanced tools
Comparing version 6.5.0 to 6.6.0
{ | ||
"name": "@ospin/fct-graph", | ||
"author": "OSPIN webapp team", | ||
"version": "6.5.0", | ||
"version": "6.6.0", | ||
"description": "Graph data structure with conditional edges via 'slots' on nodes. Intended to represent physical and virtual functionalities on a device.", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -28,2 +28,3 @@ const Joi = require('joi') | ||
displayType: Joi.string().allow(null).default(null), | ||
displayName: Joi.string().allow(null).optional(), | ||
dataStreams: Joi.array().items(DataStream.SCHEMA).default([]), | ||
@@ -195,2 +196,4 @@ unit: Joi.string().required(), | ||
const getDisplayName = slot => slot.displayName || slot.name | ||
const connectsToFctSlot = (slot, fctId, slotName) => ( | ||
@@ -344,2 +347,3 @@ slot.dataStreams.some(ds => DataStream.connectsToFctSlot(ds, fctId, slotName)) | ||
isControllerParameter, | ||
getDisplayName, | ||
connectsToFctSlot, | ||
@@ -346,0 +350,0 @@ getOutGoingDataStreams, |
76001
1187