| Styling > Customizing Alarms > Customizing Probable Causes |
Customizing Probable Causes |
INDEX
PREVIOUS
NEXT
|
The predefined probable causes provided in ILOG JViews TGO are those defined in the OSS/J Quality of Service APIs.
Probable causes may be created using the Java API, or dynamically while feeding an XML stream into a data source.
In the following code extract, a new probable cause is created for the numeric value 600.
IltAlarm.ProbableCause probableCause = new IltAlarm.ProbableCause(600);
See How to Change the Representation of a Probable Cause to set a representation for the new probable cause.
The following XML stream extract sets the probable cause for an alarm to 600. If the probable cause did not exist previously in the data source, it is created dynamically.
<addObject id="alarm 1"> <class>ilog.tgo.model.IltAlarm</class> <attribute name="probableCause">600</attribute> <!-- ... --> </addObject>
See How to Change the Representation of a Probable Cause to set a representation for the new probable cause.
In the following CSS extract, the label for the probable cause with the numeric value 600 is set to "my new probable cause".
object."ilog.tgo.model.IltAlarm/probableCause"[probableCause=600] {
label: "my new probable cause";
}
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |