Skip to content
LIBRARY
Interfaces.PartialBooleanComparison.md

Interfaces.PartialBooleanComparison

Partial block with 2 Real input and 1 Boolean output signal.

The result of a comparison of the two Real inputs is provided as Boolean output. Block has a 3D icon (e.g., used in Blocks.Logical library).

Usage

BlockComponents.Interfaces.PartialBooleanComparison()

Connectors

  • u1 - This connector represents a real signal as an input to a component (RealInput)

  • u2 - This connector represents a real signal as an input to a component (RealInput)

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

Source

dyad
"""
Partial block with 2 Real input and 1 Boolean output signal.

The result of a comparison of the two Real inputs is provided as Boolean output.
Block has a 3D icon (e.g., used in Blocks.Logical library).
"""
partial component PartialBooleanComparison
  "Connector of first Real input signal"
  u1 = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 140, "x2": 0, "y2": 240, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of second Real input signal"
  u2 = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 700, "x2": 0, "y2": 800, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of Boolean output signal"
  y = BooleanOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
metadata {"Dyad": {"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}]}}
end
Flattened Source
dyad
"""
Partial block with 2 Real input and 1 Boolean output signal.

The result of a comparison of the two Real inputs is provided as Boolean output.
Block has a 3D icon (e.g., used in Blocks.Logical library).
"""
partial component PartialBooleanComparison
  "Connector of first Real input signal"
  u1 = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 140, "x2": 0, "y2": 240, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of second Real input signal"
  u2 = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 700, "x2": 0, "y2": 800, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of Boolean output signal"
  y = BooleanOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
metadata {"Dyad": {"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}]}}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses