\begin{figure}[!h]
\label{xaf_overview}
\begin{center}

\begin{psmatrix}[rowsep=0.6,colsep=0.6]
\rput[l](-1.1,0.1){
	\shortstack{
		\psline[arrows=o->](-0.6,0.1)(-0.1,0.1)   Access\\
		\psline[arrows=*->](-0.6,0.08)(-0.1,0.08) Conversion
	}
}
\pnode{x} 					& [name=Source]	\psbox{4.5cm}{\ttcn{} Source Code} \\[0pt]
[name=TRex] \psbox{3cm}{TRex API} 	& [name=AST]	\psbox{4.5cm}{TRex \ttcn{} AST} \\
\pnode{x} 					& [name=XML]	\psbox{4.5cm}{XML representation of the TRex \ttcn{} AST} \\
\pnode{x} 					& [name=Facade]	\psbox{4.5cm}{XQuery Facade Layer} \\
\ovalnode{User}{User/TPTP} 		& [name=Smell]	\psbox{4.5cm}{XQuery Smell Detection} \\
\pnode{x} 					& [name=Lib]	\psbox{4.5cm}{XQuery Library Modules}

\ncline{*->}{Source}{AST}
\ncline{*->}{AST}{XML}
\ncline{o->}{Facade}{XML}
\ncline{o->}{Smell}{Facade}
\ncline{o->}{Smell}{Lib}
\ncline{o->}{User}{Smell}
\ncline{o->}{TRex}{AST}
\ncbar[angle=180]{o->}{Facade}{TRex}
\end{psmatrix}

\end{center}
\caption[Overview of the framework]{Overview of the framework customised for the detection of bad smells in \ttcn{} test suites}
\end{figure}