XCSG:TernaryConditionalOperator

From AtlasWiki
Revision as of 10:27, 6 May 2014 by TheodoreMurdock (Talk | contribs) (TheodoreMurdock moved page TernaryConditionalOperator to XCSG:TernaryConditionalOperator)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The ternary conditional operator selects between two possible values based on a condition.

In an XCSG graph, the operator is represented using two nodes and an edge: the value used to decide which value will be returned flows into the TernaryCondition, which is connected by a TernaryConditionalOperator edge to a TernarySelection node.

The TernarySelection's leftOperand is the value returned if the TernaryCondition evaluates to true, the TernarySelection's rightOperand is the value returned if the TernaryCondition evaluates to false.

Specification

Metaclass TernaryConditionalOperator
Extends Edge
Description Connects a TernaryCondition to the corresponding TernarySelection operator.
Specified Connections
Predecessor Multiplicity Successor
TernaryCondition 1 ➞ 1 TernarySelection