parse
method of the data source, as shown below:
dataSource = new IltDefaultDataSource(); dataSource.parse("OSIXMLFile.xml");
objectState
to one of the JViews
TGO object states:
IltOSIObjectState
IltBellcoreObjectState
IltSNMPObjectState
IltSONETObjectState
IltBiSONETObjectState
IltAlarmObjectState
IltTrapObjectState
objectState
when adding the business object:
<addObject id="RectGroup"> <class>ilog.tgo.model.IltRectGroup</class> <attribute name="name">RectGroup</attribute> <attribute name="position" javaClass="ilog.cpl.graphic.IlpRect"> <x>489</x> <y>356</y> <width>80</width> <height>60</height> </attribute> <attribute name="objectState" javaClass="ilog.tgo.model.IltOSIObjectState"> <state> <administrative>Locked</administrative> <operational>Enabled</operational> <usage>Idle</usage> </state> <availability>PowerOff</availability> <control>ReservedForTest</control> <alarms> <new severity="Raw.Critical">5</new> <ack severity="Raw.Warning">12</ack> </alarms> </attribute> </addObject>
<updateObject>
to modify the attribute
objectState
:
<updateObject id="RectGroup"> <attribute name="objectState" javaClass="ilog.tgo.model.IltOSIObjectState"> <state> <administrative>ShuttingDown</administrative> <operational>Enabled</operational> <usage>Busy</usage> </state> <availability>PowerOff</availability> <misc>HighTemperatureWarning</misc> <alarms> <new severity="Raw.Critical">2</new> </alarms> </attribute> </updateObject>
<attribute>
tag is used to modify the value of an attribute in a business
object. When you use it to modify the value of attribute
objectState
, the old object state definition is completely replaced by the
new one.
<updateState>
:
<updateState>
block, you can modify the states, alarms and traps present in the
business object state, adding and removing states, adding,
removing and setting alarms and traps.
<updateObject id="NE1"> <updateState> <state> <operational>Enabled</operational> <usage>Active</usage> </state> <procedural operation="remove">Initializing</procedural> <misc operation="remove">DoorAjar</misc> <alarms> <new severity="Raw.Critical" operation="set">2</new> <new severity="Raw.Major" operation="add">1</new> <ack severity="Raw.Warning" operation="remove">5</ack> </alarms> </updateState> </updateObject>