LIBRARY
Sources.BooleanConstant
Generate constant signal of type Boolean.
The Boolean output y is a constant signal equal to the parameter k.
Mirrors Modelica.Blocks.Sources.BooleanConstant.
This component extends from BlockComponents.Interfaces.PartialBooleanSource
Usage
BlockComponents.Sources.BooleanConstant(k=true)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
k | Constant output value | – | true |
Connectors
y- This connector represents a boolean signal as an output from a component (BooleanOutput)
Behavior
Source
dyad
"""
Generate constant signal of type Boolean.
The Boolean output `y` is a constant signal equal to the parameter `k`.
Mirrors `Modelica.Blocks.Sources.BooleanConstant`.
"""
component BooleanConstant
extends BlockComponents.Interfaces.PartialBooleanSource
"Constant output value"
parameter k::Boolean = true
relations
y = k
metadata {
"Dyad": {
"labels": [
{"label": "k = $(k)", "x": 500, "y": 1100, "rot": 0},
{"label": "$(instance)", "x": 500, "y": -150, "rot": 0}
],
"icons": {"default": "dyad://BlockComponents/BooleanConstant.svg"}
}
}
endFlattened Source
dyad
"""
Generate constant signal of type Boolean.
The Boolean output `y` is a constant signal equal to the parameter `k`.
Mirrors `Modelica.Blocks.Sources.BooleanConstant`.
"""
component BooleanConstant
"Connector of Boolean output signal"
y = BooleanOutput() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
},
"tags": []
}
}
"Constant output value"
parameter k::Boolean = true
relations
y = k
metadata {
"Dyad": {
"labels": [
{"label": "k = $(k)", "x": 500, "y": 1100, "rot": 0},
{"label": "$(instance)", "x": 500, "y": -150, "rot": 0}
],
"icons": {"default": "dyad://BlockComponents/BooleanConstant.svg"}
}
}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses
Tests