Socket
Socket
Sign inDemoInstall

@ospin/fct-graph

Package Overview
Dependencies
6
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.25.0 to 2.25.1

2

package.json
{
"name": "@ospin/fct-graph",
"author": "danielseehausen",
"version": "2.25.0",
"version": "2.25.1",
"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",

const fctGraphsAreSameWithoutIONodes = require('./fctGraphsAreSameWithoutIONodes')
const fctsAreFunctionallyEqual = require('./fctsAreFunctionallyEqual')
module.exports = {
fctGraphsAreSameWithoutIONodes,
fctsAreFunctionallyEqual,
}

@@ -9,5 +9,5 @@ const ControllerSeeder = require('./ControllerSeeder')

return [
FloatInSlotSeeder.generateUnitlessIn({ name: 'P' }),
FloatInSlotSeeder.generateUnitlessIn({ name: 'I' }),
FloatInSlotSeeder.generateUnitlessIn({ name: 'D' }),
FloatInSlotSeeder.generatePIDControllerParameterSlot({ name: 'P' }),
FloatInSlotSeeder.generatePIDControllerParameterSlot({ name: 'I' }),
FloatInSlotSeeder.generatePIDControllerParameterSlot({ name: 'D' }),
FloatInSlotSeeder.generate({ name: 'target in' }),

@@ -33,5 +33,6 @@ FloatInSlotSeeder.generate({ name: 'value in' }),

const slots = [
FloatInSlotSeeder.generateUnitlessIn({ name: 'P' }),
FloatInSlotSeeder.generateUnitlessIn({ name: 'I' }),
FloatInSlotSeeder.generateUnitlessIn({ name: 'D' }),
FloatInSlotSeeder.generatePIDControllerParameterSlot({ name: 'P' }),
FloatInSlotSeeder.generatePIDControllerParameterSlot({ name: 'I' }),
FloatInSlotSeeder.generatePIDControllerParameterSlot({ name: 'D' }),
FloatInSlotSeeder.generateCelsiusIn({ name: 'target in' }),
FloatInSlotSeeder.generateCelsiusIn({ name: 'value in' }),

@@ -38,0 +39,0 @@ FloatOutSlotSeeder.generateCelsiusOut({ name: 'value out' }),

@@ -6,2 +6,6 @@ const InSlot = require('../../slots/InSlot')

static get DISPLAY_TYPES() {
return [...super.DISPLAY_TYPES, InSlot.CONTROLLER_PARAMETER_DISPLAY_TYPE]
}
static generate(data = {}) {

@@ -39,2 +43,8 @@ return {

static generatePIDControllerParameterSlot(data) {
return this.generateUnitlessIn(
{ ...data, displayType: InSlot.CONTROLLER_PARAMETER_DISPLAY_TYPE },
)
}
static seedCelsiusIn(data) {

@@ -41,0 +51,0 @@ return this.seedOne(

@@ -16,3 +16,2 @@ const faker = require('faker')

'flow',
'controller parameter',
]

@@ -19,0 +18,0 @@ }

@@ -12,2 +12,6 @@ const Joi = require('joi')

static get CONTROLLER_PARAMETER_DISPLAY_TYPE() {
return 'controller parameter'
}
static get SCHEMA() {

@@ -17,2 +21,3 @@ return super.SCHEMA.concat(Joi.object({

dataStreams: super.SCHEMA.extract('dataStreams').max(1),
displayType: super.SCHEMA.extract('displayType'),
}))

@@ -35,2 +40,6 @@ }

get isControllerParameter() {
return this.displayType === InSlot.CONTROLLER_PARAMETER_DISPLAY_TYPE
}
_assertHasRoomForConnectionTo(otherSlot) {

@@ -37,0 +46,0 @@ if (this.dataStreams.length > 0) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc