Skip to content
LIBRARY
Logical.Not.md

Logical.Not

Logical 'not': y = not u.

The output is true if the input is false, otherwise the output is false.

This component extends from BlockComponents.Interfaces.PartialBooleanSISO

Usage

BlockComponents.Logical.Not()

Connectors

  • u - This connector represents a boolean signal as an input to a component (BooleanInput)

  • y - This connector represents a boolean signal as an output from a component (BooleanOutput)

Behavior

Source

dyad
"""
Logical 'not': y = not u.

The output is **true** if the input is **false**, otherwise the output is **false**.
"""
component Not
  extends BlockComponents.Interfaces.PartialBooleanSISO
relations
  y = !u
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Not.svg"}
  }
}
end
Flattened Source
dyad
"""
Logical 'not': y = not u.

The output is **true** if the input is **false**, otherwise the output is **false**.
"""
component Not
  "Connector of Boolean input signal"
  u = BooleanInput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "input", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0},
        "diagram": {"iconName": "input", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      }
    }
  }
  "Connector of Boolean output signal"
  y = BooleanOutput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "output", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0},
        "diagram": {"iconName": "output", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      }
    }
  }
relations
  y = !u
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Not.svg"}
  }
}
end


Test Cases

No test cases defined.