Loading an empty slot defined in XML

Loading an empty slot from an XML file is similar to loading a card, except for the business object class defined between the <class> and </class> tags:
<class>ilog.tgo.model.IltEmptySlot</class>

How to load an empty slot defined in XML

The following sample uses the same XML file as in Loading a card defined in XML, to create an empty slot. For details about the XML elements used in this example, see Elements in an XML data fileĀ .
<cplData>
<addObject id="Shelf">
  <class>ilog.tgo.model.IltShelf</class>
  <attribute name="name">Shelf</attribute>
  <attribute name="slotSizes" javaClass="ilog.cpl.equipment.IlpSlotSizes">
    <width>
      <value>30</value>
      <value>20</value>
      <value>40</value>
    </width>
    <height>
      <value>90</value>
      <value>20</value>
    </height>
  </attribute>
  <attribute name="position" javaClass="ilog.cpl.graphic.IlpPoint">
    <x>100</x> <y>50</y>
  </attribute>
</addObject>
<addObject id="Card0">
  <class>ilog.tgo.model.IltEmptySlot</class>
  <parent>Shelf</parent>
  <attribute name="name">Card0</attribute>
  <attribute name="position"
              javaClass="ilog.cpl.graphic.views.IlpShelfItemPosition">
    <x>0</x> <y>0</y> <width>1</width> <height>1</height>
  </attribute>
</addObject>
</cplData>
The result looks like this:
emptyslotxml.gif
An empty slot in a shelf