You can use an ActiveImage to represent each state of a runtime object whose Classifier is represented by the ImageSwitcher that owns the ActiveImage. The FlashingLight.mdzip sample is used throughout this page. You can open the sample by downloading it from the attached link.
To use the ImageSwitcher and ActiveImage to represent a state
The following figure illustrates an example of how to use ImageSwitcher and ActiveImage to represent the States of a runtime object (see the FlashingLight.mdzip sample)
The image that appears on the web UI through ImageSwitcher is the same image that represents the current State of simulation UI. If the image on the simulation UI is changed, the image on the Web UI will change accordingly and vice versa. Either image is able to accept a signal by clicking the mouse.
The model used in the figures of this page is the FlashingLight.mdzip sample model that comes with MagicDraw. To open this sample, do either of the following