IfThenElseFSM

The IfThenElseFSM model shown using Vergil, the Ptolemy II schematic editor:

This model illustrates how a Finite State Machine (FSM) Modal Model and a Dynamic Dataflow (DDF) model may be embedded in a Synchronous Dataflow (SDF) model. The top level is illustrated in the applet above.

The inside of the "FSM ModalModel +1/-1 Gain" component:
Modal Model

The "FSM ModalModel +1/-1 Gain" component has a "gainPlus" component:
Gain Plus

and a "gainMinus" component:
Gain Minus

Going back up to the top level, the inside of the "DDF +1/-1 Gain.ramp":