1.1 --- a/Makefile Mon Apr 06 17:10:05 2009 +0200
1.2 +++ b/Makefile Mon Apr 06 21:16:26 2009 +0200
1.3 @@ -18,9 +18,13 @@
1.4 topology-basics.dia \
1.5 device-channel.dia \
1.6 WifiArchitecture.dia \
1.7 -internet-stack.dia
1.8 +internet-stack.dia \
1.9 +attribute-namespace.dia
1.10 PDF_SOURCES=test-random-variable.pdf
1.11 -PNG_SOURCES=ns-3-doxygen.png
1.12 +PNG_SOURCES=\
1.13 +ns-3-doxygen.png \
1.14 +gtk-config-store.png \
1.15 +attribute-doxygen.png
1.16
1.17 DIA_PDFS=$(addsuffix .pdf,$(basename $(DIA_SOURCES)))
1.18 PNG_PDFS=$(addsuffix .pdf,$(basename $(PNG_SOURCES)))
2.1 Binary file attribute-doxygen.png has changed
3.1 Binary file attribute-namespace.dia has changed
4.1 Binary file gtk-config-store.png has changed
5.1 --- a/tutorial.tex Mon Apr 06 17:10:05 2009 +0200
5.2 +++ b/tutorial.tex Mon Apr 06 21:16:26 2009 +0200
5.3 @@ -867,13 +867,45 @@
5.4 \end{verbatim}
5.5 \end{block}
5.6 }
5.7 -\item Set a value with an environment variable \code{NS\_ATTRIBUTE\_DEFAULT=ns3::WifiPhy::TxGain=10}
5.8 +\item Set a value with an environment variable
5.9 +\code{NS\_ATTRIBUTE\_DEFAULT=ns3::WifiPhy::TxGain=10}
5.10 \end{itemize}
5.11
5.12 \break
5.13
5.14 -Attribute namespace strings are a structured representation of a path
5.15 +Attribute namespace strings represent a path
5.16 through a set of object pointers:
5.17 +\\
5.18 +\vspace{1em}
5.19 +\includegraphics[width=6cm]{attribute-namespace}
5.20 +\\
5.21 +For example, \code{/NodeList/x/DeviceList/y/InterframeGap}
5.22 +represents the \code{InterframeGap} attribute of the device
5.23 +number \emph{y} in node number \emph{x}.
5.24 +
5.25 +\break
5.26 +
5.27 +Navigating the attributes using paths:
5.28 +\begin{itemize}
5.29 +\item \code{/NodeList/[3-5]|8|[0-1]}: matches nodes index 0, 1, 3, 4, 5, 8
5.30 +\item \code{/NodeList/*}: matches all nodes
5.31 +\item \code{/NodeList/3/\$ns3::Ipv4}: matches object of type
5.32 +\code{ns3::Ipv4} aggregated to node number 3
5.33 +\item \code{/NodeList/3/DeviceList/*/\$ns3::CsmaNetDevice}: matches
5.34 +all devices of type \code{ns3::CsmaNetDevice} within node number 3
5.35 +\end{itemize}
5.36 +
5.37 +\break
5.38 +
5.39 +A graphical navigation of the attributes:
5.40 +
5.41 +\includegraphics[width=5cm]{gtk-config-store}
5.42 +
5.43 +\break
5.44 +
5.45 +Doxygen documentation of all attributes:
5.46 +
5.47 +\includegraphics[width=10cm]{attribute-doxygen}
5.48
5.49 \end{frame}
5.50