<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>DTN Reference Implementation: dtnsim Namespace Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="namespaces.html"><span>Namespace List</span></a></li> <li><a href="namespacemembers.html"><span>Namespace Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>dtnsim Namespace Reference</h1> <p> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1ConnCommand.html">ConnCommand</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Class to control the conn. <a href="classdtnsim_1_1ConnCommand.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structdtnsim_1_1ConnState.html">ConnState</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Helper struct to store the current connectivity settings between a pair (or set) of nodes. <a href="structdtnsim_1_1ConnState.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1Connectivity.html">Connectivity</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Base class for the underlying connectivity management between nodes in the simulation. <a href="classdtnsim_1_1Connectivity.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1Node.html">Node</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Class representing a node in the simulator (i.e. <a href="classdtnsim_1_1Node.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1NodeCommand.html">NodeCommand</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Class to control the node. <a href="classdtnsim_1_1NodeCommand.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimCLInfo.html">SimCLInfo</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimCommand.html">SimCommand</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Class to control the sim. <a href="classdtnsim_1_1SimCommand.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimLink.html">SimLink</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimConvergenceLayer.html">SimConvergenceLayer</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classdtnsim_1_1Simulator.html" title="The main simulator class.">Simulator</a> implementation of the Convergence Layer API. <a href="classdtnsim_1_1SimConvergenceLayer.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimEvent.html">SimEvent</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimEventCompare.html">SimEventCompare</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimAtEvent.html">SimAtEvent</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimBundleEvent.html">SimBundleEvent</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimEventHandler.html">SimEventHandler</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Interface implemented by all objects that handle simulator events. <a href="classdtnsim_1_1SimEventHandler.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimLog.html">SimLog</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Class for more structured logging of bundle generation / reception. <a href="classdtnsim_1_1SimLog.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1SimRegistration.html">SimRegistration</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Registration used for the simulator. <a href="classdtnsim_1_1SimRegistration.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1Simulator.html">Simulator</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The main simulator class. <a href="classdtnsim_1_1Simulator.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1Topology.html">Topology</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The class that maintains the topology of the network. <a href="classdtnsim_1_1Topology.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtnsim_1_1TrAgent.html">TrAgent</a></td></tr> <tr><td colspan="2"><br><h2>Enumerations</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedtnsim.html#61b536ebb250b12bfe00104b1f33ef4d">sim_event_type_t</a> { <a class="el" href="namespacedtnsim.html#61b536ebb250b12bfe00104b1f33ef4d918aad3b730a21decb92ddebfa0c8690">SIM_AT_EVENT</a> = 0x1, <a class="el" href="namespacedtnsim.html#61b536ebb250b12bfe00104b1f33ef4d8596082fcc66c6a30e055876698de9bc">SIM_BUNDLE_EVENT</a> }</td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedtnsim.html#919404fdb5aa3358c3c9c367448e72fa">sim_ev2str</a> (<a class="el" href="namespacedtnsim.html#61b536ebb250b12bfe00104b1f33ef4d">sim_event_type_t</a> event)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Pretty printer function simulation events. <a href="#919404fdb5aa3358c3c9c367448e72fa"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedtnsim.html#372b0bd474085f20b38efbbade7ce72a">gettimeofday</a> (struct timeval *tv, struct timezone *tz)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Override gettimeofday to return the simulator time. <a href="#372b0bd474085f20b38efbbade7ce72a"></a><br></td></tr> </table> <hr><h2>Enumeration Type Documentation</h2> <a class="anchor" name="61b536ebb250b12bfe00104b1f33ef4d"></a><!-- doxytag: member="dtnsim::sim_event_type_t" ref="61b536ebb250b12bfe00104b1f33ef4d" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="namespacedtnsim.html#61b536ebb250b12bfe00104b1f33ef4d">dtnsim::sim_event_type_t</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" name="61b536ebb250b12bfe00104b1f33ef4d918aad3b730a21decb92ddebfa0c8690"></a><!-- doxytag: member="SIM_AT_EVENT" ref="61b536ebb250b12bfe00104b1f33ef4d918aad3b730a21decb92ddebfa0c8690" args="" -->SIM_AT_EVENT</em> </td><td> Generic event for delayed tcl commands. </td></tr> <tr><td valign="top"><em><a class="anchor" name="61b536ebb250b12bfe00104b1f33ef4d8596082fcc66c6a30e055876698de9bc"></a><!-- doxytag: member="SIM_BUNDLE_EVENT" ref="61b536ebb250b12bfe00104b1f33ef4d8596082fcc66c6a30e055876698de9bc" args="" -->SIM_BUNDLE_EVENT</em> </td><td> Generic event for delayed bundle events. </td></tr> </table> </dl> <p>Definition at line <a class="el" href="SimEvent_8h-source.html#l00033">33</a> of file <a class="el" href="SimEvent_8h-source.html">SimEvent.h</a>.</p> </div> </div><p> <hr><h2>Function Documentation</h2> <a class="anchor" name="372b0bd474085f20b38efbbade7ce72a"></a><!-- doxytag: member="dtnsim::gettimeofday" ref="372b0bd474085f20b38efbbade7ce72a" args="(struct timeval *tv, struct timezone *tz)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int dtnsim::gettimeofday </td> <td>(</td> <td class="paramtype">struct timeval * </td> <td class="paramname"> <em>tv</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">struct timezone * </td> <td class="paramname"> <em>tz</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Override gettimeofday to return the simulator time. <p> <p>Definition at line <a class="el" href="Simulator_8cc-source.html#l00269">269</a> of file <a class="el" href="Simulator_8cc-source.html">Simulator.cc</a>.</p> <p>References <a class="el" href="Simulator_8h-source.html#l00038">dtnsim::Simulator::time()</a>.</p> <p>Referenced by <a class="el" href="BundleDaemon_8cc-source.html#l02125">dtn::BundleDaemon::add_to_pending()</a>, <a class="el" href="Announce_8h-source.html#l00097">dtn::Announce::Announce()</a>, <a class="el" href="StreamConvergenceLayer_8cc-source.html#l00914">dtn::StreamConvergenceLayer::Connection::check_keepalive()</a>, <a class="el" href="BundleTimestamp_8cc-source.html#l00044">dtn::BundleTimestamp::check_local_clock()</a>, <a class="el" href="SerialConvergenceLayer_8cc-source.html#l00222">dtn::SerialConvergenceLayer::Connection::connect()</a>, <a class="el" href="IPAnnounce_8cc-source.html#l00082">dtn::IPAnnounce::format_advertisement()</a>, <a class="el" href="BundleTimestamp_8cc-source.html#l00034">dtn::BundleTimestamp::get_current_time()</a>, <a class="el" href="StreamConvergenceLayer_8cc-source.html#l00827">dtn::StreamConvergenceLayer::Connection::handle_poll_timeout()</a>, <a class="el" href="SerialConvergenceLayer_8cc-source.html#l00276">dtn::SerialConvergenceLayer::Connection::handle_poll_timeout()</a>, <a class="el" href="Registration_8cc-source.html#l00186">dtn::Registration::init_expiration_timer()</a>, <a class="el" href="StreamConvergenceLayer_8cc-source.html#l00140">dtn::StreamConvergenceLayer::Connection::initiate_contact()</a>, <a class="el" href="Announce_8h-source.html#l00073">dtn::Announce::interval_remaining()</a>, <a class="el" href="dtncat_8c-source.html#l00105">main()</a>, <a class="el" href="StreamConvergenceLayer_8cc-source.html#l01046">dtn::StreamConvergenceLayer::Connection::note_data_rcvd()</a>, <a class="el" href="StreamConvergenceLayer_8cc-source.html#l01054">dtn::StreamConvergenceLayer::Connection::note_data_sent()</a>, <a class="el" href="Registration_8cc-source.html#l00044">dtn::Registration::Registration()</a>, <a class="el" href="StreamConvergenceLayer_8cc-source.html#l00746">dtn::StreamConvergenceLayer::Connection::send_keepalive()</a>, <a class="el" href="serialsource_8c-source.html#l00336">source_wait()</a>, <a class="el" href="ProphetTimer_8h-source.html#l00059">dtn::ProphetTimer::time_remaining()</a>, <a class="el" href="dtncat_8c-source.html#l00257">to_bundles()</a>, and <a class="el" href="serialsource_8c-source.html#l00822">write_serial_packet()</a>.</p> </div> </div><p> <a class="anchor" name="919404fdb5aa3358c3c9c367448e72fa"></a><!-- doxytag: member="dtnsim::sim_ev2str" ref="919404fdb5aa3358c3c9c367448e72fa" args="(sim_event_type_t event)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static const char* dtnsim::sim_ev2str </td> <td>(</td> <td class="paramtype">sim_event_type_t </td> <td class="paramname"> <em>event</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Pretty printer function simulation events. <p> <p>Definition at line <a class="el" href="SimEvent_8h-source.html#l00042">42</a> of file <a class="el" href="SimEvent_8h-source.html">SimEvent.h</a>.</p> <p>References <a class="el" href="SimEvent_8h-source.html#l00034">SIM_AT_EVENT</a>, and <a class="el" href="SimEvent_8h-source.html#l00035">SIM_BUNDLE_EVENT</a>.</p> <p>Referenced by <a class="el" href="SimEvent_8h-source.html#l00066">dtnsim::SimEvent::type_str()</a>.</p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:55 2008 for DTN Reference Implementation by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>