Class Condition
- Applied Stereotypes:
-
XSDcomplexType,
union
A condition represents a set of logical expressions that evaluate the relationship of values provided by the user. These values may be entity states, scenario properties, scenario states or external signals. Conditions are the main components in triggers.
- Used in:
-
ConditionGroup
Properties |
|
Name |
Type |
Cardinality |
AppliedStereotypes |
Description |
|
conditionEdge |
ConditionEdge |
1..1 |
XSDattribute
|
Specifies the edge when the condition is evaluated to true (rising, falling, risingOrFalling, none). |
|
delay |
double |
1..1 |
XSDattribute
|
Time elapsed after the edge condition is verified, until the condition returns true to the scenario. Unit: [s]. Range: [0..inf[. |
|
name |
string |
1..1 |
XSDattribute
|
Name of the condition. |
|
byEntityCondition |
ByEntityCondition |
1..1 |
xor,
XSDelement
|
A condition that refers to an entity. |
|
byValueCondition |
ByValueCondition |
1..1 |
xor,
XSDelement
|
A condition that refers to a runtime value. |
|
XSD 1.3 Representation |
<xsd:complexType name="Condition">
<xsd:choice>
<xsd:element name="ByEntityCondition" type="ByEntityCondition"/>
<xsd:element name="ByValueCondition" type="ByValueCondition"/>
</xsd:choice>
<xsd:attribute name="conditionEdge" type="ConditionEdge" use="required"/>
<xsd:attribute name="delay" type="Double" use="required"/>
<xsd:attribute name="name" type="String" use="required"/>
</xsd:complexType>
|
|
Change log from version 1.2 |
- Property 'byEntityCondition'. Lower cardinality changed.
- Property 'byValueCondition'. Lower cardinality changed.
|
Stereotype Details Information |
- Class
- XSDcomplexType [modelGroup: "choice"; mixed: "false"]
- Property conditionEdge
- Property delay
- Property name
- Property byEntityCondition
- XSDelement [position: "1"]
- Property byValueCondition
- XSDelement [position: "2"]
|
To XSD