Skip to content
LIBRARY
Examples.Selector.md

Examples.Selector ​

Usage ​

DiscreteComponents.Examples.Selector()

Parameters: ​

NameDescriptionUnitsDefault value
nu–1
index–1

Connectors ​

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

  • y - This connector represents a real signal as an output from a component (RealOutput)

Behavior ​

Source ​

dyad
component Selector
  u = [Dyad.RealInput() for i in 1:nu] {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  y = Dyad.RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  structural parameter nu::Integer = 1
  structural parameter index::Integer = 1
relations
  y = u[index]
end
Flattened Source
dyad
component Selector
  u = [Dyad.RealInput() for i in 1:nu] {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  y = Dyad.RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  structural parameter nu::Integer = 1
  structural parameter index::Integer = 1
relations
  y = u[index]
metadata {}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses