Schema: SignalGroup

(v0.0.1)

SignalGroup

kind: SignalGroup
metadata:
  name: string
  labels:
    property1: string
    property2: string
  annotations:
    ? property1
    ? property2
spec:
  signals:
    - signal: string
      transform:
        linear:
          factor: 2.5
          offset: 1
        functions:
          vector:
            lua: |
              return function(s_vector)
                return s_vector * 10
              end              
          model:
            lua: |
              return function(s_model)
                return s_model + 3
              end              
      annotations:
        ? property1
        ? property2
  functions:
    - lua: string

A signal group definition.

Properties

NameTypeRequiredDescription
kindstringtruenone
metadataobjectfalseInformation relating to an object.
» namestringfalseThe name of the object.
» labelsobjectfalseIdentifying information used to identify objects within the system (e.g. giving a specific ’label’ to an object).
»» additionalPropertiesstringfalsenone
» annotationsobjectfalseNon identifying information (i.e. information specific to the object itself).
»» additionalPropertiesanyfalsenone
specSignalGroupSpectruenone

Enumerated Values

PropertyValue
kindSignalGroup

SignalGroupSpec

signals:
  - signal: string
    transform:
      linear:
        factor: 2.5
        offset: 1
      functions:
        vector:
          lua: |
            return function(s_vector)
              return s_vector * 10
            end            
        model:
          lua: |
            return function(s_model)
              return s_model + 3
            end            
    annotations:
      ? property1
      ? property2
functions:
  - lua: string

Properties

NameTypeRequiredDescription
signals[Signal]trueA list of signals belonging to this signal group.
functions[object]falseA list of functions supporting transformations of this signal group.
» luastringtrueInline Lua script. Multi-line strings supported.

Signal

signal: string
transform:
  linear:
    factor: 2.5
    offset: 1
  functions:
    vector:
      lua: |
        return function(s_vector)
          return s_vector * 10
        end        
    model:
      lua: |
        return function(s_model)
          return s_model + 3
        end        
annotations:
  ? property1
  ? property2

A signal definition.

Properties

NameTypeRequiredDescription
signalstringtrueThe name of the signal.
transformobjectfalseA transformation definition.
» linearobjectfalseRepresents a linear transformation in the form:
$S_{\mathrm{model}} = S_{\mathrm{vector}} \cdot factor + offset$
»» factornumber(double)truenone
»» offsetnumber(double)truenone
» functionsobjectfalseRepresents a function transformation in the forms: - $S_{\mathrm{model}} = f(S_{\mathrm{vector}})$
This function transform is applied after all other transforms.
- $S_{\mathrm{vector}} = f(S_{\mathrm{model}})$
This function transform is applied before all other transforms.
»» modelobjectfalseA Lua script/function block.
»»» luastringtrueInline Lua script. Multi-line strings supported.
»» vectorSignal/properties/transform/properties/functions/properties/modelfalseA Lua script/function block.
annotationsobjectfalseNon identifying information (i.e. information specific to the object itself).
» additionalPropertiesanyfalsenone

undefined