Miscellaneous states

The class IltObjectStateSAXInfo is the XML serialization class that allows you to read and write miscellaneous states in the XML format.
The following table describes the XML elements that can be used.
XML elements in the Miscellaneous state system 
XML Element
Attributes
Possible Values
Description
<misc>
 
SoftwareUpload, SoftwareDownload, SoftwareLimitExceeded, MismatchedCard, UnknownCard, DoorAjar, LowTemperatureWarning, HighTemperatureWarning, TestPassed, TestFailed, ThresholdCrossing, PlanToRemove, UnderRepair
Miscellaneous state
 
operation
add , remove
This attribute is optional. It specifies whether the state should be added to/removed from the object state. The default value is add indicating that the state will be set in the object state. This attribute is used within an <updateState> element.

How to add a network element with Miscellaneous states defined in XML

<addObject id="NE1">
  <class>ilog.tgo.model.IltNetworkElement</class>
  <attribute name="position" javaClass="ilog.cpl.graphic.IlpPoint">
    <x>68</x>  <y>61</y>
  </attribute>
  <attribute name="objectState" javaClass="ilog.tgo.model.IltOSIObjectState">
    <state>
      <administrative>ShuttingDown</administrative>
      <operational>Enabled</operational>
      <usage>Active</usage>
    </state>
    <misc>LowTemperatureWarning</misc>
    <misc>DoorAjar</misc>
  </attribute>
</addObject>

How to set Miscellaneous states to an existing object using XML

The following example shows how to set miscellaneous states 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.IltBellcoreObjectState">
    <state>EnabledActive</state>
    <misc>DoorAjar</misc>
  </attribute>
</updateObject>

How to update Miscellaneous states incrementally using XML

<updateObject id="NE1">
  <updateState>
    <misc operation="remove">DoorAjar</misc>
    <misc>LowTemperatureWarning</misc>
  </updateState>
</updateObject>