MetriXML Instrument Definition

By looking at the MIDL example in section 6.4.2 we can derive the following XML example of a MetriXML Instrument Definition document. Note that because of the structure of the CLAM ProcessingConfig class and some limitations of the automatic XML facilities in the framework we will not use XML attributes and declare everything as elements. We will also avoid some constructions like lists and the XML inheritance mechanism.

 



And from the previous example we can extract the associated XML-Schema that will then be directly mapeable to the class structure.


\begin{spacing}{0.8}
\texttt{\footnotesize <xsd:schema xmlns:xsd=\char\lq \uml {}ht...
...r
}
\par
\texttt{\footnotesize    <sequence>}{\footnotesize\par
}
\end{spacing}

      <xsd:element name="Generators" type="GeneratorsType"/>


\begin{spacing}{0.8}
\texttt{\footnotesize      <xsd:element name=\char\lq \uml {}...
...\par
\texttt{\footnotesize    </xsd:element>}{\footnotesize\par
}
\end{spacing}

    <xsd:element name=''SampleArray''>


\begin{spacing}{0.8}
\texttt{\footnotesize      <xsd:complexType name=''SampleA...
...complexType>} \\
\texttt{\footnotesize } \\
{\footnotesize\par
}
\end{spacing}

Finally, and by looking at the previous XML-Schema, it is immediate to derive the Object-Oriented model illustrated in the class diagram in Figure 6.12.

Figure 6.12: MetriXML Instrument Definition class diagram
\includegraphics[%
width=0.75\textwidth,
keepaspectratio]{images/ch6-MetriX/ps/MetriXMLInstrument.ps}

Note that this class diagram turns out to be an extension/refinement of the MetriX model previously illustrated in figure 6.10.

2004-10-18