Example

If the type definition of type "Foo" is:

<agent name="Foo" version="1.0" bundled="False">

<attributes>

<IntAttr type="int" dimension="scalar">

.

</IntAttr>

<StringAttr type="str" dimension="scalar">

.

</StringAttr>

<VectorAttr type="str" dimension="vector">

.

</VectorAttr>

<AssocAttr type="str" dimension="assoc">

.

</AssocAttr>

</attributes>

<attributes class=static>

<ArgList type="str" dimension="vector">

<default>

<val>IntAttr</val>

<val>StringAttr</val>

<val>VectorAttr</val>

<val>AssocAttr</val>

</default>

</ArgList>

</attributes>

</agent>

And the resource is defined in the configuration file main.xml as:

<resources>

<Foo name="Bar">

<IntAttr>

<scalar>100</scalar>

</IntAttr>

<StringAttr>

<scalar>"Oracle"</scalar>

</StringAttr>

<VectorAttr>

<val="vol1"</val>

<val="vol2"</val>

<val="vol3"</val>

</VectorAttr>

<AssocAttr>

<val key="disk1">1024</val>

<val key="disk2">512</val>

</AssocAttr>

</Foo>

</resources>

The online script for Bar is invoked as:

	online Bar IntAttr 1 100 StringAttr 1 Oracle 
VectorAttr 3 vol1
 

vol2 vol3 AssocAttr 4 disk1 1024 disk2 512