| Using the Designer > Using More Designer Features > Adding Decorations for Alarm Severities |
Adding Decorations for Alarm Severities |
INDEX
PREVIOUS
NEXT
|
You can customize nodes represented by symbols to show changes in the objects in your diagram, for example changes in the status of network nodes. A symbol gives you scope for complex representations and allows you to modify the styling dynamically at run time.
status equals Unavailable. Click Finish. In the Style Rules tree, rename the new rule to node[status=Unavailable].
node[status=Unavailable] rule selected, set the criticalAlarms parameter value to 1. Press Enter.
major exists and not null. Click Finish. In the Style Rules tree, rename the new rule to node[major].
node[major] rule selected, right-click the field majorAlarms in the Styling Customizer, choose Enter an Expression, delete the current value, and specify @major. Press Enter.
minor exists and not null. Click Finish. In the Style Rules tree, rename the new rule to node[minor].
node[minor] rule selected, right-click the field minorAlarms in the Styling Customizer, choose Enter an Expression, delete the current value, and specify @minor. Press Enter.
As you add rules, you see the diagram change to reflect the current status of the network.
The resulting diagram should look like Figure 3.17:
Save the network diagram and keep it open to use in the next section.
If your diagram is connected to network data that changes dynamically, the icons will reflect the availability of nodes and any alarm recorded on each node. To test this behavior, double-click a node to display its data properties, change the alarm or status value and watch the diagram change.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |