| Business Objects and Data Sources > States > Defining States in XML > Alarm States |
Alarm States |
INDEX
PREVIOUS
NEXT
|
The class IltAlarmObjectStateSAXInfo is the XML serialization class that allows you to read and write alarm states in the XML format.
The following table describes the XML elements that can be used.
<addObject id="NE2">
<class>ilog.tgo.model.IltNetworkElement</class>
<attribute name="name">NE2</attribute>
<attribute name="type">Mainframe</attribute>
<attribute name="position" javaClass="ilog.cpl.graphic.IlpPoint">
<x>229</x> <y>126</y>
</attribute>
<attribute name="objectState"
javaClass="ilog.tgo.model.IltBellcoreObjectState">
<state>EnabledActive</state>
<alarms>
<new severity="Raw.Critical">5</new>
<ack severity="Impact.WarningLow">2</ack>
</alarms>
</attribute>
</addObject>
<addObject id="Link2">
<class>ilog.tgo.model.IltLink</class>
<link> <from>PolyGroup</from> <to>NE3</to> </link>
<attribute name="name">Link2</attribute>
<attribute name="media">Fiber</attribute>
<attribute name="objectState" javaClass="ilog.tgo.model.IltSONETObjectState">
<state>Active</state>
<alarms notReporting="true" />
</attribute>
</addObject>
The following example shows how to set alarms to an object that already exists in the data source. You can achieve this by using the XML tag <updateObject> to modify the attribute objectState:
<updateObject id="NE1">
<attribute name="objectState" javaClass="ilog.tgo.model.IltOSIObjectState">
<state>
<operational>Disabled</operational>
<usage>Idle</usage>
<administrative>Unlocked</administrative>
</state>
<alarms>
<new severity="Raw.Critical">2</new>
<new severity="Raw.Warning">1</new>
<ack severity="Raw.Minor">3</ack>
</alarms>
</attribute>
</updateObject>
<updateObject id="NE1">
<updateState>
<alarms>
<new severity="Raw.Critical" operation="remove">1</new>
<new severity="Raw.Warning" operation="add">1</new>
<ack severity="Raw.Critical" operation="add">1</ack>
<ack severity="Raw.Minor" operation="remove">3</ack>
</alarms>
</updateState>
</updateObject>
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |