Table of Contents

Description

The switch node is a proxy-node that uses the value of its topic-node to select an evaluation path.

Constraints

  • Minimum number of child-nodes: 0
  • Maximum number of child-nodes: no limit

Calculus

The switch node's value is the value of its chosen child-node. The chosen child-node is the one that corresponds to the first true argument in the switch node's argument list. If none of the arguments are true and there are more child-nodes than arguments then then n + 1 child-node is chosen as a default. If the topic-node is not determined (has no value) then undetermined is passed.

if the topic-node has data then value = valuei where i is the sequence number of the first true argument or the number of arguments + 1 if no arguments are true.

if the topic-node has no data then value = 0 (undetermined)

add examples FIXME

 
netweaver/nodes/switch.txt · Last modified: 2006/10/22 21:00 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki