Case

This page contains an applet that should appear as a separate window.

This model shows how to use the Case actor. Looking inside the Case actor will reveal that it has three distinct refinements. Which one is executed depends on the value of the control input provided to it. In this example, the control value cycles through the list {0, 1, 2, 3} repeatedly. The "0" refinement is executed when the control is 0, the "1" refinement is executed when the control is 1, and the "default" refinement is executed otherwise.

\ \ MoML specification for this model. \