Class Condition

Applied Stereotypes:
union, XSDcomplexType

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
name string 1..1 XSDattribute Name of the condition.
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[.
conditionEdge ConditionEdge 1..1 XSDattribute Specifies the edge when the condition is evaluated to true (rising, falling, any).
byEntityCondition ByEntityCondition 0..1 xor A condition that refers to an entity.
byValueCondition ByValueCondition 0..1 xor A condition that refers to a runtime value.

Migration Information from XSD 0.9.1
Derived From:
OSCCondition
Property Name XSD Type XSD 0.9.1 Name Migration
name Attribute name
delay Attribute delay
conditionEdge Attribute edge
byEntityCondition Element ByEntity Renamed
byValueCondition Element ByValue Renamed

XSD 1.0 Representation


<xsd:complexType name="Condition">
<xsd:choice>
<xsd:element name="ByEntityCondition" type="ByEntityCondition"/>
<xsd:element name="ByValueCondition" type="ByValueCondition"/>
</xsd:choice>
<xsd:attribute name="name" type="String" use="required"/>
<xsd:attribute name="delay" type="Double" use="required"/>
<xsd:attribute name="conditionEdge" type="ConditionEdge" use="required"/>
</xsd:complexType>

To XSD To XSLT To XSD Tree