Business Objects and Data Sources > States > Defining States in XML > SAN States

The class IltObjectStateSAXInfo is the XML serialization class that allows you to read and write SAN states in the XML format.

The following table describes the XML elements that can be used.

Table 12.11 XML Elements in the SAN State System 
XML Element 
Attributes 
Possible Values 
Description 
<SAN> 
state 
IO, Allocated, Available, BackRecovery, Bandwidth, Capacity, CapacityUtilization, CPU, DataAccessDelay, Fragmentation, LostData, Usage 
SAN state 

 
isArray 
true or false 
This attribute is optional. It defines whether the state value is an array or not. 

 
value 
java.lang.Float 
This attribute is optional. When describing array values, each value in the array is enclosed in an element. 

 
javaClass 

 
This attribute is optional. It defines the value of the state. The default value is java.lang.Float

 
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 SAN 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>
    <SAN state="Bandwidth" isArray="true" javaClass="java.lang.Integer">
      <value>50</value>
      <value>70</value>
      <value>30</value>
    </SAN>
  </attribute>
</addObject>
How to Set SAN States to an Existing Object using XML

The following example shows how to set SAN 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>
    <SAN state="Allocated">88</SAN>
  </attribute>
</updateObject>
How to Update SAN States Incrementally using XML
<updateObject id="NE1">
  <updateState>
    <SAN state="Allocated" operation="remove"/>
    <SAN state="Fragmentation">75</SAN>
  </updateState>
</updateObject>